Commit a65638cf by jianan

保单详情,保单号重复的情况

parent bd29ae3e
......@@ -198,6 +198,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
policyInfo.setHolderName(item.getInsuranceName());
policyInfo.setPlanName(item.getPolNameChn());
policyInfo.setProductName(item.getProductName());
policyInfo.setRelation_id(item.getRelationId());
policyInfo.setPolicyNo(item.getPolicyNo());
policyInfo.setOrderPrice(Double.valueOf(item.getPremium()));
policyInfo.setOrderDate(item.getPolAppDate());
......@@ -211,6 +212,8 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
PolicyInfoQueryResponseVO responseVO = new PolicyInfoQueryResponseVO();
String orderNo = requestVO.getOrderNo();
String policyNo = requestVO.getPolicyNo();
String relation_id = requestVO.getRelation_id();
if (!Strings.isNullOrEmpty(orderNo) || !Strings.isNullOrEmpty(policyNo)) {
Integer platform = requestVO.getPlatform();
platform = (platform == null) ? 1 : platform;
......@@ -227,6 +230,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
// 调用N22保单详情接口
PolicyDetailQueryRequestBody policyInfoRequestBody = new PolicyDetailQueryRequestBody();
policyInfoRequestBody.setPolicyNo(policyNo);
policyInfoRequestBody.setRelation_id(relation_id);
PolicyDetailQueryResponseVO policyDetailQueryResponseVO = n22PolicyService.policyInfo(policyInfoRequestBody);
......
......@@ -4,5 +4,14 @@ import com.yd.dal.entity.order.CustomerPolicyInfo;
public class PolicyInfo extends CustomerPolicyInfo {
private String relation_id;//N22保单工单guid
public String getRelation_id() {
return relation_id;
}
public void setRelation_id(String relation_id) {
this.relation_id = relation_id;
}
}
\ No newline at end of file
......@@ -6,6 +6,7 @@ public class PolicyInfoQueryRequestVO {
private Long policyId;//保单ID
private String policyNo;//保单号
private Integer platform;//平台,1--yd,2--N22
private String relation_id;//N22保单工单guid
/**
* 获取属性 orderId 订单ID
......@@ -62,4 +63,12 @@ public class PolicyInfoQueryRequestVO {
public void setPlatform(Integer platform) {
this.platform = platform;
}
public String getRelation_id() {
return relation_id;
}
public void setRelation_id(String relation_id) {
this.relation_id = relation_id;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment