MrShi
2024-04-02 22271e641e4505ba906c3770905b7e84e3ad8d85
server/service/src/main/java/com/doumee/dao/business/model/ApplyChange.java
@@ -2,6 +2,8 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.doumee.core.annotation.excel.ExcelColumn;
import com.doumee.core.utils.Constants;
import com.doumee.dao.business.vo.TaxesInvoicingVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
@@ -9,6 +11,7 @@
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
@@ -83,12 +86,18 @@
    @ExcelColumn(name="批单生效时间")
    private Date applyStartTime;
    @ApiModelProperty(value = "状态 0待签署 1已签章 2已上传批单 3退回申请 4平台同意 5平台驳回")
    @ExcelColumn(name="状态 0待签署 1已签章 2已上传批单 3退回申请 4平台同意 5平台驳回")
    @ApiModelProperty(value = "状态 0待签署 1已签章 2已上传批单 3退回申请 (待签署) 4退回申请 (已签章)  5平台同意(已退回) 6已关闭 ")
    @ExcelColumn(name="状态 0待签署 1已签章 2已上传批单 3退回申请 (待签署) 4退回申请 (已签章)  5平台同意(已退回) 6已关闭 ")
    private Integer status;
    @ApiModelProperty(value = "在线签章合同号")
    private String signApplyNo;
    @ApiModelProperty(value = "期望保险生效起期")
    @ExcelColumn(name="期望保险生效起期")
    //入参
//     @DateTimeFormat(pattern = "yyyy-MM-dd")
//    //出参
//    @JsonFormat(pattern="yyyy-MM-dd")
    private Date validTime;
    @ApiModelProperty(value = "批单号")
@@ -143,6 +152,19 @@
    @ApiModelProperty(value = "保险方案主键")
    @TableField(exist = false)
    private Integer solutionsId;
    @ApiModelProperty(value = "保险方案主键(基表)")
    @TableField(exist = false)
    private Integer baseSolutionsId;
    @ApiModelProperty(value = "申请单附件")
    @TableField(exist = false)
    private Multifile applyFile;
    @ApiModelProperty(value = "申请单换厂附件")
    @TableField(exist = false)
    private Multifile applyUnitFile;
    @ApiModelProperty(value = "批单附件")
    @TableField(exist = false)
    private Multifile pidanFile;
    @ApiModelProperty(value = "加保明细数据")
    @TableField(exist = false)
@@ -161,9 +183,6 @@
    @TableField(exist = false)
    private Integer companyId;
    @ApiModelProperty(value = "批单附件对象")
    @TableField(exist = false)
    private Multifile pidanFile;
    @ApiModelProperty(value = "处理企业申请状态  0同意 1驳回")
    @TableField(exist = false)
    private int dealBackApply;
@@ -174,6 +193,22 @@
    @ApiModelProperty(value = "保险生效止期")
    @TableField(exist = false)
    private Date endTime;
    @ApiModelProperty(value = "方案邮件")
    @TableField(exist = false)
    private String solutionEmail;
    @ApiModelProperty(value = "日志记录")
    @TableField(exist = false)
    private List<ApplyLog> applyLogList;
    public TaxesInvoicingVO toTaxesInvoicingVO(){
        TaxesInvoicingVO taxesInvoicingVO = new TaxesInvoicingVO();
        taxesInvoicingVO.setId(this.getId());
        taxesInvoicingVO.setSolutionsName(this.getSolutionsName());
        taxesInvoicingVO.setValidCode(this.getValidCode());
        taxesInvoicingVO.setAddNum(this.getAddNum());
        taxesInvoicingVO.setDelNum(this.getDelNum());
        taxesInvoicingVO.setAmount(this.getFee());
        taxesInvoicingVO.setType(Constants.ONE);
        return taxesInvoicingVO;
    }
}