package com.tofly.feesapi.bjgl.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
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 = "YH_HB_LOG", resultMap = "ykHbLogMap")
@KeySequence("YH_HB_LOG")
@ApiModel
public class YkHbLog extends Model<YkHbLog> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "记录ID")
    private String id;

    @ApiModelProperty(value = "用户号")
    private String yhbh;

    @ApiModelProperty(value = "原客户编号")
    private String ykhbh;

    @ApiModelProperty(value = "用户姓名")
    private String yhxm;

    @ApiModelProperty(value = "用户地址")
    private String yhdz;

    @ApiModelProperty(value = "联系电话")
    private String lxdh;

    @ApiModelProperty(value = "抄表卡号")
    private BigDecimal cbkh;

    @ApiModelProperty(value = "抄表卡ID")
    private String cbkid;

    @ApiModelProperty(value = "原_水表厂家")
    private String oldSbcj;

    @ApiModelProperty(value = "原_水表出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date oldSbccrq;

    @ApiModelProperty(value = "原_水表口径")
    private String oldSbkj;

    @ApiModelProperty(value = "原水表型号")
    private String oldSbxh;

    @ApiModelProperty(value = "原_水表编号")
    private String oldSbbh;

    @ApiModelProperty(value = "原_ICKID")
    private String oldIckid;

    @ApiModelProperty(value = "原_水表读数")
    private BigDecimal oldSbds;

    @ApiModelProperty(value = "原_IC表剩余水量")
    private BigDecimal oldIcbsysl;

    @ApiModelProperty(value = "原_机械表用水量")
    private BigDecimal oldJxbysl;

    @ApiModelProperty(value = "新_水表厂家")
    private String newSbcj;

    @ApiModelProperty(value = "新_水表出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date newSbccrq;

    @ApiModelProperty(value = "新_水表口径")
    private String newSbkj;

    @ApiModelProperty(value = "新_水表型号")
    private String newSbxh;

    @ApiModelProperty(value = "新_水表编号")
    private String newSbbh;

    @ApiModelProperty(value = "新_ICKID")
    private String newIckid;

    @ApiModelProperty(value = "新_水表读数")
    private BigDecimal newSbds;

    @ApiModelProperty(value = "审批人员")
    private String spry;

    @ApiModelProperty(value = "换表人员")
    private String hbry;

    @ApiModelProperty(value = "换表日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date hbrq;

    @ApiModelProperty(value = "录入人员")
    private String lrry;

    @ApiModelProperty(value = "录入人员")
    private String lrryxm;

    @ApiModelProperty(value = "录入日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lrrq;

    @ApiModelProperty(value = "备注")
    private String bz;

    @ApiModelProperty(value = "原水表起度")
    private BigDecimal oldSbqs;

    @ApiModelProperty(value = "新水表起度")
    private BigDecimal newSbqs;

    @ApiModelProperty(value = "原水表类别")
    private String oldSblb;

    @ApiModelProperty(value = "新水表类别")
    private String newSblb;

    @ApiModelProperty(value = "原水表量程")
    private String oldSblc;

    @ApiModelProperty(value = "新水表量程")
    private String newSblc;

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

    @ApiModelProperty(value = "工单状态：1处理中、2已完成、3已作废")
    private String gdzt;
}
