Compare commits

...

2 Commits

Author SHA1 Message Date
csyue 2881cb0204 int类型变量命名 2024-03-26 13:53:28 +08:00
csyue d16be6ca46 int同类型比较 2024-03-26 13:52:19 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class SysPasswordService {
retryCount = 0;
}
if (retryCount >= Integer.valueOf(maxRetryCount).intValue()) {
if (retryCount >= maxRetryCount) {
String errMsg = String.format("密码输入错误%s次帐户锁定%s分钟", maxRetryCount, lockTime);
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, errMsg);
throw new ServiceException(errMsg);

View File

@ -660,7 +660,7 @@ public class DateTimeHelper {
Date now = new Date();
System.out.println("当前时间:" + sdf.format(now));
//30分钟
long time = 30 * 60 * 1000;
int time = 30 * 60 * 1000;
//30分钟后的时间
Date afterDate = new Date(now.getTime() + time);
System.out.println(sdf.format(afterDate));