|
@@ -608,9 +608,9 @@ public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person>
|
|
|
private Boolean accountRoleChanged(
|
|
|
List<SaasAccountRole> saasAccountRoles, String mainDuty,
|
|
|
List<String> otherDuties, List<String> otherRoles) {
|
|
|
- if (otherDuties.contains(mainDuty)) {
|
|
|
- throw new IllegalArgumentException("副岗不能选择和主岗相同的岗位");
|
|
|
- }
|
|
|
+// if (otherDuties.contains(mainDuty)) {
|
|
|
+// throw new IllegalArgumentException("副岗不能选择和主岗相同的岗位");
|
|
|
+// }
|
|
|
// 校验主岗是否发生变化
|
|
|
List<SaasAccountRole> mainDuties = saasAccountRoles.stream().filter(
|
|
|
saasAccountRole -> AccountRoleTypeEnum.MAIN_DUTY.getType().equals(saasAccountRole.getCasType())
|