|
@@ -271,9 +271,9 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
// 交强险
|
|
// 交强险
|
|
|
boolean cAppJqFlag = "Y".equals(m.getRequestLabel().getCondition().getBase().getCAppJqFlag());
|
|
boolean cAppJqFlag = "Y".equals(m.getRequestLabel().getCondition().getBase().getCAppJqFlag());
|
|
|
|
|
|
|
|
- if(errorMsg.contains("机动车综合商业保险")){
|
|
|
|
|
|
|
+ if (errorMsg.contains("机动车综合商业保险")) {
|
|
|
cAppJqFlag = false;
|
|
cAppJqFlag = false;
|
|
|
- }else if(errorMsg.contains("机动车交通事故强制险")) {
|
|
|
|
|
|
|
+ } else if (errorMsg.contains("机动车交通事故强制险")) {
|
|
|
appSYFlag = false;
|
|
appSYFlag = false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -802,22 +802,23 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
/**
|
|
/**
|
|
|
* 驾意险确保接口
|
|
* 驾意险确保接口
|
|
|
*
|
|
*
|
|
|
- * @param jyPremium 驾意险
|
|
|
|
|
|
|
+ * @param jyPremium 驾意险
|
|
|
* @param ycConfigureParameters 永城配置信息
|
|
* @param ycConfigureParameters 永城配置信息
|
|
|
- * @param insOrderNo 永诚订单号
|
|
|
|
|
|
|
+ * @param insOrderNo 永诚订单号
|
|
|
* @throws JsonProcessingException
|
|
* @throws JsonProcessingException
|
|
|
*/
|
|
*/
|
|
|
- public void submitPolicy(final BigDecimal jyPremium, final YcConfigureParameters ycConfigureParameters, final String insOrderNo) throws JsonProcessingException {
|
|
|
|
|
- if(jyPremium.compareTo(new BigDecimal(0)) > 0){
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ public void submitPolicy(BigDecimal jyPremium, YcConfigureParameters ycConfigureParameters, String insOrderNo) throws JsonProcessingException {
|
|
|
|
|
+ if(jyPremium.compareTo(new BigDecimal(0)) <= 0){
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- final AccidentUnderwritingRequest accidentUnderwritingRequest =
|
|
|
|
|
|
|
+ AccidentUnderwritingRequest accidentUnderwritingRequest =
|
|
|
new AccidentUnderwritingRequest(ycConfigureParameters.getPassword(), ycConfigureParameters.getUserName(), insOrderNo);
|
|
new AccidentUnderwritingRequest(ycConfigureParameters.getPassword(), ycConfigureParameters.getUserName(), insOrderNo);
|
|
|
|
|
|
|
|
- final AccidentUnderwritingResponse accidentUnderwritingResponse = yongchengRequestApiComponents.submitPolicy(accidentUnderwritingRequest);
|
|
|
|
|
|
|
+ AccidentUnderwritingResponse accidentUnderwritingResponse = yongchengRequestApiComponents.submitPolicy(accidentUnderwritingRequest);
|
|
|
AccidentUnderwritingResponse.HeadDTO.ResponseCompleteMessageStatus responseCompleteMessageStatus
|
|
AccidentUnderwritingResponse.HeadDTO.ResponseCompleteMessageStatus responseCompleteMessageStatus
|
|
|
= accidentUnderwritingResponse.getHead().getResponseCompleteMessageStatus();
|
|
= accidentUnderwritingResponse.getHead().getResponseCompleteMessageStatus();
|
|
|
|
|
+
|
|
|
if (!MessageStatusCode.E0000.getCode().equals(responseCompleteMessageStatus.getMessageStatusCode())) {
|
|
if (!MessageStatusCode.E0000.getCode().equals(responseCompleteMessageStatus.getMessageStatusCode())) {
|
|
|
throw new SystemException(responseCompleteMessageStatus.getMessageStatusDescription());
|
|
throw new SystemException(responseCompleteMessageStatus.getMessageStatusDescription());
|
|
|
}
|
|
}
|
|
@@ -1302,12 +1303,6 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
return insAreaCompany;
|
|
return insAreaCompany;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static double add(double v1, double v2) {
|
|
|
|
|
- BigDecimal b1 = new BigDecimal(Double.toString(v1));
|
|
|
|
|
- BigDecimal b2 = new BigDecimal(Double.toString(v2));
|
|
|
|
|
- return b1.add(b2).doubleValue();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Map<String, String> gainRegionCode(String address) {
|
|
public Map<String, String> gainRegionCode(String address) {
|
|
|
|
|
|