소스 검색

移除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())