xiaoyong931011
2021-08-25 171a706099da6bd039b31b7a94eb75fb9b6162d2
gc-sys/src/main/resources/mapper/system/BannerMapper.xml
@@ -165,4 +165,14 @@
        set state = #{state}
        where  id = #{id}
    </update>
    <select id="selectSysPopupBystate" resultType="com.xzx.gc.entity.SysPopup">
        select * from xzx_sys_popup where state = #{state}
        and ((#{startTime} >= start_time and #{startTime} &lt;= end_time)
            or (#{endTime} >= start_time and #{endTime} &lt;= end_time)
            or (#{startTime} &lt;= start_time and #{endTime} >= end_time))
    </select>
</mapper>