XklAdminOpsEntity.java 1.59 KB
package com.xkl.domain;

import lombok.Data;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author zhaoyue
 */
@Data
@Entity
@Table(name = "xkl_admin_ops")
public class XklAdminOpsEntity {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    @Basic
    @Column(name = "admin_id")
    private long adminId;
    @Basic
    @Column(name = "member_id")
    private long memberId;
    @Basic
    @Column(name = "time")
    private Timestamp time;// 操作时间
    @Basic
    @Column(name = "operation")
    private int operation;// 操作。0 新用户注册;1 体检; 2 老用户引导; 3 问诊;

    public XklAdminOpsEntity(long adminId, long memberId, int operation) {
        this.adminId = adminId;
        this.memberId = memberId;
        this.operation = operation;
        this.time = new Timestamp(System.currentTimeMillis());
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getAdminId() {
        return adminId;
    }

    public void setAdminId(long adminId) {
        this.adminId = adminId;
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public int getOperation() {
        return operation;
    }

    public void setOperation(int operation) {
        this.operation = operation;
    }
}