package com.chinaweal.aiccs.aiccs.abnormal.entity;

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 com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 主体的属地机关调整日志表
 *
 * @author zhouxy
 * @since 2025-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xr_supervise_dept_log")
@ApiModel(value = "XrSuperviseDeptLog对象", description = "主体的属地机关调整日志表")
public class XrSuperviseDeptLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @ApiModelProperty(value = "表id")
    @TableId(value = "supervise_log_id", type = IdType.ASSIGN_UUID)
    private String superviseLogId;

    /**
     * 主体身份代码
     */
    @ApiModelProperty(value = "主体身份代码")
    @TableField("prip_id")
    private String pripId;

    /**
     * 统一社会信用代码
     */
    @ApiModelProperty(value = "统一社会信用代码")
    @TableField("unisc_id")
    private String uniscId;

    /**
     * 名称
     */
    @ApiModelProperty(value = "主体名称")
    @TableField("ent_name")
    private String entName;

    /**
     * 调整前的属地机关编号
     */
    @ApiModelProperty(value = "调整前的属地机关编号")
    @TableField("dept_before")
    private String deptBefore;

    /**
     * 调整后的属地机关编号
     */
    @ApiModelProperty(value = "调整后的属地机关编号")
    @TableField("dept_after")
    private String deptAfter;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人")
    @TableField("operater")
    private String operater;

    /**
     * 操作人id
     */
    @ApiModelProperty(value = "操作人id")
    @TableField("oper_id")
    private String operId;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    @TableField("oper_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime operTime;


}
