package com.chinaweal.aiccs.aiccs.business.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 lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 常用意见表
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("trcommopinion")
public class TRCommOpinion extends Model<TRCommOpinion> {

    private static final long serialVersionUID=1L;

    /**
     * 常用意见主键
     */
    @TableId(value = "COMMOPINIONID", type = IdType.ASSIGN_UUID)
    private String commopinionid;

    /**
     * 意见类型
     */
    @TableField("OPINIONTYPE")
    private String opiniontype;

    /**
     * 用户ID
     */
    @TableField("USERID")
    private String userid;

    /**
     * 意见信息
     */
    @TableField("OPINIONINFO")
    private String opinioninfo;

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

    /**
     * 地区代码
     */
    @TableField("AREA_CODE")
    private String areaCode;

    /**
     * 业务类型
     */
    @TableField("bizType")
    private String bizType;


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

}
