employeeManager-master/src/main/java/com/suny/entity/Attend.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.suny.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 孙建荣
 * 2016/12/11 21:00
 */
@Entity
@Table(name = "attend")
public class Attend implements Serializable{
    private static final long serialVersionUID = 48L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "attend_id")
    private Integer id;    //标示对象

    //考勤日期
    @Column(name = "duty_day",nullable = false,length =50 )
    private Date dutyDay;

    //签到时间
    @Column(name = "punch_time")
    private java.util.Date punchTime;

    //是否在规定时间签到 0为没有 1为签到
    @Column(name = "is_come")
    private boolean isCome;

    //本次考勤的类型
    @ManyToOne(targetEntity = AttendType.class)
    @JoinColumn(name = "type_id",nullable = false)
    private AttendType attendType;


    //本次考勤的员工
    @ManyToOne(targetEntity = Employee.class)
    @JoinColumn(name = "emp_id")
    @JsonIgnore
    private Employee employee;

    public Attend() {
    }

    public Attend(Date dutyDay, Date punchTime, boolean isCome, AttendType attendType, Employee employee) {
        this.dutyDay = dutyDay;
        this.punchTime = punchTime;
        this.isCome = isCome;
        this.attendType = attendType;
        this.employee = employee;
    }

    public Integer getId() {
        return id;
    }
后面还有 65 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。