jiangping
2024-03-05 2e1ac74716f62ca5712d0187cb7d7d25ee13efe5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
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;
 
}