Commit 28d49a73 by 翁国栋

导入被保人

parent 8156e12e
...@@ -183,6 +183,8 @@ public class InsureContorll { ...@@ -183,6 +183,8 @@ public class InsureContorll {
@ApiOperation(value = "1.投保申请", httpMethod = "POST", notes = "投保申请") @ApiOperation(value = "1.投保申请", httpMethod = "POST", notes = "投保申请")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Result<Object> insured_add(@RequestBody InsureDto insureDto) { public Result<Object> insured_add(@RequestBody InsureDto insureDto) {
log.info("/insured_add");
try {
InsureProduct insureProduct = InsureProduct.builder().id(Integer.parseInt(insureDto.getProductId())).build().selectById(); InsureProduct insureProduct = InsureProduct.builder().id(Integer.parseInt(insureDto.getProductId())).build().selectById();
List<InsureProductPlan> priceList = InsureProductPlan.builder().build().selectList(new QueryWrapper<InsureProductPlan>().lambda() List<InsureProductPlan> priceList = InsureProductPlan.builder().build().selectList(new QueryWrapper<InsureProductPlan>().lambda()
.eq(InsureProductPlan::getProductId, insureProduct.getId()).eq(InsureProductPlan::getDeleteFlag, 0)); .eq(InsureProductPlan::getProductId, insureProduct.getId()).eq(InsureProductPlan::getDeleteFlag, 0));
...@@ -193,8 +195,6 @@ public class InsureContorll { ...@@ -193,8 +195,6 @@ public class InsureContorll {
if (qyzxEntInfoM == null) { if (qyzxEntInfoM == null) {
return ResultUtil.error("企业不存在"); return ResultUtil.error("企业不存在");
} }
try {
DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
DateTimeFormatter ym = DateTimeFormatter.ofPattern("yyyy-MM"); DateTimeFormatter ym = DateTimeFormatter.ofPattern("yyyy-MM");
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
......
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