From 0b7e7997231cdce827c7604e496c9720a14c8f4e Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Tue, 7 Jun 2022 13:59:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=97=E9=81=93=E8=B4=A6=E5=8F=B77=E5=A4=A9?= =?UTF-8?q?=E5=90=8E=E8=BF=87=E6=9C=9F=20=E7=9C=81=E5=B8=82=E5=8C=BA?= =?UTF-8?q?=E5=8E=BF=E8=B4=A6=E5=8F=B75=E5=A4=A9=E5=90=8E=E8=BF=87?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/service/impl/FirePointServiceImpl.java | 1 + src/main/java/com/xkrs/service/impl/SysUserServiceImpl.java | 6 +++--- src/main/java/com/xkrs/utils/DateTimeUtils.java | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/xkrs/utils/DateTimeUtils.java 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 { +}