diff --git a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java index ba78a29..6a9e339 100644 --- a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java @@ -539,6 +539,7 @@ public class FirePointServiceImpl implements FirePointService { String proName = byProCode.get(0).getProName(); if (!"".equals(startTime) && !"".equals(endTime)) { LocalDate localDate = DateTimeUtil.stringToDate(endTime); +// DateTimeUtils. // 结束时间 LocalDate localDate1 = localDate.plusDays(1); String dateToString = DateTimeUtil.dateToString(localDate1); diff --git a/src/main/java/com/xkrs/service/impl/SysUserServiceImpl.java b/src/main/java/com/xkrs/service/impl/SysUserServiceImpl.java index 634e1ca..f347679 100644 --- a/src/main/java/com/xkrs/service/impl/SysUserServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/SysUserServiceImpl.java @@ -155,10 +155,10 @@ public class SysUserServiceImpl implements SysUserService { sysUserEntity.setActiveFlag(0); sysUserEntity.setAccountType("县级"); } - if (9 == countyCode.length()) {//街道账号14天后过期 - sysUserEntity.setOverTime(dateTimeToString(LocalDateTime.now().plusDays(14L))); - } else {//省市区县账号7天后过期 + if (9 == countyCode.length()) {//街道账号7天后过期 sysUserEntity.setOverTime(dateTimeToString(LocalDateTime.now().plusDays(7L))); + } else {//省市区县账号5天后过期 + sysUserEntity.setOverTime(dateTimeToString(LocalDateTime.now().plusDays(5L))); } sysUserEntity.setStatusCode(0); sysUserEntity.setAddTime(dateTimeToString(LocalDateTime.now())); diff --git a/src/main/java/com/xkrs/utils/DateTimeUtils.java b/src/main/java/com/xkrs/utils/DateTimeUtils.java new file mode 100644 index 0000000..0fca6f3 --- /dev/null +++ b/src/main/java/com/xkrs/utils/DateTimeUtils.java @@ -0,0 +1,4 @@ +package com.xkrs.utils; + +public class DateTimeUtils { +}