|
@@ -243,7 +243,12 @@ public class StaffManageServiceImpl implements IStaffManageService {
|
|
|
});
|
|
|
userId = sysUserVo.getUserId();
|
|
|
String userType = sysUserVo.getUserType();
|
|
|
- sysUser.setUserType(userType + "," + APP_STAFF.getUserType() + "," + PC_USER.getUserType());
|
|
|
+ if (!userType.contains(APP_STAFF.getUserType())) {
|
|
|
+ userType = userType+ "," + APP_STAFF.getUserType();
|
|
|
+ }else if (!userType.contains(PC_USER.getUserType())) {
|
|
|
+ userType = userType+ "," + PC_USER.getUserType();
|
|
|
+ }
|
|
|
+ sysUser.setUserType(userType);
|
|
|
//去查询居住人员里面是否有认证通过的
|
|
|
List<ResidentInfoVo> infoByUserId = residentInfoMapper.getInfoByUserId(userId);
|
|
|
if (infoByUserId != null && !infoByUserId.isEmpty()) {
|
|
@@ -404,7 +409,12 @@ public class StaffManageServiceImpl implements IStaffManageService {
|
|
|
}
|
|
|
}
|
|
|
String userType = sysUserVo.getUserType();
|
|
|
- sysUser.setUserType(userType + "," + APP_STAFF.getUserType() + "," + PC_USER.getUserType());
|
|
|
+ if (!userType.contains(APP_STAFF.getUserType())) {
|
|
|
+ userType = userType+ "," + APP_STAFF.getUserType();
|
|
|
+ }else if (!userType.contains(PC_USER.getUserType())) {
|
|
|
+ userType = userType+ "," + PC_USER.getUserType();
|
|
|
+ }
|
|
|
+ sysUser.setUserType(userType);
|
|
|
userService.updateUserByIdNoTenantId(sysUser);
|
|
|
SysUserTenant sysUserTenant = new SysUserTenant();
|
|
|
sysUserTenant.setUserId(examineStaffManage.getUserId());
|