|
|
@@ -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("该归属下账号已存在");
|
|
|
+// }
|
|
|
}
|
|
|
}
|