Bläddra i källkod

小程序首页显示BUG修改,添加结束时间小于当前时间或者开始时间大于当前时间不显示

anderx 1 vecka sedan
förälder
incheckning
e8b969618e

+ 2 - 0
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -1140,6 +1140,8 @@
         <include refid="PublicReleaseAllSql" />
         <include refid="PublicReleaseAllSql" />
         from public_release
         from public_release
         where status in(1,2)  and aid = #{aid}
         where status in(1,2)  and aid = #{aid}
+        and release_start &lt;= now()
+        and release_end &gt;= now()
         order by release_start desc limit 10
         order by release_start desc limit 10
     </select>
     </select>
     <select id="selectOutListBoById" resultType="com.goafanti.weChat.bo.OutPublicReleaseList">
     <select id="selectOutListBoById" resultType="com.goafanti.weChat.bo.OutPublicReleaseList">