Browse Source

重新生成工时表

master
陈裕财 4 years ago
parent
commit
68eee6a94e
  1. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml

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

@ -154,8 +154,16 @@
sum(if(res.sstatus='4',ifnull(res.workload,0),0)) as had_set_sworkload
from xm_task_workload res
<where>
<include refid="whereForMap"/>
<include refid="where"/>
<if test="projectId!=null and projectId!=''">
and task.project_id=#{projectId}
</if>
<if test="taskId!=null and taskId!=''">
and task.id=#{taskId}
</if>
<if test="userid!=null and userid!=''">
and res.userid=#{userid}
</if>
and res.sstatus='1'
and res.detail_id is null
</where>
group by res.project_id,res.task_id,res.userid

Loading…
Cancel
Save