mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
资金管理接口,ES索引统一枚举
This commit is contained in:
@@ -88,6 +88,10 @@ xxl:
|
||||
admin:
|
||||
addresses: http://127.0.0.1:9090/xxl-job-admin # 调度中心部署跟地址
|
||||
|
||||
# 广告图片文件
|
||||
adImageFile:
|
||||
filepath: E:\ceshi123\
|
||||
|
||||
--- #################### 服务保障相关配置 ####################
|
||||
|
||||
# Lock4j 配置项
|
||||
|
||||
+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