You've already forked FrameTour-BE
1、清理功能修复;2、device在线状态放redis;3、viid传入时重查redis缓存,避免关闭的设备传入素材
This commit is contained in:
src/main
java
com
ycwl
basic
controller
mapper
repository
service
task
utils
resources
@ -49,7 +49,7 @@
|
||||
</delete>
|
||||
<delete id="deleteNotBuyRelations">
|
||||
delete from member_source
|
||||
where member_id = #{memberId} and scenic_id = #{scenicId} and is_buy = 0 and create_time <= #{endDate}
|
||||
where scenic_id = #{scenicId} and is_buy = 0 and create_time <= #{endDate}
|
||||
</delete>
|
||||
|
||||
<select id="list" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
|
||||
|
@ -71,13 +71,13 @@
|
||||
IFNULL(count(1), 0) AS count
|
||||
FROM (
|
||||
select count(1) as count
|
||||
from `order`
|
||||
where scenic_id = #{scenicId} and pay_at is not null
|
||||
from `statistics`
|
||||
where scenic_id = #{scenicId} and type in (3,4)
|
||||
<if test="startTime!= null">
|
||||
and create_at >= #{startTime}
|
||||
and create_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!= null">
|
||||
and create_at <= #{endTime}
|
||||
and create_time <= #{endTime}
|
||||
</if>
|
||||
group by member_id
|
||||
)a
|
||||
|
@ -53,6 +53,10 @@
|
||||
<delete id="deleteById">
|
||||
delete from video where id = #{id}
|
||||
</delete>
|
||||
<delete id="deleteNotBuyRelations">
|
||||
delete from member_video
|
||||
where scenic_id = #{scenicId} and is_buy = 0 and create_time < #{endTime}
|
||||
</delete>
|
||||
<select id="list" resultType="com.ycwl.basic.model.pc.video.resp.VideoRespVO">
|
||||
select v.id, v.scenic_id, template_id, task_id, worker_id, video_url, v.create_time, v.update_time,
|
||||
s.name scenicName, s.latitude, s.longitude, t.name templateName, t.price templatePrice,t.cover_url templateCoverUrl
|
||||
|
Reference in New Issue
Block a user