Просмотр исходного кода

人保道路救援相关险种修改bug

wanghao 3 месяцев назад
Родитель
Сommit
5073da440a

+ 6 - 6
tenant/insurance/quotation-renbaonew/src/main/java/com/jzg/quotation/renbaonew/crawler/service/impl/RenBaoNewCrawlerRequestBuilder.java

@@ -2568,19 +2568,19 @@ public class RenBaoNewCrawlerRequestBuilder {
                 }
             } else if ("TY1".equals(zgKindCode)) {
                 // 附加增值服务特约条款(道路救援服务)
-                if (serviceTimes != null) {
-                    kind.put("quantity", serviceTimes);
+                if (!amountStr.isEmpty()) {
+                    kind.put("quantity", amountStr);
                 }
             } else if ("TY2".equals(zgKindCode)) {
                 // 附加增值服务特约条款(车辆安全检测)
-                if (serviceTimes != null) {
-                    List<Map<String, Object>> safeCheckItemList = buildSafeCheckItemList(serviceTimes);
+                if (!amountStr.isEmpty()) {
+                    List<Map<String, Object>> safeCheckItemList = buildSafeCheckItemList(amountStr);
                     kind.put("safeCheckItemList", safeCheckItemList);
                 }
             } else if ("TY3".equals(zgKindCode) || "TY4".equals(zgKindCode)) {
                 // 附加增值服务特约条款(代为驾驶服务)
-                if (serviceTimes != null) {
-                    kind.put("quantity", serviceTimes);
+                if (!amountStr.isEmpty()) {
+                    kind.put("quantity", amountStr);
                 }
             }  else if ("MJ1".equals(zgKindCode) || "MJ2".equals(zgKindCode) ||
                     "MJ3".equals(zgKindCode) || "MJ4".equals(zgKindCode)){