|
@@ -3101,20 +3101,20 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
sysUser.setIdentityTime(null);
|
|
sysUser.setIdentityTime(null);
|
|
|
sysUser.setMobile("");
|
|
sysUser.setMobile("");
|
|
|
if(StringUtils.isBlank(transferUserVo.getDeptId())){
|
|
if(StringUtils.isBlank(transferUserVo.getDeptId())){
|
|
|
- throw new SystemException("转出部门不能为空!");
|
|
|
|
|
|
|
+ throw new SystemException("转入部门不能为空!");
|
|
|
}
|
|
}
|
|
|
if(transferUserVo.getDeptId().equals("9")){
|
|
if(transferUserVo.getDeptId().equals("9")){
|
|
|
- throw new SystemException("转出部门不能为总部!");
|
|
|
|
|
|
|
+ throw new SystemException("转入部门不能为总部!");
|
|
|
}
|
|
}
|
|
|
if(transferUserVo.getDeptId().equals(sysUser.getDeptId())){
|
|
if(transferUserVo.getDeptId().equals(sysUser.getDeptId())){
|
|
|
- throw new SystemException("转出部门和用户当前部门一致,请重新选择");
|
|
|
|
|
|
|
+ throw new SystemException("转入部门和用户当前部门一致,请重新选择");
|
|
|
}
|
|
}
|
|
|
SysDept dept = sysDeptMapper.selectById(transferUserVo.getDeptId());
|
|
SysDept dept = sysDeptMapper.selectById(transferUserVo.getDeptId());
|
|
|
if(dept.getDeptType()!=null && ("C".equals(dept.getDeptType()) || "M".equals(dept.getDeptType()))) {
|
|
if(dept.getDeptType()!=null && ("C".equals(dept.getDeptType()) || "M".equals(dept.getDeptType()))) {
|
|
|
- throw new SystemException("转出部门为子公司或者门店,请重新选择");
|
|
|
|
|
|
|
+ throw new SystemException("转入部门为子公司或者门店,请重新选择");
|
|
|
}
|
|
}
|
|
|
if(dept.getManagementSource()!=null && ("1".equals(dept.getManagementSource()) || "2".equals(dept.getManagementSource()) || "3".equals(dept.getManagementSource()))){
|
|
if(dept.getManagementSource()!=null && ("1".equals(dept.getManagementSource()) || "2".equals(dept.getManagementSource()) || "3".equals(dept.getManagementSource()))){
|
|
|
- throw new SystemException("转出部门类型不能为渠道、电销、个代,请重新选择");
|
|
|
|
|
|
|
+ throw new SystemException("转入部门类型不能为渠道、电销、个代,请重新选择");
|
|
|
}
|
|
}
|
|
|
if(sysUser.getType()!=null && sysUser.getType()!=0){
|
|
if(sysUser.getType()!=null && sysUser.getType()!=0){
|
|
|
throw new SystemException("非后线人员不能转出");
|
|
throw new SystemException("非后线人员不能转出");
|