Browse Source

重新生成工时表

master
陈裕财 4 years ago
parent
commit
34fcf4fb1a
  1. 15
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml

15
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml

@ -132,6 +132,9 @@
<if test="userid!=null and userid!=''">
and res.userid=#{userid}
</if>
<if test="branchId!=null and branchId!=''">
and task.cbranch_id=#{branchId}
</if>
</where>
</select>
@ -163,6 +166,12 @@
<if test="userid!=null and userid!=''">
and res.userid=#{userid}
</if>
<if test="branchId!=null and branchId!=''">
and res.branch_id=#{branchId}
</if>
<if test="ubranchId!=null and ubranchId!=''">
and res.ubranch_id=#{ubranchId}
</if>
<if test="userTasks!=null">
and (res.userid,res.task_id) in
<foreach collection="userTasks" item="item" index="index" open="(" separator="," close=")" >
@ -186,6 +195,12 @@
<if test="userid!=null and userid!=''">
and res.userid=#{userid}
</if>
<if test="branchId!=null and branchId!=''">
and e.branch_id=#{branchId}
</if>
<if test="ubranchId!=null and ubranchId!=''">
and e.exec_user_branch_id=#{ubranchId}
</if>
</where>
</select>

Loading…
Cancel
Save