| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | 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; |
| | |
| | | @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){ |
| | | this.createDate = new Date(); |
| | | this.creator = sysUserId; |
| | | this.isdeleted = Constants.ZERO; |
| | | this.applyId = applyChange.getApplyId(); |
| | | 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 = applyChange.getApplyCode(); |
| | | this.pdCode = applyChange.getCode(); |
| | | this.solutionName = applyChange.getSolutionsName(); |
| | | this.worktypeName = applyChangeDetail.getWorkTypeName(); |
| | | this.duName = applyChangeDetail.getDuName(); |
| | | // this.relationType = Constants.ONE; |
| | | this.relationId = applyDetailId; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主键", example = "1") |
| | |
| | | |
| | | @ApiModelProperty(value = "实际保险生效止期") |
| | | @ExcelColumn(name="实际保险生效止期") |
| | | private String endTime; |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "实际保险生效起期") |
| | | @ExcelColumn(name="实际保险生效起期") |
| | | private String startTime; |
| | | private Date startTime; |
| | | |
| | | @ApiModelProperty(value = "最近操作时间") |
| | | @ExcelColumn(name="最近操作时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date idcardNo; |
| | | @ApiModelProperty(value = "身份证号码") |
| | | @ExcelColumn(name="身份证号码") |
| | | private String idcardNo; |
| | | |
| | | |
| | | @ApiModelProperty(value = "方案主键", example = "1") |
| | | @ExcelColumn(name="方案主键") |
| | | private Integer solutionId; |
| | | |
| | | |
| | | @ApiModelProperty(value = "派遣单位编码(关联dispatch_unit)", example = "1") |
| | | @ExcelColumn(name="派遣单位编码(关联dispatch_unit)") |
| | |
| | | @ExcelColumn(name="派遣单位名称") |
| | | private String duName; |
| | | |
| | | @ApiModelProperty(value = "关联明细主键", example = "1") |
| | | @ExcelColumn(name="关联明细主键") |
| | | private Integer relationId; |
| | | |
| | | // @ApiModelProperty(value = "关联明细类型:0=投保申请;1=加减保/换厂", example = "1") |
| | | // @ExcelColumn(name="关联明细类型:0=投保申请;1=加减保/换厂") |
| | | // private Integer relationType; |
| | | |
| | | } |