|
@@ -682,7 +682,7 @@
|
|
|
)
|
|
|
</select>
|
|
|
|
|
|
- <select id="personalInRepTodoList" parameterType="com.dayou.vo.TaskTodoVO" resultType="com.dayou.vo.PersonalTodoVO">
|
|
|
+ <select id="personalInRepTodoList" resultType="com.dayou.vo.PersonalTodoVO">
|
|
|
SELECT
|
|
|
wfni.id,
|
|
|
wtr.id AS taskId,
|
|
@@ -752,15 +752,18 @@
|
|
|
)
|
|
|
) c on c.business_id = p.id
|
|
|
WHERE
|
|
|
- wtr.handler_id = #{personal.handlerId}
|
|
|
+ wtr.handler_id = #{currentUserId}
|
|
|
AND u.deleted = 0
|
|
|
AND wnt.deleted = 0
|
|
|
AND wtr.deleted = 0
|
|
|
AND wfni.code in ('STATEMENT_IN','REPORT_IN','LETTER_IN')
|
|
|
+ <if test="nodeCode!=null and nodeCode!=''">
|
|
|
+ and wfni.code = #{nodeCode}
|
|
|
+ </if>
|
|
|
order by wfni.modified DESC
|
|
|
</select>
|
|
|
|
|
|
- <select id="personalOutRepTodoList" parameterType="com.dayou.vo.TaskTodoVO" resultType="com.dayou.vo.PersonalTodoVO">
|
|
|
+ <select id="personalOutRepTodoList" resultType="com.dayou.vo.PersonalTodoVO">
|
|
|
SELECT
|
|
|
wfni.id,
|
|
|
wtr.id AS taskId,
|
|
@@ -830,11 +833,14 @@
|
|
|
)
|
|
|
) c on c.business_id = p.id
|
|
|
WHERE
|
|
|
- wtr.handler_id = #{personal.handlerId}
|
|
|
+ wtr.handler_id = #{currentUserId}
|
|
|
AND u.deleted = 0
|
|
|
AND wnt.deleted = 0
|
|
|
AND wtr.deleted = 0
|
|
|
AND wfni.code in ('STATEMENT_OUT','REPORT_OUT','LETTER_OUT')
|
|
|
+ <if test="nodeCode!=null and nodeCode!=''">
|
|
|
+ and wfni.code = #{nodeCode}
|
|
|
+ </if>
|
|
|
order by wfni.modified DESC
|
|
|
</select>
|
|
|
</mapper>
|