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;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.Data;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import java.util.Date;
|
import java.math.BigDecimal;
|
|
/**
|
* 员工投保明细记录
|
* @author 江蹄蹄
|
* @date 2024/01/22 11:55
|
*/
|
@Data
|
@ApiModel("员工投保明细记录")
|
@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();
|
}
|
|
|
//加减保申请数据
|
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;
|
}
|
|
|
|
|
@TableId(type = IdType.AUTO)
|
@ApiModelProperty(value = "主键", example = "1")
|
private Integer id;
|
|
@ApiModelProperty(value = "创建人编码", example = "1")
|
private Integer creator;
|
|
@ApiModelProperty(value = "创建时间")
|
private Date createDate;
|
|
@ApiModelProperty(value = "更新人编码", example = "1")
|
private Integer editor;
|
|
@ApiModelProperty(value = "更新时间")
|
private Date editDate;
|
|
@ApiModelProperty(value = "是否删除0否 1是", example = "1")
|
private Integer isdeleted;
|
|
@ApiModelProperty(value = "备注")
|
private String remark;
|
|
@ApiModelProperty(value = "排序码", example = "1")
|
private Integer sortnum;
|
|
@ApiModelProperty(value = "投保申请编码(关联insurance_apply", example = "1")
|
private Integer applyId;
|
|
@ApiModelProperty(value = "人员编码(关联memeber)", example = "1")
|
private Integer memberId;
|
|
@ApiModelProperty(value = "实际保险生效止期")
|
@ExcelColumn(name="保险生效止期",index = 7,width = 12,dateFormat="yyyy-MM-dd HH:mm:ss")
|
private Date endTime;
|
|
@ApiModelProperty(value = "实际保险生效起期")
|
@ExcelColumn(name="保险生效起期",index = 6,width = 12,dateFormat="yyyy-MM-dd HH:mm:ss")
|
private Date startTime;
|
|
@ApiModelProperty(value = "身份证号码")
|
private String idcardNo;
|
|
|
@ApiModelProperty(value = "方案主键", example = "1")
|
private Integer solutionId;
|
|
|
@ApiModelProperty(value = "派遣单位编码(关联dispatch_unit)", example = "1")
|
private Integer duId;
|
|
@ApiModelProperty(value = "工种编码(关联worktype)", example = "1")
|
private Integer worktypeId;
|
|
@ApiModelProperty(value = "当前已产生费用", example = "1")
|
private BigDecimal currentFee;
|
|
@ApiModelProperty(value = "费用", example = "1")
|
private BigDecimal fee;
|
|
@ApiModelProperty(value = "性别 0男 1女", example = "1")
|
// @ExcelColumn(name="性别",valueMapping = "0=男;1=女;")
|
private Integer sex;
|
|
@ApiModelProperty(value = "保单号")
|
@ExcelColumn(name="保单号",index = 2,width = 5)
|
private String bdCode;
|
|
@ApiModelProperty(value = "批单号")
|
@ExcelColumn(name="批单号",index = 3,width = 5)
|
private String pdCode;
|
|
@ApiModelProperty(value = "保险方案名称")
|
@ExcelColumn(name="保险方案",index = 1,width = 6)
|
private String solutionName;
|
|
@ApiModelProperty(value = "批单申请编码", example = "1")
|
private Integer applyChangeId;
|
|
@ApiModelProperty(value = "工种名称")
|
@ExcelColumn(name="工种名称",index = 5,width = 6)
|
private String worktypeName;
|
|
@ApiModelProperty(value = "派遣单位名称")
|
@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")
|
@TableField(exist = false)
|
private Integer status;
|
|
|
// @ApiModelProperty(value = "关联明细类型:0=投保申请;1=加减保/换厂", example = "1")
|
// @ExcelColumn(name="关联明细类型:0=投保申请;1=加减保/换厂")
|
// private Integer relationType;
|
|
}
|