pc端 相关方可以新增已离职人员,会覆盖数据
parent
9298d54baf
commit
2950609d27
|
|
@ -373,7 +373,10 @@ public class UserE extends BaseE {
|
||||||
}
|
}
|
||||||
//判断是否在当前企业存在
|
//判断是否在当前企业存在
|
||||||
//判断是否有当前企业
|
//判断是否有当前企业
|
||||||
boolean flag = userEList.stream().anyMatch(userE -> AuthContext.getTenantId().equals(userE.getCorpinfoId()));
|
boolean flag = userEList.stream().filter(userE -> UserEmploymentFlagEnum.ON.getCode().equals(userE.getEmploymentFlag())
|
||||||
|
|| UserEmploymentFlagEnum.ENTRY_AUDIT.getCode().equals(userE.getEmploymentFlag())
|
||||||
|
|| UserEmploymentFlagEnum.RESIGNATION_AUDIT.getCode().equals(userE.getEmploymentFlag())
|
||||||
|
).anyMatch(userE -> AuthContext.getTenantId().equals(userE.getCorpinfoId()));
|
||||||
if (flag) {
|
if (flag) {
|
||||||
throw new BizException("当前手机号当前企业已存在");
|
throw new BizException("当前手机号当前企业已存在");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue