xuqiang 8 месяцев назад
Родитель
Сommit
4786b0a989

+ 9 - 8
platform/src/main/java/com/jzg/service/impl/PtlAgreementAttributionImpl.java

@@ -149,13 +149,14 @@ public class PtlAgreementAttributionImpl extends ServiceImpl<PtlAgreementAttribu
         if (Objects.isNull(sysDept)) {
             throw new SystemException("归属不存在,请重新选择");
         }
-        PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.lambdaQuery()
-                .eq(PtlAgreementAttribution::getUserDept, userDept)
-                .eq(PtlAgreementAttribution::getUsername, username)
-                .eq(PtlAgreementAttribution::getIsDelete, "0")
-                .one();
-        if (!Objects.isNull(ptlAgreementAttribution)) {
-            throw new SystemException("该归属下账号已存在");
-        }
+        //  多个归属使用的情况 可以添加多个账号可以
+//        PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.lambdaQuery()
+//                .eq(PtlAgreementAttribution::getUserDept, userDept)
+//                .eq(PtlAgreementAttribution::getUsername, username)
+//                .eq(PtlAgreementAttribution::getIsDelete, "0")
+//                .one();
+//        if (!Objects.isNull(ptlAgreementAttribution)) {
+//            throw new SystemException("该归属下账号已存在");
+//        }
     }
 }