|
@@ -20,10 +20,16 @@
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="employeeTotal" column="employee_total" />
|
|
|
+ <result property="memberTotal" column="member_total" />
|
|
|
+ <result property="memEmpRatio" column="mem_emp_ratio" />
|
|
|
+ <result property="memGroupTotal" column="mem_group_total" />
|
|
|
+ <result property="shiftTotal" column="shift_total" />
|
|
|
+ <result property="emptyShiftTotal" column="empty_shift_total" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
|
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time, d.employee_total, d.member_total, d.mem_emp_ratio, d.mem_group_total, d.shift_total, d.empty_shift_total
|
|
|
from sys_dept d
|
|
|
</sql>
|
|
|
|
|
@@ -129,6 +135,12 @@
|
|
|
<if test="email != null and email != ''">email,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
+ <if test="employeeTotal != null">employee_total,</if>
|
|
|
+ <if test="memberTotal != null">member_total,</if>
|
|
|
+ <if test="memEmpRatio != null">mem_emp_ratio,</if>
|
|
|
+ <if test="memGroupTotal != null">mem_group_total,</if>
|
|
|
+ <if test="shiftTotal != null">shift_total,</if>
|
|
|
+ <if test="emptyShiftTotal != null">empty_shift_total,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
@@ -141,6 +153,12 @@
|
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
+ <if test="employeeTotal != null">#{employeeTotal},</if>
|
|
|
+ <if test="memberTotal != null">#{memberTotal},</if>
|
|
|
+ <if test="memEmpRatio != null">#{memEmpRatio},</if>
|
|
|
+ <if test="memGroupTotal != null">#{memGroupTotal},</if>
|
|
|
+ <if test="shiftTotal != null">#{shiftTotal},</if>
|
|
|
+ <if test="emptyShiftTotal != null">#{emptyShiftTotal},</if>
|
|
|
sysdate
|
|
|
)
|
|
|
</insert>
|
|
@@ -157,6 +175,12 @@
|
|
|
<if test="email != null">email = #{email},</if>
|
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
+ <if test="employeeTotal != null">employee_total = #{employeeTotal},</if>
|
|
|
+ <if test="memberTotal != null">member_total = #{memberTotal},</if>
|
|
|
+ <if test="memEmpRatio != null">mem_emp_ratio = #{memEmpRatio},</if>
|
|
|
+ <if test="memGroupTotal != null">mem_group_total = #{memGroupTotal},</if>
|
|
|
+ <if test="shiftTotal != null">shift_total = #{shiftTotal},</if>
|
|
|
+ <if test="emptyShiftTotal != null">empty_shift_total = #{emptyShiftTotal},</if>
|
|
|
update_time = sysdate
|
|
|
</set>
|
|
|
where dept_id = #{deptId}
|