k94314517
2025-07-04 50fb58286ed3b718c39a97e0987ee7561a295651
server/service/src/main/java/com/doumee/dao/business/model/MemberInsurance.java
@@ -1,5 +1,6 @@
package com.doumee.dao.business.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.doumee.core.annotation.excel.ExcelColumn;
import com.doumee.core.model.LoginUserInfo;
import com.doumee.core.utils.Constants;
@@ -47,15 +48,17 @@
        this.duName = applyDetail.getDuName();
//        this.relationType = Constants.ZERO;
        this.relationId = applyDetail.getId();
        this.isValid = Constants.ZERO;
    }
    //加减保申请数据
    public MemberInsurance(ApplyChagneDetail applyChangeDetail, ApplyChange applyChange, Integer sysUserId,Integer applyDetailId){
    public MemberInsurance(ApplyChagneDetail applyChangeDetail, ApplyChange applyChange, Integer sysUserId,Integer applyDetailId,Integer solutionId){
        this.createDate = new Date();
        this.creator = sysUserId;
        this.isdeleted = Constants.ZERO;
        this.applyId = applyChange.getApplyId();
        this.applyChangeId = applyChange.getId();
        this.memberId = applyChangeDetail.getMemberId();
        this.endTime = applyChangeDetail.getEndTime();
        this.startTime = applyChangeDetail.getStartTime();
@@ -64,13 +67,15 @@
        this.worktypeId = applyChangeDetail.getWorktypeId();
        this.fee = applyChangeDetail.getFee();
        this.sex = applyChangeDetail.getSex();
        this.bdCode = applyChange.getApplyCode();
        this.pdCode = applyChange.getCode();
        this.solutionName = applyChange.getSolutionsName();
        this.bdCode = applyChangeDetail.getApplyCode();
        this.pdCode = applyChange.getValidCode();
        this.solutionName = applyChangeDetail.getSolutionsName();
        this.worktypeName = applyChangeDetail.getWorkTypeName();
        this.duName = applyChangeDetail.getDuName();
//        this.relationType = Constants.ONE;
        this.relationId = applyDetailId;
        this.solutionId=solutionId;
        this.isValid = Constants.ZERO;
    }
@@ -108,11 +113,11 @@
    private Integer memberId;
    @ApiModelProperty(value = "实际保险生效止期")
    @ExcelColumn(name="保险生效止期",index = 7)
    @ExcelColumn(name="保险生效止期",index = 7,width = 12,dateFormat="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(value = "实际保险生效起期")
    @ExcelColumn(name="保险生效起期",index = 6)
    @ExcelColumn(name="保险生效起期",index = 6,width = 12,dateFormat="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "身份证号码")
@@ -129,7 +134,7 @@
    @ApiModelProperty(value = "工种编码(关联worktype)", example = "1")
    private Integer worktypeId;
    @ApiModelProperty(value = "当前产生费用", example = "1")
    @ApiModelProperty(value = "当前已产生费用", example = "1")
    private BigDecimal currentFee;
    @ApiModelProperty(value = "费用", example = "1")
@@ -140,31 +145,53 @@
    private Integer sex;
    @ApiModelProperty(value = "保单号")
    @ExcelColumn(name="保单号",index = 2)
    @ExcelColumn(name="保单号",index = 2,width = 5)
    private String bdCode;
    @ApiModelProperty(value = "批单号")
    @ExcelColumn(name="批单号",index = 3)
    @ExcelColumn(name="批单号",index = 3,width = 5)
    private String pdCode;
    @ApiModelProperty(value = "保险方案名称")
    @ExcelColumn(name="保险方案",index = 1)
    @ExcelColumn(name="保险方案",index = 1,width = 6)
    private String solutionName;
    @ApiModelProperty(value = "批单申请编码", example = "1")
    private Integer applyChangeId;
    @ApiModelProperty(value = "工种名称")
    @ExcelColumn(name="工种名称",index = 5)
    @ExcelColumn(name="工种名称",index = 5,width = 6)
    private String worktypeName;
    @ApiModelProperty(value = "派遣单位名称")
    @ExcelColumn(name="派遣单位",index = 4)
    @ExcelColumn(name="派遣单位",index = 4,width = 6)
    private String duName;
    @ApiModelProperty(value = "序号", example = "1")
    @ExcelColumn(name="序号",index = 0,width = 3)
    @TableField(exist = false)
    private Integer sn;
    @ApiModelProperty(value = "关联明细主键", example = "1")
    private Integer relationId;
    @ApiModelProperty(value = "关联类型:0=投保申请;1=加减保/换厂", example = "1")
    private Integer relationType;
    @ApiModelProperty(value = "员工名称", example = "1")
    @TableField(exist = false)
    private String memberName;
    @ApiModelProperty(value = "是否有效:0=有效;1=无效", example = "1")
    @ExcelColumn(name="是否有效",index = 8,width = 6,valueMapping = "0=有效;1=已失效")
    private Integer isValid;
    @ApiModelProperty(value = "筛选状态:0=未开始;1=已开始(包括已过期)", example = "1")
    @TableField(exist = false)
    private Integer status;
//    @ApiModelProperty(value = "关联明细类型:0=投保申请;1=加减保/换厂", example = "1")
//    @ExcelColumn(name="关联明细类型:0=投保申请;1=加减保/换厂")
//    private Integer relationType;