package com.chinaweal.aiccs.aiccs.punishment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lee
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("punishmeasures")
public class Punishmeasures extends Model<Punishmeasures> {

    private static final long serialVersionUID=1L;

    /**
     * 惩戒措施id
     */
    @TableId(value = "measureId",type = IdType.ASSIGN_UUID)
    private String measureId;

    /**
     * 惩戒措施
     */
    private String measure;

    /**
     * 惩戒对象
     */
    @TableField("punishObject")
    private String punishObject;

    /**
     * 失信行为
     */
    @TableField("illegalAct")
    private String illegalAct;

    /**
     * 备忘录依据
     */
    @TableField("memorandumBase")
    private String memorandumBase;

    /**
     * 对象认定部门
     */
    private String department;

    @TableField("departmentCode")
    private String departmentCode;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建用户id
     */
    @JsonIgnore
    @TableField("createUserId")
    private String createUserId;

    /**
     * 创建时间
     */
    @JsonIgnore
    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 最后更新时间
     */
    @JsonIgnore
    @TableField("laupTime")
    private LocalDateTime laupTime;

    /**
     * 是否删除 ‘0’未删‘1’已删
     */
    @TableField("dState")
    private String dState;

    /**
     * 更新用户id
     */
    @TableField("updateUserId")
    private String updateUserId;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    @JsonIgnore
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.measureId;
    }

}
