|
|
@@ -442,9 +442,9 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
private String executeCarModelCodexhQuery(HtCrawlerCarQueryResponse.DataDTO.DataListDTO carDTO,
|
|
|
CarInfoVo car, String cookie, String quotationNo) {
|
|
|
MultiValueMap<String, String> fd = new LinkedMultiValueMap<>();
|
|
|
- fd.add("modelCode", carDTO.getModelcode());
|
|
|
+ fd.add("modelCode", carDTO.getModelcode()); //"BCHFCBUB0001" carDTO.getModelcode()
|
|
|
fd.add("licenseNo", car.getLicenseNo());
|
|
|
- fd.add("licenseKindCode", car.getLicenseKindCode() + " " + car.getLicenseKindName()); // "02 小型汽车号牌"
|
|
|
+ fd.add("licenseKindCode", "02 小型汽车号牌"); // "02 小型汽车号牌" car.getLicenseKindCode() + " " + car.getLicenseKindName()
|
|
|
fd.add("engineNo", car.getEngineNo());
|
|
|
fd.add("frameNo", car.getVinNo());
|
|
|
// fd.add("useNatureCode", "8A 家庭自用");
|
|
|
@@ -668,14 +668,14 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
"postalCode", "bulidTypeCode", "bulidTypeQiTaMes", "provinceName", "cityName", "regionName")) {
|
|
|
m.put(k, "");
|
|
|
}
|
|
|
- m.put("amount", set != null && set.getCoverage() != null ? set.getCoverage().toString().replace(".00", "") : "");
|
|
|
+ m.put("amount", set != null && set.getCoverage() != null ? set.getCoverage().toString().replace(".00", "") : cfg.getCoverage());
|
|
|
m.put("car_limitloadperson", q.getCarInfoVo().getSeatCount());
|
|
|
m.put("productcode", cfg != null ? cfg.getParentProductCode() : "");
|
|
|
m.put("mealcode", cfg != null ? cfg.getProductCode() : "");
|
|
|
m.put("startdate", q.getCiRiskInfoVo().getStartDate());
|
|
|
m.put("enddate", q.getCiRiskInfoVo().getEndDate());
|
|
|
m.put("num", "1");
|
|
|
- m.put("premium", set != null && set.getPremium() != null ? set.getPremium().toString().replace(".00", ".0") : "");
|
|
|
+ m.put("premium", set != null && set.getPremium() != null ? set.getPremium().toString().replace(".00", ".0") : cfg.getPremium());
|
|
|
m.put("isInsuredSizesFlag", "0");
|
|
|
m.put("perinsuredList", perinsuredList);
|
|
|
return m;
|
|
|
@@ -1469,11 +1469,11 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
private static void fillVehicleTypeCodes(CarInfoVo car, Map<String, Object> data, String motorTypeKey, String motorUsageKey) {
|
|
|
String use = car.getVehicleUseCode(), kind = car.getCarKindCode();
|
|
|
switch (use) {
|
|
|
- case "04" -> data.putAll(Map.of(motorTypeKey, "H0", motorUsageKey, "9D"));
|
|
|
- case "05" -> data.putAll(Map.of(motorTypeKey, "A0", motorUsageKey, "8A"));
|
|
|
+ case "04" -> data.putAll(Map.of(motorTypeKey, "H0 货车", motorUsageKey, "9D 营业货运"));
|
|
|
+ case "05" -> data.putAll(Map.of(motorTypeKey, "A0 客车", motorUsageKey, "8A 家庭自用"));
|
|
|
case "06" -> {
|
|
|
- if ("A0".equals(kind)) data.putAll(Map.of(motorTypeKey, "A0", motorUsageKey, "8C"));
|
|
|
- else if ("A1".equals(kind)) data.putAll(Map.of(motorTypeKey, "H0", motorUsageKey, "8D"));
|
|
|
+ if ("A0".equals(kind)) data.putAll(Map.of(motorTypeKey, "A0 客车", motorUsageKey, "8C"));
|
|
|
+ else if ("A1".equals(kind)) data.putAll(Map.of(motorTypeKey, "H0 货车", motorUsageKey, "8D 非营业货运"));
|
|
|
}
|
|
|
case "07" -> {
|
|
|
if ("A0".equals(kind)) data.putAll(Map.of(motorTypeKey, "A0", motorUsageKey, "8B"));
|
|
|
@@ -1486,17 +1486,17 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
private static void fillVehicleTypeCodes2(CarInfoVo car, MultiValueMap<String, String> data, String motorTypeKey, String motorUsageKey) {
|
|
|
String use = car.getVehicleUseCode(), kind = car.getCarKindCode();
|
|
|
switch (use) {
|
|
|
- case "04" -> { data.add(motorTypeKey, "H0"); data.add(motorUsageKey, "9D"); }
|
|
|
- case "05" -> { data.add(motorTypeKey, "A0"); data.add(motorUsageKey, "8A"); }
|
|
|
+ case "04" -> { data.add(motorTypeKey, "H0 货车"); data.add(motorUsageKey, "9D 营业货运"); }
|
|
|
+ case "05" -> { data.add(motorTypeKey, "A0 客车"); data.add(motorUsageKey, "8A 家庭自用"); }
|
|
|
case "06" -> {
|
|
|
- if ("A0".equals(kind)) { data.add(motorTypeKey, "A0"); data.add(motorUsageKey, "8C"); }
|
|
|
- else if ("A1".equals(kind)) { data.add(motorTypeKey, "H0"); data.add(motorUsageKey, "8D"); }
|
|
|
+ if ("A0".equals(kind)) { data.add(motorTypeKey, "A0 客车"); data.add(motorUsageKey, "8C"); }
|
|
|
+ else if ("A1".equals(kind)) { data.add(motorTypeKey, "H0 货车"); data.add(motorUsageKey, "8D 非营业货运"); }
|
|
|
}
|
|
|
case "07" -> {
|
|
|
- if ("A0".equals(kind)) { data.add(motorTypeKey, "A0"); data.add(motorUsageKey, "8B"); }
|
|
|
- else if ("A1".equals(kind)) { data.add(motorTypeKey, "H0"); data.add(motorUsageKey, "8D"); }
|
|
|
+ if ("A0".equals(kind)) { data.add(motorTypeKey, "A0 客车"); data.add(motorUsageKey, "8B"); }
|
|
|
+ else if ("A1".equals(kind)) { data.add(motorTypeKey, "H0 货车"); data.add(motorUsageKey, "8D 非营业货运"); }
|
|
|
}
|
|
|
- case "08" -> { data.add(motorTypeKey, "H0"); data.add(motorUsageKey, "8D"); }
|
|
|
+ case "08" -> { data.add(motorTypeKey, "H0 货车"); data.add(motorUsageKey, "8D 非营业货运"); }
|
|
|
}
|
|
|
}
|
|
|
|