Parcourir la source

账单:更改

wangPH il y a 1 an
Parent
commit
4f103c4151

+ 2 - 2
background-user/src/main/java/cn/kdan/compdf/service/impl/BackgroundUserBalanceServiceImpl.java

@@ -309,8 +309,8 @@ public class BackgroundUserBalanceServiceImpl extends ServiceImpl<BackgroundUser
                     billVO.setEndDate(this.getLastDayOfMonth());
                     break;
                 case 1:
-                    billVO.setStartDate(userRemain.getStartDate().toLocalDate());
-                    billVO.setEndDate(userRemain.getEndDate().toLocalDate());
+                    billVO.setStartDate(ObjectUtil.isNotEmpty(userRemain.getStartDate()) ? userRemain.getStartDate().toLocalDate() : null);
+                    billVO.setEndDate(ObjectUtil.isNotEmpty(userRemain.getEndDate()) ? userRemain.getEndDate().toLocalDate() : null);
                     break;
                 case 2: break;
             }