换水推送优化
This commit is contained in:
parent
27f360947d
commit
ea39e82549
|
|
@ -85,7 +85,13 @@ public class RemindJobImpl implements RemindJob {
|
||||||
boolean update = tmpPushRemindService.update(tblTmpPushRemind, new UpdateWrapper<TblTmpPushRemind>()
|
boolean update = tmpPushRemindService.update(tblTmpPushRemind, new UpdateWrapper<TblTmpPushRemind>()
|
||||||
.eq("device_id", tblTmpPushRemind.getDeviceId())
|
.eq("device_id", tblTmpPushRemind.getDeviceId())
|
||||||
.eq("user_id", tblTmpPushRemind.getUserId()));
|
.eq("user_id", tblTmpPushRemind.getUserId()));
|
||||||
log.info("update : " + update);
|
|
||||||
|
Integer deviceId = tblTmpPushRemind.getDeviceId();
|
||||||
|
TblDevice device = deviceService.getById(deviceId);
|
||||||
|
device.setRemindDate(instant.atZone(zoneId).toLocalDate());
|
||||||
|
boolean update1 = deviceService.updateById(device);
|
||||||
|
log.info("update-device : " + update1);
|
||||||
|
log.info("update-tmpPushRemind : " + update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -112,6 +118,7 @@ public class RemindJobImpl implements RemindJob {
|
||||||
deviceUsers.forEach(deviceUser -> {
|
deviceUsers.forEach(deviceUser -> {
|
||||||
setPushList(pushList, deviceUser);
|
setPushList(pushList, deviceUser);
|
||||||
});
|
});
|
||||||
|
|
||||||
Date date = nextRemindDate(Integer.parseInt(tblDeviceHeaterDetail.getHeaterCycle()));
|
Date date = nextRemindDate(Integer.parseInt(tblDeviceHeaterDetail.getHeaterCycle()));
|
||||||
String nextRemindDate = IfishTaskUtil.format(date);
|
String nextRemindDate = IfishTaskUtil.format(date);
|
||||||
//更新下次提醒时间
|
//更新下次提醒时间
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue