|
|
@@ -37,7 +37,8 @@ public class HuaTaiRepeatInsuranceComponents {
|
|
|
* @return true 重新请求 false 跳过
|
|
|
*/
|
|
|
public boolean compulsoryInsurance(HuaTaiQuotedPriceRequest huaTaiQuotedPriceRequest,
|
|
|
- HuaTaiQuotedPriceResponse quotedPriceResponse) {
|
|
|
+ HuaTaiQuotedPriceResponse quotedPriceResponse,
|
|
|
+ List<String> warnMessageList) {
|
|
|
HuaTaiBaseResponseHead head = quotedPriceResponse.getHead();
|
|
|
if ("0".equals(head.getReturnCode())) {
|
|
|
return false;
|
|
|
@@ -58,6 +59,7 @@ public class HuaTaiRepeatInsuranceComponents {
|
|
|
if (StringUtils.isNotEmpty(returnMessage) && returnMessage.contains("重复投保")) {
|
|
|
String jqEndDate = GuorenDuplicateInsuranceComponent.getEndDate(returnMessage,
|
|
|
GuorenDuplicateInsuranceComponent.THE_FIRST_REGEX);
|
|
|
+ warnMessageList.add(returnMessage);
|
|
|
getPeriodDate(jqEndDate, contractMain);
|
|
|
return true;
|
|
|
}
|
|
|
@@ -73,7 +75,8 @@ public class HuaTaiRepeatInsuranceComponents {
|
|
|
* @return true 重新请求 false 跳过
|
|
|
*/
|
|
|
public boolean commercialInsurance(HuaTaiQuotedPriceRequest huaTaiQuotedPriceRequest,
|
|
|
- HuaTaiQuotedPriceResponse quotedPriceResponse) {
|
|
|
+ HuaTaiQuotedPriceResponse quotedPriceResponse,
|
|
|
+ List<String> warnMessageList) {
|
|
|
|
|
|
HuaTaiBaseResponseHead head = quotedPriceResponse.getHead();
|
|
|
if ("-1".equals(head.getReturnCode())) {
|
|
|
@@ -103,7 +106,7 @@ public class HuaTaiRepeatInsuranceComponents {
|
|
|
if (!ObjectUtils.isEmpty(contractResponse) && !ObjectUtils.isEmpty(platFormMessage) && !StringUtils.isEmpty(reInsureMsg)) {
|
|
|
String syEndDate = GuorenDuplicateInsuranceComponent.getEndDate(reInsureMsg,
|
|
|
GuorenDuplicateInsuranceComponent.THE_FIRST_REGEX);
|
|
|
-
|
|
|
+ warnMessageList.add(reInsureMsg);
|
|
|
getPeriodDate(syEndDate, contractMain);
|
|
|
return true;
|
|
|
}
|