Helius
2022-02-21 f54f8a92c09a2cd76b3bbb796df680215b63ab8a
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>