work_dept_id, dept_name, code, sort, parent_dept_id, `status`, del_flag, tenant_id, create_time, create_by, update_time, update_by update xhpc_work_dept set del_flag=2 where work_dept_id = #{workDeptId,jdbcType=BIGINT} insert into xhpc_work_dept (dept_name, code, sort, parent_dept_id, `status`, del_flag, tenant_id, create_time, create_by, update_time, update_by) values (#{deptName,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{sort,jdbcType=SMALLINT}, #{parentDeptId,jdbcType=BIGINT}, #{status,jdbcType=SMALLINT}, 0, #{tenantId,jdbcType=VARCHAR}, SYSDATE(), #{createBy,jdbcType=VARCHAR}, SYSDATE(), #{updateBy,jdbcType=VARCHAR}) update xhpc_work_dept set dept_name = #{deptName,jdbcType=VARCHAR}, code = #{code,jdbcType=VARCHAR}, sort = #{sort,jdbcType=SMALLINT}, parent_dept_id = #{parentDeptId,jdbcType=BIGINT}, `status` = #{status,jdbcType=SMALLINT}, update_time = SYSDATE(), update_by = #{updateBy,jdbcType=VARCHAR} where work_dept_id = #{workDeptId,jdbcType=BIGINT} update xhpc_work_dept set `status` = #{status,jdbcType=SMALLINT}, update_time = SYSDATE(), update_by = #{updateBy,jdbcType=VARCHAR} where work_dept_id = #{workDeptId,jdbcType=BIGINT}