|
|
@@ -119,13 +119,15 @@ public class GuorenRequestApiComponent {
|
|
|
* 查询非车险保单号
|
|
|
*/
|
|
|
public void queryNoCarPolicyNo(InsAreaCompany iac) {
|
|
|
- if(iac.getJypremium() == null || iac.getJypremium().compareTo(new BigDecimal(0)) == 0){
|
|
|
+ if (iac.getJypremium() == null || iac.getJypremium().compareTo(new BigDecimal(0)) == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
//构造请求参数
|
|
|
- QueryNoCarPolicyNoRequest queryNoCarPolicyNoRequest = new QueryNoCarPolicyNoRequest(StringUtils.isNotEmpty(iac.getSyapplyno()) ? iac.getSyapplyno() : iac.getJqapplyno());
|
|
|
- QueryNoCarPolicyNoResponse request = request(queryNoCarPolicyNoRequest, PlatformInterfaceCode.API_IIIRBT00052, QueryNoCarPolicyNoResponse.class);
|
|
|
+ QueryNoCarPolicyNoRequest queryNoCarPolicyNoRequest = new QueryNoCarPolicyNoRequest(StringUtils.isNotEmpty(iac.getSyapplyno()) ?
|
|
|
+ iac.getSyapplyno() : iac.getJqapplyno());
|
|
|
+ QueryNoCarPolicyNoResponse request = request(queryNoCarPolicyNoRequest, PlatformInterfaceCode.API_IIIRBT00052,
|
|
|
+ QueryNoCarPolicyNoResponse.class);
|
|
|
QueryNoCarPolicyNoResponse.DataDTO data = request.getData();
|
|
|
// 非车保单号
|
|
|
List<String> noCarPolicyNo = data.getNoCarPolicyNo();
|
|
|
@@ -186,7 +188,8 @@ public class GuorenRequestApiComponent {
|
|
|
*/
|
|
|
public String noCarElectronicPolicy(String channelCode, String othBusinessNo, String policyNo) {
|
|
|
NoCarElectronicPolicyRequest noCarElectronicPolicyRequest = new NoCarElectronicPolicyRequest(channelCode, othBusinessNo, policyNo);
|
|
|
- NoCarElectronicPolicyResponse request = request(noCarElectronicPolicyRequest, PlatformInterfaceCode.API_IIRBT00089, NoCarElectronicPolicyResponse.class);
|
|
|
+ NoCarElectronicPolicyResponse request = request(noCarElectronicPolicyRequest, PlatformInterfaceCode.API_IIRBT00089,
|
|
|
+ NoCarElectronicPolicyResponse.class);
|
|
|
return request.getData().getEpolicyUrl();
|
|
|
}
|
|
|
|