Browse Source

公告管理

Wang-Xiao-Ran 1 year ago
parent
commit
e1b8543372
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sooka-jnb/src/main/resources/mapper/my/AnnouncementMapper.xml

+ 1 - 1
sooka-jnb/src/main/resources/mapper/my/AnnouncementMapper.xml

@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </if>
             <if test="userId != null  and userId != ''">
                 and (a.user_id = #{userId} or a.user_id is null)
-                and validity_end_time &gt;= DATE_FORMAT(NOW(), '%Y-%m-%d 00:00:00')
+                and (validity_end_time &gt;= DATE_FORMAT(NOW(), '%Y-%m-%d 00:00:00') or validity_end_time is null)
             </if>
         </where>
         order by validity_start_time desc