|
|
@@ -65,13 +65,8 @@ public class UserClueServiceImpl extends BaseMybatisDao<UserMapper> implements U
|
|
|
LocalDateTime now=LocalDateTime.now().withHour(0).withMinute(0).withSecond(0);
|
|
|
LocalDateTime clueTime = null;
|
|
|
for (OutUserClueList e : list) {
|
|
|
- if (e.getClueTransferTime()!=null){
|
|
|
- clueTime = e.getClueTransferTime().toInstant().atZone(java.time.ZoneId.systemDefault()).toLocalDateTime();
|
|
|
- clueTime = clueTime.plusDays(15).withHour(0).withMinute(0).withSecond(0);
|
|
|
- }else {
|
|
|
- clueTime = e.getClueTime().toInstant().atZone(java.time.ZoneId.systemDefault()).toLocalDateTime();
|
|
|
- clueTime = clueTime.plusDays(15).withHour(0).withMinute(0).withSecond(0);
|
|
|
- }
|
|
|
+ clueTime = e.getClueTransferTime().toInstant().atZone(java.time.ZoneId.systemDefault()).toLocalDateTime();
|
|
|
+ clueTime = clueTime.plusDays(15).withHour(0).withMinute(0).withSecond(0);
|
|
|
long between = ChronoUnit.DAYS.between(now,clueTime);
|
|
|
e.setDays((int) between);
|
|
|
}
|