Commit 8649b931 by 翁国栋 Committed by 284718418@qq.com

8小时保单

parent 82f873ac
......@@ -73,6 +73,7 @@ public class InsureUserController{
InsureProductPlan insureProductPlan = InsureProductPlan.builder().id(user.getProductPlanId()).build().selectById();
user.setPlanIds(JSON.parseArray(insureProductPlan.getPlanJson(), String.class));
user.setProductName(insureProductPlan.getName());
user.setBenefitBasicPlan(String.valueOf(insureProductPlan.getId()));
return ResultUtil.data(user);
}
......
......@@ -21,4 +21,5 @@ public class InsureUserDto {
private String name;
private Date updateTime;
private Integer productPlanId;
private Integer productId;
}
......@@ -49,4 +49,5 @@ public class PolicyDto {
private String companyName;
private boolean isAll = false;
private Integer productPlanId;
private String planName;
}
......@@ -356,6 +356,7 @@
<select id="selectPolicyListByorgCode" resultType="cn.timer.api.dto.insure.InsureUserDto">
SELECT
ip.product_id as productId,
ip.id as id,
ip.policy_no as policyNo,
ir.name,
......
......@@ -286,11 +286,13 @@
iu.policy_date_end,iu.create_time,iu.insured_name,iu.benefit_basic_plan AS benefitBasicPlan,iu.price AS price,
iu.user_id as userId,iu.batch_no as batchNo,iu.benefit_occupation_category as benefitOccupationCategory,
iu.policy_id as policyId,
iu.apply_type as applyType
iu.apply_type as applyType,
ipp.name as planName
from insure_user iu
LEFT JOIN yggl_main_emp yme on yme.id=iu.user_id
LEFT JOIN insure_policy ip on ip.id=iu.policy_id
LEFT JOIN insure_product io on io.id=ip.product_id
LEFT JOIN insure_product_plan ipp on ipp.id =iu.product_plan_id
<where>
<if test="policyDto.orgCode !=null and policyDto.orgCode !=''">
and ip.org_code=#{policyDto.orgCode}
......
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