Преглед изворни кода

修改bug:
平台协议应收-应收订单,导出后表头为英文

jiakai пре 4 месеци
родитељ
комит
253c3ae55e

+ 60 - 7
commons/src/main/java/com/jzg/commons/entity/finance/po/InsPlyIncome.java

@@ -1,5 +1,7 @@
 package com.jzg.commons.entity.finance.po;
 
+import com.alibaba.excel.annotation.ExcelIgnore;
+import com.alibaba.excel.annotation.ExcelProperty;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.jzg.commons.core.base.BaseModel;
 import io.swagger.v3.oas.annotations.media.Schema;
@@ -11,183 +13,234 @@ import java.io.Serial;
 @EqualsAndHashCode(callSuper = true)
 @Data
 @Schema(description = "财务应收表")
-public class InsPlyIncome  extends BaseModel {
+public class InsPlyIncome extends BaseModel {
     @Serial
     private static final long serialVersionUID = 6161862008963938376L;
+
+    @ExcelIgnore
     private String id;
 
     @Schema(description = "订单号")
+    @ExcelProperty("订单号")
     private String orderNo;
 
     @Schema(description = "协议类型")
+    @ExcelProperty("协议类型")
     private String agreementType;
 
     @Schema(description = "机构")
+    @ExcelProperty("机构id")
     private String deptId;
 
     @Schema(description = "机构名称")
+    @ExcelProperty("机构名称")
     private String deptName;
 
     @Schema(description = "产品id")
+    @ExcelProperty("产品id")
     private String productId;
 
     @Schema(description = "产品名称")
+    @ExcelProperty("产品名称")
     private String productName;
 
     @Schema(description = "险种")
+    @ExcelProperty("险种")
     private String riskCode;
 
-//    @Schema(description = "出单时间")
-//    private String payTime;
-//
     @Schema(description = "签单时间")
     @TableField(exist = false)
+    @ExcelProperty("签单时间")
     private String signingTime;
 
     @Schema(description = "保司ID")
+    @ExcelProperty("保司ID")
     private String companyId;
 
     @Schema(description = "保司名称")
     @TableField(exist = false)
+    @ExcelProperty("保司名称")
     private String companyName;
 
     @Schema(description = "协议Id")
+    @ExcelProperty("协议Id")
     private String agreementId;
 
     @Schema(description = "协议名称")
+    @ExcelProperty("协议名称")
     private String agreementName;
 
     @Schema(description = "被保人")
+    @ExcelProperty("被保人")
     private String insuredPerson;
 
     @Schema(description = "车牌号")
+    @ExcelProperty("车牌号")
     private String licenseNo;
 
     @Schema(description = "车船税")
+    @ExcelProperty("车船税")
     private String taxPremium;
 
     @Schema(description = "交强保单号")
+    @ExcelProperty("交强保单号")
     private String jqPolicyNo;
 
     @Schema(description = "商业保单号")
+    @ExcelProperty("商业保单号")
     private String syPolicyNo;
 
     @Schema(description = "驾意保单号")
+    @ExcelProperty("驾意保单号")
     private String jyPolicyNo;
 
     @Schema(description = "交强保费")
+    @ExcelProperty("交强保费")
     private String jqPremium;
 
     @Schema(description = "商业保费")
+    @ExcelProperty("商业保费")
     private String syPremium;
 
     @Schema(description = "驾意保费")
+    @ExcelProperty("驾意保费")
     private String jyPremium;
 
     @Schema(description = "交强手续费")
+    @ExcelProperty("交强手续费")
     private String jqSuperviseCostsPremiums;
 
     @Schema(description = "交强手续费比例")
+    @ExcelProperty("交强手续费比例")
     private String jqSuperviseCostsProportion;
 
     @Schema(description = "商业手续费")
+    @ExcelProperty("商业手续费")
     private String sySuperviseCostsPremiums;
 
     @Schema(description = "商业手续费比例")
+    @ExcelProperty("商业手续费比例")
     private String sySuperviseCostsProportion;
 
     @Schema(description = "驾意手续费")
+    @ExcelProperty("驾意手续费")
     private String jySuperviseCostsPremiums;
 
     @Schema(description = "驾意手续费比例")
+    @ExcelProperty("驾意手续费比例")
     private String jySuperviseCostsProportion;
 
     @TableField(exist = false)
     @Schema(description = "应收手续费")
+    @ExcelProperty("应收手续费")
     private String superviseCostsPremiums;
 
     @TableField(exist = false)
     @Schema(description = "应收跟单费")
+    @ExcelProperty("应收跟单费")
     private String otherCostsPremiums;
 
     @Schema(description = "交强跟单费比例")
+    @ExcelProperty("交强跟单费比例")
     private String jqOtherCostsProportion;
 
     @Schema(description = "交强跟单费")
+    @ExcelProperty("交强跟单费")
     private String jqOtherCostsPremiums;
 
     @Schema(description = "商业跟单费比例")
+    @ExcelProperty("商业跟单费比例")
     private String syOtherCostsProportion;
 
     @Schema(description = "商业跟单费")
+    @ExcelProperty("商业跟单费")
     private String syOtherCostsPremiums;
 
     @Schema(description = "驾意跟单费比例")
+    @ExcelProperty("驾意跟单费比例")
     private String jyOtherCostsProportion;
 
     @Schema(description = "驾意跟单费")
+    @ExcelProperty("驾意跟单费")
     private String jyOtherCostsPremiums;
 
     @Schema(description = "交强应收费用")
+    @ExcelProperty("交强应收费用")
     private String jqReceivablePremium;
 
     @Schema(description = "商业应收费用")
+    @ExcelProperty("商业应收费用")
     private String syReceivablePremium;
 
     @Schema(description = "驾意应收费用")
+    @ExcelProperty("驾意应收费用")
     private String jyReceivablePremium;
 
     @TableField(exist = false)
     @Schema(description = "总应收金额")
+    @ExcelProperty("总应收金额")
     private String receivableAmount;
 
     @Schema(description = "手续费是否已经结算")
+    @ExcelProperty("手续费是否已经结算")
     private String superviseSettlement;
 
     @Schema(description = "跟单费是否已经结算")
+    @ExcelProperty("跟单费是否已经结算")
     private String otherSettlement;
 
     @Schema(description = "驾意险手续费是否已经结算")
+    @ExcelProperty("驾意险手续费是否已经结算")
     private String jySuperviseSettlement;
 
     @Schema(description = "驾意跟单位是否已经结算")
+    @ExcelProperty("驾意跟单位是否已经结算")
     private String jyOtherSettlement;
 
     @Schema(description = "维护人工号")
+    @ExcelProperty("维护人工号")
     private String leaderId;
 
     @Schema(description = "维护人名称")
+    @ExcelProperty("维护人名称")
     private String leaderName;
 
     @Schema(description = "对接人")
+    @ExcelProperty("对接人")
     private String contactPerson;
 
     @Schema(description = "系统code")
+    @ExcelProperty("系统code")
     private String systemCode;
 
     @Schema(description = "业务来源")
+    @ExcelProperty("业务来源")
     private String businessSource;
 
     @Schema(description = "结算状态(编码)")
+    @ExcelProperty("结算状态(编码)")
     private String settlementStatus;
 
     @Schema(description = "结算状态(转义后)")
+    @ExcelProperty("结算状态(转义后)")
     private String settlementStatusName;
 
     @Schema(description = "增加类型")
+    @ExcelProperty("增加类型")
     private String addType;
 
     @TableField(exist = false)
     @Schema(description = "交强起保日期")
+    @ExcelProperty("交强起保日期")
     private String jqStartDate;
 
     @TableField(exist = false)
     @Schema(description = "商业起保日期")
+    @ExcelProperty("商业起保日期")
     private String syStartDate;
 
     @TableField(exist = false)
     @Schema(description = "订单类型")
+    @ExcelProperty("订单类型")
     private String orderType;
-
-
-}
+}