|
|
|
|
@ -280,9 +280,9 @@ public class PoliceUserServiceImpl implements IPoliceUserService {
|
|
|
|
|
model.setDeptIds(createValidate.getDeptIds().toString()); |
|
|
|
|
model.setDeptName(deptVo.getName()); |
|
|
|
|
|
|
|
|
|
this.batchSaveDepartByEmpNo(createValidate.getEmpNo(), Arrays.asList(createValidate.getDeptIds())); |
|
|
|
|
this.batchSaveDepartByEmpNo(createValidate.getEmpNo(), Collections.singletonList(createValidate.getDeptIds())); |
|
|
|
|
model.setPostIds(createValidate.getPostIds().toString()); |
|
|
|
|
this.batchSavePositionByEmpNo(createValidate.getEmpNo(), Arrays.asList(createValidate.getPostIds())); |
|
|
|
|
this.batchSavePositionByEmpNo(createValidate.getEmpNo(), Collections.singletonList(createValidate.getPostIds())); |
|
|
|
|
model.setEmpNo(createValidate.getEmpNo()); |
|
|
|
|
model.setName(createValidate.getName()); |
|
|
|
|
model.setAvatar(avatar); |
|
|
|
|
@ -343,6 +343,7 @@ public class PoliceUserServiceImpl implements IPoliceUserService {
|
|
|
|
|
model.setDeptName(deptVo.getName()); |
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotNull(updateValidate.getPostIds())) { |
|
|
|
|
model.setPostIds(updateValidate.getPostIds().toString()); |
|
|
|
|
if(!policeUser.getPostIds().equals(model.getPostIds())){ |
|
|
|
|
this.batchSavePositionByEmpNo(updateValidate.getEmpNo(), Collections.singletonList(updateValidate.getPostIds())); |
|
|
|
|
} |
|
|
|
|
|