浏览代码

抄送我 人数

master
PoffyZhang 1年前
父节点
当前提交
379e13fe13
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml

+ 3
- 1
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml 查看文件

@@ -13,11 +13,13 @@
sum(CASE WHEN ht.assignee_ = #{userId} AND ht.end_time_ is NULL THEN 1 end) todoNum,
sum(CASE WHEN ht.assignee_ = #{userId} AND ht.end_time_ IS not NULL THEN 1 end) idoNum,
sum(CASE WHEN hp.start_user_id_ = #{userId} THEN 1 end) mysubmitNum,
0 ccmeNum
sum(CASE WHEN cc.user_id = #{userId} THEN 1 end) ccmeNum
FROM
act_hi_procinst hp
LEFT JOIN
act_hi_taskinst ht ON hp.proc_inst_id_ = ht.proc_inst_id_
LEFT JOIN
wflow_cc_tasks cc ON cc.instance_id = hp.proc_inst_id_
GROUP BY hp.id_
) tol
</select>


正在加载...
取消
保存