|
|
@@ -366,7 +366,7 @@
|
|
|
left join
|
|
|
(select uid,aid,max(create_time) as last_follow_time from user_follow where aid = #{aid} group by uid)t1
|
|
|
on t0.uid = t1.uid
|
|
|
- where datediff(now(),if(t1.t0.lock_time < t1.last_follow_time,t1.last_follow_time,t1.t0.lock_time))>30 or datediff(now(),t0.lock_time)>270
|
|
|
+ where datediff(now(),if(t0.lock_time < t1.last_follow_time,t1.last_follow_time,t1.t0.lock_time))>30 or datediff(now(),t0.lock_time)>270
|
|
|
</select>
|
|
|
|
|
|
<select id="selectWaitReleaseBusiness" resultType="com.goafanti.customer.bo.LockingReleaseBo">
|
|
|
@@ -381,7 +381,7 @@
|
|
|
left join
|
|
|
(select uid,aid,max(create_time) as last_follow_time from user_follow where aid = #{aid} group by uid)t1
|
|
|
on t0.uid = t1.uid
|
|
|
- where datediff(t1.last_follow_time,lock_time)>360 or datediff(now(),t0.lock_time)>900
|
|
|
+ where datediff(t1.last_follow_time,lock_time)>270 or datediff(now(),t0.lock_time)>270
|
|
|
</select>
|
|
|
|
|
|
<update id="updateReleaseLock" parameterType="java.lang.String">
|