|
|
|
@ -22,6 +22,7 @@ import cn.estsh.i3plus.pojo.model.platform.UserDetailModel;
|
|
|
|
|
import cn.estsh.i3plus.pojo.model.platform.UserDetailPagerModel;
|
|
|
|
|
import cn.estsh.i3plus.pojo.model.platform.UserRolePagerModel;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.*;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.repository.SysUserPasswordRepository;
|
|
|
|
|
import cn.estsh.impp.framework.base.controller.CoreBaseController;
|
|
|
|
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
@ -87,6 +88,9 @@ public class PersonnelController extends CoreBaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private SysUserPasswordUtil userPasswordUtil;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private SysUserPasswordRepository userPasswordRDao;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 添加用户信息
|
|
|
|
|
*
|
|
|
|
@ -150,6 +154,15 @@ public class PersonnelController extends CoreBaseController {
|
|
|
|
|
user.setUserInfoId(info.getId());
|
|
|
|
|
user.setUserPasswordLastModifyTime(TimeTool.getNowTime(true));
|
|
|
|
|
refreshSysUserPassword(user);
|
|
|
|
|
SysUser userSaved=personnelService.saveSysUser(user);
|
|
|
|
|
|
|
|
|
|
// 添加保存passwordId进SysUser表
|
|
|
|
|
SysUserPassword pwd = new SysUserPassword();
|
|
|
|
|
pwd.setUserId(userSaved.getId());
|
|
|
|
|
pwd.setUserPassword(userSaved.getUserLoginPassword());
|
|
|
|
|
ConvertBean.serviceModelInitialize(pwd, userSaved.getUserName());
|
|
|
|
|
SysUserPassword savedPassword = userPasswordRDao.save(pwd);
|
|
|
|
|
user.setUserLoginPasswordId(savedPassword.getId());
|
|
|
|
|
personnelService.saveSysUser(user);
|
|
|
|
|
|
|
|
|
|
info.setUserId(user.getId());
|
|
|
|
|