|
|
@@ -56,16 +56,19 @@ public class HuaTaiRepeatInsuranceComponents {
|
|
|
|
|
|
HuaTaiQuotedPriceRequest.ContractDto.ContractMainDto contractMain = contractDto.getContractMain();
|
|
|
|
|
|
- // 响应内容
|
|
|
- HashMap<String, HuaTaiQuotedPriceResponse.ContractDto> mapResponse =
|
|
|
- HuaTaiReinsuranceComponents.getStringPlatFormMessageDtoHashMap(quotedPriceResponse);
|
|
|
- HuaTaiQuotedPriceResponse.ContractDto contractResponse = mapResponse.get(HuaTaiRiskCode.R_1002.getCode());
|
|
|
- HuaTaiQuotedPriceResponse.ContractDto.PlatFormMessageDto platFormMessage =
|
|
|
- contractResponse.getPlatFormMessage();
|
|
|
- String reInsureMsg = platFormMessage.getReInsureMsg();
|
|
|
-
|
|
|
- if(!StringUtils.isEmpty(reInsureMsg)){
|
|
|
- returnMessage = reInsureMsg;
|
|
|
+ HuaTaiBaseResponseHead head = quotedPriceResponse.getHead();
|
|
|
+ if (!"-1".equals(head.getReturnCode())) {
|
|
|
+ // 响应内容
|
|
|
+ HashMap<String, HuaTaiQuotedPriceResponse.ContractDto> mapResponse =
|
|
|
+ HuaTaiReinsuranceComponents.getStringPlatFormMessageDtoHashMap(quotedPriceResponse);
|
|
|
+ HuaTaiQuotedPriceResponse.ContractDto contractResponse = mapResponse.get(HuaTaiRiskCode.R_1002.getCode());
|
|
|
+ HuaTaiQuotedPriceResponse.ContractDto.PlatFormMessageDto platFormMessage =
|
|
|
+ contractResponse.getPlatFormMessage();
|
|
|
+ String reInsureMsg = platFormMessage.getReInsureMsg();
|
|
|
+
|
|
|
+ if(!StringUtils.isEmpty(reInsureMsg)){
|
|
|
+ returnMessage = reInsureMsg;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 交强险重复投保
|