|
@@ -1016,8 +1016,19 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
*/
|
|
*/
|
|
|
private List<BoHaiCrawlerQuotationRequest2.ItemKind> buildSyItemKindList(QuoteVo quoteVo) {
|
|
private List<BoHaiCrawlerQuotationRequest2.ItemKind> buildSyItemKindList(QuoteVo quoteVo) {
|
|
|
List<BoHaiCrawlerQuotationRequest2.ItemKind> itemKinds = new java.util.ArrayList<>();
|
|
List<BoHaiCrawlerQuotationRequest2.ItemKind> itemKinds = new java.util.ArrayList<>();
|
|
|
-
|
|
|
|
|
// 构建商业险险种
|
|
// 构建商业险险种
|
|
|
|
|
+ buildSyItemKindList(quoteVo, itemKinds);
|
|
|
|
|
+ // 构建驾意险险种
|
|
|
|
|
+ buildJyItemKindList(quoteVo, itemKinds);
|
|
|
|
|
+ return itemKinds;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 构建商业险险种列表
|
|
|
|
|
+ * @param quoteVo
|
|
|
|
|
+ * @param itemKinds
|
|
|
|
|
+ */
|
|
|
|
|
+ private void buildSyItemKindList(QuoteVo quoteVo, List<BoHaiCrawlerQuotationRequest2.ItemKind> itemKinds) {
|
|
|
List<KindInfoVo> kindInfoVo = quoteVo.getKindInfoVo();
|
|
List<KindInfoVo> kindInfoVo = quoteVo.getKindInfoVo();
|
|
|
if (kindInfoVo != null) {
|
|
if (kindInfoVo != null) {
|
|
|
for (int i = 0; i < kindInfoVo.size(); i++) {
|
|
for (int i = 0; i < kindInfoVo.size(); i++) {
|
|
@@ -1031,11 +1042,6 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
itemKinds.add(item);
|
|
itemKinds.add(item);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- // 构建驾意险
|
|
|
|
|
- buildJyItemKindLIst(quoteVo, itemKinds);
|
|
|
|
|
-
|
|
|
|
|
- return itemKinds;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1043,7 +1049,7 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
* @param quoteVo
|
|
* @param quoteVo
|
|
|
* @param itemKinds
|
|
* @param itemKinds
|
|
|
*/
|
|
*/
|
|
|
- private void buildJyItemKindLIst(QuoteVo quoteVo, List<BoHaiCrawlerQuotationRequest2.ItemKind> itemKinds) {
|
|
|
|
|
|
|
+ private void buildJyItemKindList(QuoteVo quoteVo, List<BoHaiCrawlerQuotationRequest2.ItemKind> itemKinds) {
|
|
|
List<AccidentalDrivingVo> accidentalDrivings = quoteVo.getAccidentalDrivings();
|
|
List<AccidentalDrivingVo> accidentalDrivings = quoteVo.getAccidentalDrivings();
|
|
|
if (!CollectionUtils.isEmpty(accidentalDrivings)) {
|
|
if (!CollectionUtils.isEmpty(accidentalDrivings)) {
|
|
|
int startIndex = itemKinds.size() + 1;
|
|
int startIndex = itemKinds.size() + 1;
|
|
@@ -1055,7 +1061,7 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
item.setStartDate(DateTimeUtil.parseLocalDateToString(quoteVo.getCiRiskInfoVo().getStartDate(), DateTimeUtil.DATE_PATTERN));
|
|
item.setStartDate(DateTimeUtil.parseLocalDateToString(quoteVo.getCiRiskInfoVo().getStartDate(), DateTimeUtil.DATE_PATTERN));
|
|
|
item.setEndDate(DateTimeUtil.parseLocalDateToString(quoteVo.getCiRiskInfoVo().getEndDate(), DateTimeUtil.DATE_PATTERN));
|
|
item.setEndDate(DateTimeUtil.parseLocalDateToString(quoteVo.getCiRiskInfoVo().getEndDate(), DateTimeUtil.DATE_PATTERN));
|
|
|
item.setAmount(driving.getSumAmount());
|
|
item.setAmount(driving.getSumAmount());
|
|
|
- item.setUnitAmount("10000.00");
|
|
|
|
|
|
|
+ item.setUnitAmount("10000.00"); // 这个金额不能为空,暂时按最低保额写死
|
|
|
item.setQuantity(String.valueOf(driving.getQuantity()));
|
|
item.setQuantity(String.valueOf(driving.getQuantity()));
|
|
|
itemKinds.add(item);
|
|
itemKinds.add(item);
|
|
|
}
|
|
}
|