|
@@ -2,6 +2,7 @@ package com.zhongzheng.controller.user;
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.zhongzheng.common.annotation.Log;
|
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
@@ -134,8 +135,15 @@ public class UserController extends BaseController {
|
|
|
vo.setEduPhone(tenant.getEduPhone());
|
|
|
vo.setSlabSign(tenant.getSlabSign());
|
|
|
vo.setStudentRestudy(tenant.getStudentRestudy());
|
|
|
+ if (ObjectUtils.isNotNull(tenant.getPwdCheckTime()) && tenant.getPwdCheckTime() > 0){
|
|
|
+ //判斷用戶是否需要修改密碼
|
|
|
+ Long time = ObjectUtils.isNotNull(vo.getPwdTime())?vo.getPwdTime():vo.getCreateTime();
|
|
|
+ Long dayAfter = DateUtils.getDayAfter(time, tenant.getPwdCheckTime());
|
|
|
+ if (dayAfter < DateUtils.getNowTime()){
|
|
|
+ vo.setPwdSign(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
|
iUserVisitLogService.insertByAddBo(bo);
|
|
|
return AjaxResult.success(vo);
|