/* * 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)); } }