|  |  |  | 
|---|
|  |  |  | update xzx_sys_banner | 
|---|
|  |  |  | set sort = #{sort}, | 
|---|
|  |  |  | pic_name = #{picName}, | 
|---|
|  |  |  | pic_path = #{picPath}, | 
|---|
|  |  |  | pic_url = #{picUrl} | 
|---|
|  |  |  | where  id = #{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | 
|---|
|  |  |  | where del_flag = 0 and status = 2 | 
|---|
|  |  |  | order by sort ASC | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectSysPopup" resultType="com.xzx.gc.system.vo.SysPopupListVo"> | 
|---|
|  |  |  | select * from xzx_sys_popup | 
|---|
|  |  |  | order by id desc | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectSysPopupById" resultType="com.xzx.gc.system.vo.SysPopupListVo"> | 
|---|
|  |  |  | select * from xzx_sys_popup where id = #{id} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <update id="updateSysPopupById" parameterType="java.util.Map"> | 
|---|
|  |  |  | update xzx_sys_popup | 
|---|
|  |  |  | set area = #{area}, | 
|---|
|  |  |  | name = #{name}, | 
|---|
|  |  |  | aims = #{aims}, | 
|---|
|  |  |  | rules = #{rules}, | 
|---|
|  |  |  | is_out = #{isOut}, | 
|---|
|  |  |  | out_text = #{outText}, | 
|---|
|  |  |  | start_time = #{startTime}, | 
|---|
|  |  |  | end_time = #{endTime}, | 
|---|
|  |  |  | img = #{img} | 
|---|
|  |  |  | where  id = #{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <update id="updateSysPopupStatusById" parameterType="java.util.Map"> | 
|---|
|  |  |  | update xzx_sys_popup | 
|---|
|  |  |  | 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} <= end_time) | 
|---|
|  |  |  | or (#{endTime} >= start_time and #{endTime} <= end_time) | 
|---|
|  |  |  | or (#{startTime} <= start_time and #{endTime} >= end_time)) | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </mapper> | 
|---|