30 lines
1021 B
XML
30 lines
1021 B
XML
|
|
<?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.zcloud.eightwork.persistence.mapper.TaskLogMapper">
|
||
|
|
|
||
|
|
<select id="getTodoCount" resultType="com.zcloud.eightwork.domain.model.TodoCountE">
|
||
|
|
select work_type,
|
||
|
|
count(1) as todoCount
|
||
|
|
from eightwork_task_log
|
||
|
|
where status = 0
|
||
|
|
and (act_user = #{userId}
|
||
|
|
or (act_user_department = #{orgId} and act_user is null))
|
||
|
|
group by work_type
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getTodoCountForWork" resultType="com.zcloud.eightwork.domain.model.TodoCountE">
|
||
|
|
select work_type,
|
||
|
|
step_id,
|
||
|
|
count(1) as todoCount
|
||
|
|
from eightwork_task_log
|
||
|
|
where status = 0
|
||
|
|
and work_type = #{workType}
|
||
|
|
and (act_user = #{userId}
|
||
|
|
or (act_user_department = #{orgId} and act_user is null))
|
||
|
|
group by step_id
|
||
|
|
</select>
|
||
|
|
</mapper>
|
||
|
|
|