|
|
@@ -1,7 +1,7 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.ningdatech.pmapi.todocenter.mapper.StatisticsMapper"> |
|
|
|
<select id="getStatistics" parameterType="java.lang.Long" |
|
|
|
<select id="getStatistics" parameterType="java.lang.String" |
|
|
|
resultType="com.ningdatech.pmapi.todocenter.model.po.TodoCenterStatisticsPO"> |
|
|
|
SELECT |
|
|
|
sum(CASE WHEN tol.todoNum IS NOT NULL AND tol.todoNum > 0 THEN 1 ELSE 0 end) todoNum, |
|
|
@@ -24,7 +24,7 @@ |
|
|
|
) tol |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getTodoOrIdo" parameterType="java.lang.Long" |
|
|
|
<select id="getTodoOrIdo" parameterType="java.lang.String" |
|
|
|
resultType="com.ningdatech.pmapi.todocenter.model.po.TodoCenterStatisticsPO"> |
|
|
|
SELECT |
|
|
|
sum(CASE WHEN ht.assignee_ = #{userId} AND ht.end_time_ is NULL THEN 1 end) todoNum, |
|
|
@@ -33,7 +33,7 @@ |
|
|
|
act_hi_taskinst ht |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="mysubmitNum" parameterType="java.lang.Long" |
|
|
|
<select id="mysubmitNum" parameterType="java.lang.String" |
|
|
|
resultType="com.ningdatech.pmapi.todocenter.model.po.TodoCenterStatisticsPO"> |
|
|
|
SELECT |
|
|
|
sum(CASE WHEN tol.mysubmitNum IS NOT NULL AND tol.mysubmitNum > 0 THEN 1 ELSE 0 end) mysubmitNum |
|
|
@@ -49,7 +49,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="ccNums" parameterType="java.lang.Long" |
|
|
|
<select id="ccNums" parameterType="java.lang.String" |
|
|
|
resultType="com.ningdatech.pmapi.todocenter.model.po.TodoCenterStatisticsPO"> |
|
|
|
SELECT |
|
|
|
count(0) ccmeNum |
|
|
|