@@ -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(ifnull(t1.last_follow_time,now()),t0.lock_time)>30 or datediff(now(),t0.lock_time)>270
+ where datediff(now(),ifnull(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">
@@ -26,7 +26,7 @@ public class ReleaseUserTask {
/**
* 每天凌晨一点释放客户和业务
*/
- @Scheduled(cron = "0 15 10 * * ?")
+ @Scheduled(cron = "0 50 10 * * ?")
// @RequestMapping(value = "/releaseUser")
public void releaseUser(){
Date releaseTime = new Date();