|
@ -29,7 +29,13 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
information.DEL_FLAG = '0' |
|
|
information.DEL_FLAG = '0' |
|
|
AND information.READ_FLAG = '1' |
|
|
AND information.READ_FLAG = '1' |
|
|
|
|
|
<if test="deptId != null"> |
|
|
AND information.DEPT_ID = #{deptId} |
|
|
AND information.DEPT_ID = #{deptId} |
|
|
|
|
|
</if> |
|
|
|
|
|
AND information.DEPT_ID IN |
|
|
|
|
|
<foreach item="deptIdItem" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
|
|
#{deptIdItem} |
|
|
|
|
|
</foreach> |
|
|
<if test="timestamp != null"> |
|
|
<if test="timestamp != null"> |
|
|
<![CDATA[ AND DATE_FORMAT(information.CREATED_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp} |
|
|
<![CDATA[ AND DATE_FORMAT(information.CREATED_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp} |
|
|
</if> |
|
|
</if> |
|
@ -38,6 +44,14 @@ |
|
|
LIMIT #{pageIndex},#{pageSize} |
|
|
LIMIT #{pageIndex},#{pageSize} |
|
|
</select> |
|
|
</select> |
|
|
<update id="updateInformationReadFlag"> |
|
|
<update id="updateInformationReadFlag"> |
|
|
UPDATE epdc_item_information SET READ_FLAG = '1' WHERE DEPT_ID = #{deptId} AND DEL_FLAG = '0' |
|
|
UPDATE epdc_item_information SET READ_FLAG = '1' WHERE |
|
|
|
|
|
DEL_FLAG = '0' |
|
|
|
|
|
<if test="deptId != null"> |
|
|
|
|
|
AND DEPT_ID = #{deptId} |
|
|
|
|
|
</if> |
|
|
|
|
|
AND DEPT_ID IN |
|
|
|
|
|
<foreach item="deptIdItem" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
|
|
#{deptIdItem} |
|
|
|
|
|
</foreach> |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |
|
|