街道账号7天后过期
省市区县账号5天后过期
This commit is contained in:
parent
3ad5c9d71c
commit
0b7e799723
@ -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);
|
||||
|
@ -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()));
|
||||
|
4
src/main/java/com/xkrs/utils/DateTimeUtils.java
Normal file
4
src/main/java/com/xkrs/utils/DateTimeUtils.java
Normal file
@ -0,0 +1,4 @@
|
||||
package com.xkrs.utils;
|
||||
|
||||
public class DateTimeUtils {
|
||||
}
|
Loading…
Reference in New Issue
Block a user