mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
资金管理接口,ES索引统一枚举
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cf.imes.module.system.dal.mysql.funds.advertisement.AdvertisementMapper">
|
||||
|
||||
|
||||
<update id="updateAdStatusIsPublish">
|
||||
|
||||
update advertisement
|
||||
set stats = 1
|
||||
where deleted = false
|
||||
and start_time = #{now}
|
||||
and status = #{status}
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
<update id="updateAdStatusIsEndPublished">
|
||||
|
||||
|
||||
update advertisement
|
||||
set stats = 2
|
||||
where deleted = false
|
||||
and end_time = #{now}
|
||||
and status = #{status}
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<select id="selectAdList"
|
||||
resultType="com.cf.imes.module.system.controller.admin.funds.advertisement.vo.AdvertisementRespVO">
|
||||
|
||||
|
||||
select id,
|
||||
ad_image_path,
|
||||
sort,
|
||||
ad_redirect_url
|
||||
|
||||
from advertisement
|
||||
|
||||
where deleted = false
|
||||
and ad_image_path like concat('%', #{adPosition},'%')
|
||||
and status = #{status}
|
||||
and start_time <= #{now}
|
||||
and end_time >= #{now}
|
||||
order by sort desc , update_time desc
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user