|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModel; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.IdType; | 
|---|
|  |  |  | 
|---|
|  |  |  | @TableName("`member_insurance`") | 
|---|
|  |  |  | public class MemberInsurance { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public MemberInsurance(){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //投保申请数据 | 
|---|
|  |  |  | public MemberInsurance(ApplyDetail applyDetail, Integer sysUserId){ | 
|---|
|  |  |  | this.createDate = new Date(); | 
|---|
|  |  |  | this.creator = sysUserId; | 
|---|
|  |  |  | this.isdeleted = Constants.ZERO; | 
|---|
|  |  |  | this.applyId = applyDetail.getApplyId(); | 
|---|
|  |  |  | this.memberId = applyDetail.getMemberId(); | 
|---|
|  |  |  | this.endTime = applyDetail.getEndTime(); | 
|---|
|  |  |  | this.startTime = applyDetail.getStartTime(); | 
|---|
|  |  |  | this.idcardNo = applyDetail.getIdcardNo(); | 
|---|
|  |  |  | this.solutionId = applyDetail.getSolutionId(); | 
|---|
|  |  |  | this.duId = applyDetail.getDuId(); | 
|---|
|  |  |  | this.worktypeId = applyDetail.getWorktypeId(); | 
|---|
|  |  |  | this.fee = applyDetail.getFee(); | 
|---|
|  |  |  | this.sex = applyDetail.getSex(); | 
|---|
|  |  |  | this.bdCode = applyDetail.getApplyCode(); | 
|---|
|  |  |  | this.solutionName = applyDetail.getSolutionName(); | 
|---|
|  |  |  | this.worktypeName = applyDetail.getWorkTypeName(); | 
|---|
|  |  |  | 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,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(); | 
|---|
|  |  |  | this.idcardNo = applyChangeDetail.getIdcardNo(); | 
|---|
|  |  |  | this.duId = applyChangeDetail.getDuId(); | 
|---|
|  |  |  | this.worktypeId = applyChangeDetail.getWorktypeId(); | 
|---|
|  |  |  | this.fee = applyChangeDetail.getFee(); | 
|---|
|  |  |  | this.sex = applyChangeDetail.getSex(); | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @TableId(type = IdType.AUTO) | 
|---|
|  |  |  | @ApiModelProperty(value = "主键", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="主键") | 
|---|
|  |  |  | private Integer id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "创建人编码", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="创建人编码") | 
|---|
|  |  |  | private Integer creator; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "创建时间") | 
|---|
|  |  |  | @ExcelColumn(name="创建时间") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | private Date createDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "更新人编码", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="更新人编码") | 
|---|
|  |  |  | private Integer editor; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "更新时间") | 
|---|
|  |  |  | @ExcelColumn(name="更新时间") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | private Date editDate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "是否删除0否 1是", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="是否删除0否 1是") | 
|---|
|  |  |  | private Integer isdeleted; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "备注") | 
|---|
|  |  |  | @ExcelColumn(name="备注") | 
|---|
|  |  |  | private String remark; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "排序码", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="排序码") | 
|---|
|  |  |  | private Integer sortnum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "投保申请编码(关联insurance_apply", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="投保申请编码(关联insurance_apply") | 
|---|
|  |  |  | private Integer applyId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "人员编码(关联memeber)", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="人员编码(关联memeber)") | 
|---|
|  |  |  | private Integer memberId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "实际保险生效止期") | 
|---|
|  |  |  | @ExcelColumn(name="实际保险生效止期") | 
|---|
|  |  |  | private String endTime; | 
|---|
|  |  |  | @ExcelColumn(name="保险生效止期",index = 7,width = 12,dateFormat="yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date endTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "实际保险生效起期") | 
|---|
|  |  |  | @ExcelColumn(name="实际保险生效起期") | 
|---|
|  |  |  | private String startTime; | 
|---|
|  |  |  | @ExcelColumn(name="保险生效起期",index = 6,width = 12,dateFormat="yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date startTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "最近操作时间") | 
|---|
|  |  |  | @ExcelColumn(name="最近操作时间") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | private Date idcardNo; | 
|---|
|  |  |  | @ApiModelProperty(value = "身份证号码") | 
|---|
|  |  |  | private String idcardNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "方案主键", example = "1") | 
|---|
|  |  |  | private Integer solutionId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "派遣单位编码(关联dispatch_unit)", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="派遣单位编码(关联dispatch_unit)") | 
|---|
|  |  |  | private Integer duId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "工种编码(关联worktype)", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="工种编码(关联worktype)") | 
|---|
|  |  |  | private Integer worktypeId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "当前产生费用", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="当前产生费用") | 
|---|
|  |  |  | @ApiModelProperty(value = "当前已产生费用", example = "1") | 
|---|
|  |  |  | private BigDecimal currentFee; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "费用", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="费用") | 
|---|
|  |  |  | private BigDecimal fee; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "性别 0男 1女", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="性别 0男 1女") | 
|---|
|  |  |  | //    @ExcelColumn(name="性别",valueMapping = "0=男;1=女;") | 
|---|
|  |  |  | private Integer sex; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "保单号") | 
|---|
|  |  |  | @ExcelColumn(name="保单号") | 
|---|
|  |  |  | @ExcelColumn(name="保单号",index = 2,width = 5) | 
|---|
|  |  |  | private String bdCode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "批单号") | 
|---|
|  |  |  | @ExcelColumn(name="批单号") | 
|---|
|  |  |  | @ExcelColumn(name="批单号",index = 3,width = 5) | 
|---|
|  |  |  | private String pdCode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "保险方案名称") | 
|---|
|  |  |  | @ExcelColumn(name="保险方案名称") | 
|---|
|  |  |  | @ExcelColumn(name="保险方案",index = 1,width = 6) | 
|---|
|  |  |  | private String solutionName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "批单申请编码", example = "1") | 
|---|
|  |  |  | @ExcelColumn(name="批单申请编码") | 
|---|
|  |  |  | private Integer applyChangeId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "工种名称") | 
|---|
|  |  |  | @ExcelColumn(name="工种名称") | 
|---|
|  |  |  | @ExcelColumn(name="工种名称",index = 5,width = 6) | 
|---|
|  |  |  | private String worktypeName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "派遣单位名称") | 
|---|
|  |  |  | @ExcelColumn(name="派遣单位名称") | 
|---|
|  |  |  | @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; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|