Commit f0884c37 authored by 周健威's avatar 周健威

修改保险

parent 67c8ee5d
......@@ -3,6 +3,7 @@ package com.xxfc.platform.order.rest.background;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.msg.TableResultResponse;
......@@ -63,6 +64,9 @@ public class BgOrderPersonInsuranceController extends BaseController<OrderPerson
setPayTimeStr("下单时间");
setRefundTimeStr("退保时间");
setStatusStr("状态");
setBuyInsureIdCard("投保人身份证");
setBuyInsurePhone("投保人手机号");
setBuyInsureName("投保人名称");
}};
exportBean(log, head, () -> {
List<OrderPersonInsurance> bgList = baseBiz.selectInsuranceInfo(dto);
......@@ -70,6 +74,15 @@ public class BgOrderPersonInsuranceController extends BaseController<OrderPerson
bgList.forEach(vo -> {
//OrderNo Name IdCard
PageExportDTO ped = BeanUtil.toBean(vo, PageExportDTO.class);
if(StrUtil.isBlank(vo.getBuyInsureIdCard())) {
ped.setBuyInsureIdCard("");
}
if(StrUtil.isBlank(vo.getBuyInsureName())) {
ped.setBuyInsureName("");
}
if(StrUtil.isBlank(vo.getBuyInsurePhone())) {
ped.setBuyInsurePhone("");
}
switch (vo.getStatus()) {
case OrderPersonInsurance.STATUS_PAY:
ped.setStatusStr("已购买");
......@@ -105,6 +118,9 @@ public class BgOrderPersonInsuranceController extends BaseController<OrderPerson
private String payTimeStr;
private String refundTimeStr;
private String statusStr;
private String buyInsureName;
private String buyInsureIdCard;
private String buyInsurePhone;
}
}
\ No newline at end of file
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