package com.tofly.feesapi.cbgl.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

@Data
@ApiModel("APP抄表录入查询参数DTO")
public class AppCblrUpload {

    @ApiModelProperty(value = "用户编号", position = 1, required = true)
    private String yhbh;

    @ApiModelProperty(value = "抄表卡号", position = 2, required = true)
    private String cbkh;

    @ApiModelProperty(value = "上次读数", position = 3, required = true)
    private BigDecimal scds;

    @ApiModelProperty(value = "本次读数", position = 4, required = true)
    private BigDecimal bcds;

    @ApiModelProperty(value = "本次加减量", position = 5, required = true)
    private BigDecimal jjl;

    @ApiModelProperty(value = "实际水量", position = 6, required = true)
    private BigDecimal sjsl;

    @ApiModelProperty(value = "抄表备注,存储抄表描述内容", position = 7)
    private String bz;

    @ApiModelProperty(value = "旧表止读", position = 8)
    private BigDecimal jbzd;

    @ApiModelProperty(value = "新表起度", position = 9)
    private BigDecimal xbqd;

    @ApiModelProperty(value = "是否修改底数,1:修改、其他未修改", position = 10)
    private String xgds;

    @ApiModelProperty(value = "抄表来源(抄表数据来源（0手工抄表，1抄表机抄表，2移动APP抄表，3远传抄表，4批量导入抄表，5换表抄,  6 一体机抄表）)", position = 11, required = true)
    private String cbly;


    @ApiModelProperty(value = "财务日期", position = 12, required = true)
    private String cwrq;

    @ApiModelProperty(value = "抄表方式", position = 13, required = true)
    private String cbfs;

    @ApiModelProperty(value = "抄表类型", position = 14, required = true)
    private String cblx;

    @ApiModelProperty(value = "抄表人员编码", position = 15, required = true)
    private String cbrybm;

    @ApiModelProperty(value = "抄表人员姓名", position = 16, required = true)
    private String cbryxm;

    @ApiModelProperty(value = "水表状态", position = 17, required = true)
    private String sbzt;

    @ApiModelProperty(value = "阀门状态", position = 18, required = true)
    private String fmzt;

    @ApiModelProperty(value = "抄表日期", position = 19, required = true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date cbrq;
}
