浏览代码

移除common包中feignExceptionHandler的自动注入,改为在项目中配置注入

lixing 4 年之前
父节点
当前提交
f47117b19c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fm-person/src/main/java/com/persagy/fm/person/service/impl/PersonServiceImpl.java

+ 3 - 3
fm-person/src/main/java/com/persagy/fm/person/service/impl/PersonServiceImpl.java

@@ -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())