|
|
@@ -90,6 +90,11 @@ public class QwExternalContactTransferCompanyAuditServiceImpl extends ServiceImp
|
|
|
throw new ServiceException("只能转移本公司下的客户");
|
|
|
}
|
|
|
|
|
|
+ boolean hasNotCorpId = qwExternalContacts.stream().anyMatch(c -> !c.getCorpId().equals(qwUser.getCorpId()));
|
|
|
+ if (hasNotCorpId) {
|
|
|
+ throw new ServiceException("只能转移同主体下的客户");
|
|
|
+ }
|
|
|
+
|
|
|
if (qwExternalContacts.isEmpty()) {
|
|
|
throw new ServiceException("请选择需要分配的客户");
|
|
|
}
|