Browse Source

线索列表判定释放天数修改

anderx 1 year ago
parent
commit
877f9032eb

+ 2 - 7
src/main/java/com/goafanti/customer/service/impl/UserClueServiceImpl.java

@@ -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);
         }