package com.tofly.feesapi.bjgl.entity;

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 = "YK_YHBG_HB", resultMap = "ykYhbgHbMap")
@KeySequence("YK_YHBG_HB")
@ApiModel
public class YkYhbgHb extends Model<YkYhbgHb> {
    private static final long serialVersionUID = 1L;

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

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

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

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

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

    @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 ySbcj;

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

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

    @ApiModelProperty(value = "原_水表型")
    private String ySbxh;

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

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

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

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

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

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

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

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

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

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

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

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

    @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 = "录入日期")
    @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 ySbqs;

    @ApiModelProperty(value = "新_水表起数")
    private BigDecimal xSbqs;
}
