weicd
2023-09-28 d0c51ac702c57f2cae84a8d879a5b605f2dab630
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
/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.attendance.domain;
 
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseEntity;
 
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;
 
/**
* @website https://eladmin.vip
* @description /
* @author wcd
* @date 2023-02-10
**/
@Entity
@Data
@Table(name="attendance_month")
public class AttendanceMonth extends BaseEntity implements Serializable {
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "`id`")
    @ApiModelProperty(value = "id")
    private Long id;
 
    @Column(name = "`attendance_date`")
    @ApiModelProperty(value = "统计年月")
    private Timestamp attendanceDate;
 
    @Column(name = "`user_id`")
    @ApiModelProperty(value = "用户id")
    private Long userId;
 
    @Column(name = "`company_id`")
    @ApiModelProperty(value = "公司id")
    private Long companyId;
 
    @Column(name = "`dept_id`")
    @ApiModelProperty(value = "部门id")
    private Long deptId;
 
    @Column(name = "`job_id`")
    @ApiModelProperty(value = "岗位id")
    private Long jobId;
 
    @Column(name = "`required_attendance_days`")
    @ApiModelProperty(value = "应出勤天数")
    private Long requiredAttendanceDays;
 
    @Column(name = "`required_attendance_time`")
    @ApiModelProperty(value = "应出勤时长")
    private Double requiredAttendanceTime;
 
    @Column(name = "`actual_attendance_days`")
    @ApiModelProperty(value = "实际出勤天数")
    private Long actualAttendanceDays;
 
    @Column(name = "`actual_attendance_time`")
    @ApiModelProperty(value = "实际出勤时长")
    private Double actualAttendanceTime;
 
    @Column(name = "`count_of_being_late`")
    @ApiModelProperty(value = "迟到次数")
    private Long countOfBeingLate;
 
    @Column(name = "`time_of_being_late`")
    @ApiModelProperty(value = "迟到时长")
    private Double timeOfBeingLate;
 
    @Column(name = "`count_of_being_early`")
    @ApiModelProperty(value = "早退次数")
    private Long countOfBeingEarly;
 
    @Column(name = "`time_of_being_early`")
    @ApiModelProperty(value = "早退时长")
    private Double timeOfBeingEarly;
 
    @Column(name = "`go_out_number`")
    @ApiModelProperty(value = "外出次数")
    private Long goOutNumber;
 
    @Column(name = "`go_out_time`")
    @ApiModelProperty(value = "外出时长")
    private Double goOutTime;
 
    @Column(name = "`buss_number`")
    @ApiModelProperty(value = "出差次数")
    private Long bussNumber;
 
    @Column(name = "`buss_time`")
    @ApiModelProperty(value = "出差时长")
    private Double bussTime;
 
    @Column(name = "`on_card_number`")
    @ApiModelProperty(value = "上班缺卡次数")
    private Long onCardNumber;
 
    @Column(name = "`off_card_number`")
    @ApiModelProperty(value = "下班缺卡次数")
    private Long offCardNumber;
 
    @Column(name = "`is_publicity`")
    @ApiModelProperty(value = "公示状态")
    private String isPublicity;
 
    @Column(name = "`is_admit`")
    @ApiModelProperty(value = "承认状态")
    private String isAdmit;
 
    @Column(name = "`remarks`")
    @ApiModelProperty(value = "备注")
    private String remarks;
 
    public void copy(AttendanceMonth source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}