|
@@ -28,6 +28,7 @@ import com.jeeplus.human.enrollment.enrollmentRegistration.utils.DingTalkUtils;
|
|
|
import com.jeeplus.human.enrollment.enrollmentRegistration.utils.SnowFlake;
|
|
|
import com.jeeplus.sys.feign.*;
|
|
|
import com.jeeplus.sys.service.dto.*;
|
|
|
+import com.jeeplus.sys.utils.UserUtils;
|
|
|
import com.taobao.api.ApiException;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -734,6 +735,22 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
}
|
|
|
//钉钉逻辑
|
|
|
}
|
|
|
+
|
|
|
+ //修改密码
|
|
|
+ String newPassword = report.getNewPassword();
|
|
|
+ String confirmNewPassword = report.getConfirmNewPassword();
|
|
|
+ UserDTO userDTO1 = SpringUtil.getBean(IUserApi.class).getById(reportData.getUserId());
|
|
|
+ if(StringUtils.isNotBlank(newPassword) && StringUtils.isNotBlank(confirmNewPassword)){
|
|
|
+ if (newPassword.equals(confirmNewPassword)){
|
|
|
+ userDTO1.setId(reportData.getUserId());
|
|
|
+ userDTO1.setPassword(SecurityUtils.encryptPassword(newPassword));
|
|
|
+ userDTO1.setUpPassword("0");
|
|
|
+ SpringUtil.getBean(IUserApi.class).saveOrUpdate(userDTO1);
|
|
|
+ UserUtils.deleteCache(userDTO1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
mapper.updateById(report);
|
|
|
|
|
|
if (StringUtils.isNotBlank(report.getSocialSecurityNumber())) {
|