Commit 61640e0e by 翁国栋

运营后台--

可选择产品
parent a7290494
...@@ -131,7 +131,7 @@ public class InsureContorll { ...@@ -131,7 +131,7 @@ public class InsureContorll {
if(insurePolicy!=null){ if(insurePolicy!=null){
return ResultUtil.error("企业已存在"); return ResultUtil.error("企业已存在");
} }
InsureProduct insureProduct = InsureProduct.builder().id(Integer.parseInt(insureDto.getProductId())).build(); InsureProduct insureProduct = InsureProduct.builder().id(Integer.parseInt(insureDto.getProductId())).build().selectById();
if(insureProduct==null){ if(insureProduct==null){
return ResultUtil.error("产品不存在"); return ResultUtil.error("产品不存在");
} }
...@@ -194,8 +194,8 @@ public class InsureContorll { ...@@ -194,8 +194,8 @@ public class InsureContorll {
insured.put("trans_id", "PI_" + qyzxEntInfoM.getId() + "_" + dtf2.format(now)); insured.put("trans_id", "PI_" + qyzxEntInfoM.getId() + "_" + dtf2.format(now));
insured.put("price", insureDto.getUserIds().length * price);/*根据基础计划生成*/ insured.put("price", insureDto.getUserIds().length * price);/*根据基础计划生成*/
insured.put("insured_applicant_relations", "36960"); insured.put("insured_applicant_relations", "36960");
insured.put("insured_mobile", qyzxEntInfoM.getPhone()); insured.put("insured_mobile", insureApplicant.getApplicantEPhone());
insured.put("insured_e_contact", qyzxEntInfoM.getOperName()); insured.put("insured_e_contact", insureApplicant.getApplicantEContacts());
insured.put("insured_name", qyzxEntInfoM.getName()); insured.put("insured_name", qyzxEntInfoM.getName());
insured.put("insured_no_type", "3306"); insured.put("insured_no_type", "3306");
insured.put("insured_no", qyzxEntInfoM.getCreditCode()); insured.put("insured_no", qyzxEntInfoM.getCreditCode());
......
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