Commit 34a03d6b by 翁国栋

旧产品投保

parent 6369d972
......@@ -317,8 +317,14 @@ public class InsureContorll {
/*新增项目*/
insured.put("benefit_basic_plan", insurePlansList.stream().filter(v -> v.getType().equals("BENEFIT_BASIC_PLAN")).collect(Collectors.toList()).get(0).getPlanId());
insured.put("benefit_occupation_category", p.getBenefitOccupationCategory());
insured.put("benefit_3rd_party_lib", insurePlansList.stream().filter(v -> v.getType().equals("BENEFIT_3RD_PARTY_LIB")).collect(Collectors.toList()).get(0).getPlanId());
insured.put("benefit_24hours", insurePlansList.stream().filter(v -> v.getType().equals("BENEFIT_24HOURS")).collect(Collectors.toList()).get(0).getPlanId());
/*如果是旧产品这两项目为空*/
if (insureProduct.getId() == 3||insureProduct.getId()==4) {
insured.put("benefit_3rd_party_lib", "");
insured.put("benefit_24hours", "");
} else {
insured.put("benefit_3rd_party_lib", insurePlansList.stream().filter(v -> v.getType().equals("BENEFIT_3RD_PARTY_LIB")).collect(Collectors.toList()).get(0).getPlanId());
insured.put("benefit_24hours", insurePlansList.stream().filter(v -> v.getType().equals("BENEFIT_24HOURS")).collect(Collectors.toList()).get(0).getPlanId());
}
insuredArray.add(insured);
});
quotations.put("insured", insuredArray);
......
......@@ -20,4 +20,5 @@ public class InsureUserDto {
private String policyNo;
private String name;
private Date updateTime;
private Integer productPlanId;
}
......@@ -318,7 +318,7 @@
ip.policy_no as policyNo,
ip.org_code as orgCode,
iu.insured_name as insuredName,
iu.benefit_basic_plan as benefitBasicPlan,
iu.product_plan_id as benefitBasicPlan,
iu.benefit_occupation_category as benefitOccupationCategory,
iu.product_plan_id as productPlanId,
ip.policy_pay_type as policyPayType,
......
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