Newer
Older
smartwell_demos / src / main / java / com / casic / model / User.java
chaizhuang on 18 Sep 2023 2 KB 定时器,自动分区表创建
package com.casic.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

@Data
@TableName("sys_user")
public class User {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.ASSIGN_ID
    )
    private Long id;

    private String avatar;

    //userCode
    private String account;
    //加密111,111
    private String password;
    //
    private String salt;
    private String name;
    @JSONField(
            format = "yyyy-MM-dd"
    )
    private Date birthday;
    private Integer sex;
    private String email;
    private String phone;
    @TableField("role_id")
    private String roleId;
    @TableField("dept_id")
    //部门id
    private Long deptId;
    private String status;
    private Integer version;
    @TableField("LOGIN_IP")
    private String loginIp;
    @TableField("LOGIN_MAC")
    private String loginMac;
    @TableField("POSITION_LNG")
    private BigDecimal positionLng;
    @TableField("POSITION_LAT")
    private BigDecimal positionLat;
    @TableField("attr1")
    private String attr1;
    @TableField("LAST_TIME")
    private Timestamp lastTime;
    @TableField("sync_id")
    private String syncId;
    @TableField("sync_name")
    private String syncName;
    @TableField("sync_pwd")
    private String syncPwd;
    @TableField("sync_deptid")
    private String syncDeptid;
    @TableField("is_sync")
    private Integer isSync;
    @TableField("del_flag")
    private String delFlag;
    @TableField(
            exist = false
    )
    private String deptname;

    @TableField(
            exist = false
    )
    private String userType;

    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{id=" + this.id + ", avatar=" + this.avatar + ", account=" + this.account + ", password=" + this.password + ", salt=" + this.salt + ", name=" + this.name + ", birthday=" + this.birthday + ", sex=" + this.sex + ", email=" + this.email + ", phone=" + this.phone + ", roleId=" + this.roleId + ", deptId=" + this.deptId + ", status=" + this.status + ", version=" + this.version + "}";
    }

}