Commit 5b3ad21a by fz

1.添加车钥匙过期时间任务,关闭车钥匙分享状态

1 parent ed3a4057
...@@ -50,6 +50,7 @@ public class SmartCarKeyExpireTimeFixJob implements SimpleJob { ...@@ -50,6 +50,7 @@ public class SmartCarKeyExpireTimeFixJob implements SimpleJob {
//筛选过期时间小于当前日期的数据更新 //筛选过期时间小于当前日期的数据更新
SmartVehicleBlueShareKeyExample example = new SmartVehicleBlueShareKeyExample(); SmartVehicleBlueShareKeyExample example = new SmartVehicleBlueShareKeyExample();
example.createCriteria() example.createCriteria()
.andShareStatusEqualTo(1)
.andExpireTimeLessThan(nowDate); .andExpireTimeLessThan(nowDate);
int count = shareKeyService.updateByExampleSelective(shareKey,example); int count = shareKeyService.updateByExampleSelective(shareKey,example);
log.info("SmartCarKeyExpireTimeFixJob=======update count:"+count); log.info("SmartCarKeyExpireTimeFixJob=======update count:"+count);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!