diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml index 56e4cdd..e22baae 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/mapper/StatisticsMapper.xml +++ b/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