|
|
@@ -580,13 +580,15 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
EsmInsCompany esmInsCompany;
|
|
|
|
|
|
// 获取保险公司
|
|
|
- if (AgreementType.AT2.getCode().equals(agreementSaveDto.getAgreementType())) {
|
|
|
- String message = String.format("协议为 %s 保险公司必须传入", AgreementType.AT2.getDesc());
|
|
|
- AssertionUtils.isStringEmpty(agreementSaveDto.getAssociationCompaniesId(), message);
|
|
|
- esmInsCompany = esmInsCompanyService.isExists(agreementSaveDto.getAssociationCompaniesId());
|
|
|
- } else {
|
|
|
- esmInsCompany = esmInsCompanyService.getBySubsidiary(agreementSaveDto.getPartnerCompaniesId());
|
|
|
- }
|
|
|
+// if (AgreementType.AT2.getCode().equals(agreementSaveDto.getAgreementType())) {
|
|
|
+// String message = String.format("协议为 %s 保险公司必须传入", AgreementType.AT2.getDesc());
|
|
|
+// AssertionUtils.isStringEmpty(agreementSaveDto.getAssociationCompaniesId(), message);
|
|
|
+// esmInsCompany = esmInsCompanyService.isExists(agreementSaveDto.getAssociationCompaniesId());
|
|
|
+// } else {
|
|
|
+// esmInsCompany = esmInsCompanyService.getBySubsidiary(agreementSaveDto.getPartnerCompaniesId());
|
|
|
+// }
|
|
|
+
|
|
|
+ esmInsCompany = esmInsCompanyService.getBySubsidiary(agreementSaveDto.getPartnerCompaniesId());
|
|
|
|
|
|
// 验证用户名密码 python api 对接需要验证用户名
|
|
|
if (!ObjectUtils.isEmpty(attribution.getApiType()) && PtlApiType.PTL_API_2.getCode() == attribution.getApiType()) {
|