Commit b912f697 authored by caotao's avatar caotao

1.新增工号登录支持。

parent 5c38eb8a
......@@ -128,7 +128,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
usd.setLockStatus("UNLOCK");
//新增平台用户
AgencyUserModel agencyUserModel = this.setcreateUser(usd);
// this.createLoginInfo(usd);
//设置userID
usd.setUserId(agencyUserModel.getUserId());
//设置工号
usd.setUserName(personAccount.getJobNumber());
//创建支持工号登录
this.createLoginInfo(usd);
//查询部门
DepartmentModel departmentModel = null;
if (personAccount.getDepartmentId() != null) {
......@@ -211,7 +216,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
usd.setUserId(personAccount.getPuserId());
//新增平台用户
AgencyUserModel agencyUserModel = this.updateuser(personAccount.getPuserId(), usd);
// this.updateLoginInfo();
//设置userID
usd.setUserId(agencyUserModel.getUserId());
//设置工号
usd.setUserName(personAccount.getJobNumber());
//创建支持工号登录
this.updateLoginInfo(personAccount.getJobNumber(),usd);
//查询部门
DepartmentModel departmentModel = null;
if (personAccount.getDepartmentId() != null) {
......@@ -282,13 +292,14 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
wrapper.in("person_id", ids);
List<PersonAccount> list = personAccountService.list(wrapper);
List<String> userid = new ArrayList<>();
List<String> loginId = new ArrayList<>();
for (PersonAccount personAccount : list) {
userid.add(personAccount.getPuserId());
}
//删除平台
int deleteResult = personBasicMapper.deleteList(ids);
this.deleuser(String.join(",", userid));
// this.deleteLoginInfo();
this.deleteLoginInfo(String.join(",", loginId));
return deleteResult;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment