|
@@ -133,8 +133,6 @@
|
|
<if test="isSelf">
|
|
<if test="isSelf">
|
|
JOIN oa_notify_record r ON r.oa_notify_id = a.id AND r.user_id = #{currentUser.id,jdbcType=VARCHAR}
|
|
JOIN oa_notify_record r ON r.oa_notify_id = a.id AND r.user_id = #{currentUser.id,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
- <!-- 关联公告查看表 -->
|
|
|
|
- left join work_oa_notify_view wo on a.id =wo.affiche_id and wo.user_id = #{currentUser.id}
|
|
|
|
|
|
|
|
WHERE a.del_flag = #{DEL_FLAG_NORMAL} and close_status = 0
|
|
WHERE a.del_flag = #{DEL_FLAG_NORMAL} and close_status = 0
|
|
<!-- 未读0,已读1 -->
|
|
<!-- 未读0,已读1 -->
|
|
@@ -192,7 +190,7 @@
|
|
<if test="nowDate != null and nowDate != ''">
|
|
<if test="nowDate != null and nowDate != ''">
|
|
AND a.start_date <= #{nowDate} AND a.end_date >= #{nowDate}
|
|
AND a.start_date <= #{nowDate} AND a.end_date >= #{nowDate}
|
|
</if>
|
|
</if>
|
|
- and wo.affiche_id is null
|
|
|
|
|
|
+ and a.end_date >= now()
|
|
ORDER BY a.update_date DESC
|
|
ORDER BY a.update_date DESC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -209,8 +207,6 @@
|
|
<if test="isSelf">
|
|
<if test="isSelf">
|
|
JOIN oa_notify_record r ON r.oa_notify_id = a.id AND r.user_id = #{currentUser.id,jdbcType=VARCHAR}
|
|
JOIN oa_notify_record r ON r.oa_notify_id = a.id AND r.user_id = #{currentUser.id,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
- <!-- 关联公告查看表 -->
|
|
|
|
- left join work_oa_notify_view wo on a.id =wo.affiche_id and wo.user_id = #{currentUser.id}
|
|
|
|
|
|
|
|
WHERE a.del_flag = #{DEL_FLAG_NORMAL} and close_status = 0
|
|
WHERE a.del_flag = #{DEL_FLAG_NORMAL} and close_status = 0
|
|
<!-- 未读0,已读1 -->
|
|
<!-- 未读0,已读1 -->
|
|
@@ -268,8 +264,7 @@
|
|
<if test="nowDate != null and nowDate != ''">
|
|
<if test="nowDate != null and nowDate != ''">
|
|
AND a.start_date <= #{nowDate} AND a.end_date >= #{nowDate}
|
|
AND a.start_date <= #{nowDate} AND a.end_date >= #{nowDate}
|
|
</if>
|
|
</if>
|
|
- and wo.user_id = #{currentUser.id}
|
|
|
|
- and wo.id is not null
|
|
|
|
|
|
+ and a.end_date < now()
|
|
ORDER BY a.update_date DESC
|
|
ORDER BY a.update_date DESC
|
|
</select>
|
|
</select>
|
|
|
|
|