package com.ruoyi.ibs.task.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@TableName("alter_assign_history")
public class AlterAssignHistory implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("预警类型")
    private String alterType;

    @ApiModelProperty("客户号")
    private String custId;

    @ApiModelProperty("客户姓名")
    private String custName;

    @ApiModelProperty("所属支行/当前操作机构ID")
    private Long deptId;

    @ApiModelProperty("最近一次转发目标类型：dept/user")
    private String lastAssignTargetType;

    @ApiModelProperty("最近一次转发目标部门ID")
    private Long lastAssignTargetDeptId;

    @ApiModelProperty("最近一次转发目标用户账号")
    private String lastAssignTargetUser;

    @ApiModelProperty("最近一次转发目标名称")
    private String lastAssignTargetName;

    @ApiModelProperty("最近一次转发操作人账号")
    private String lastAssignByUser;

    @ApiModelProperty("最近一次转发操作人角色")
    private String lastAssignByRole;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
