街道账号7天后过期

省市区县账号5天后过期
This commit is contained in:
liuchengqian 2022-06-07 13:59:23 +08:00
parent 3ad5c9d71c
commit 0b7e799723
3 changed files with 8 additions and 3 deletions

View File

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

View File

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

View File

@ -0,0 +1,4 @@
package com.xkrs.utils;
public class DateTimeUtils {
}