package com.tofly.feesapi.mxcx.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tofly.feesapi.common.enums.BglxEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;
import java.util.stream.Collectors;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "YY_BG_LOG", resultMap = "yyBgLogMap")
@KeySequence("YY_BG_LOG")
@ApiModel
public class YyBgLog extends Model<YyBgLog> {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 变更人员id
     */
    @ApiModelProperty(value = "变更人员id")
    private Long bgryid;
    /**
     * 变更人员姓名
     */
    @ApiModelProperty(value = "变更人员姓名")
    private String bgryxm;
    /**
     * 变更日期
     */
    @ApiModelProperty(value = "变更日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bgdate;
    /**
     * 变更类型
     */
    @ApiModelProperty(value = "变更类型:1为欠费明细变更，2为费用调整")
    private String bglx;
    /**
     * 变更类型ID
     */
    @ApiModelProperty(value = "变更类型ID")
    private String bglxid;
    /**
     * 变更前json
     */
    @ApiModelProperty(value = "变更前json")
    private String bgqjson;
    /**
     * 变更后json
     */
    @ApiModelProperty(value = "变更后json")
    private String bghjson;
    /**
     * 变更内容
     */
    @ApiModelProperty(value = "变更内容")
    private String bgnr;

    @ApiModelProperty(value = "工单编号")
    private String gdbh;

    @ApiModelProperty(value = "工单状态")
    private String gdzt;

}
