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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tofly.feesapi.common.constant.YhztEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;

@Data
@ApiModel("水表档案查询参数DTO")
public class YhCbkxxFilter {

    @ApiModelProperty(value = "关键字(用户编号、用户姓名、用户地址、联系电话)")
    private String searchText;

    @ApiModelProperty(value = "所属公司编码")
    private String ssgs;

    @ApiModelProperty(value = "所属抄表片区编码")
    private String sscbpq;

    @ApiModelProperty("所属抄表本(册)编码")
    private String sscbb;

    @ApiModelProperty("用户状态")
    private YhztEnum yhzt;

    @ApiModelProperty("垃圾费标志")
    private String ljfbz;

    @ApiModelProperty(value = "建档开始日期(yyyy-MM-dd)", example = "2023-11-11")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate jdrqStart;

    @ApiModelProperty(value = "建档截止日期(yyyy-MM-dd)", example = "2023-12-12")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate jdrqEnd;

    @ApiModelProperty(value = "操作开始时间: yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ksrq;

    @ApiModelProperty(value = "操作结束时间: yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date jsrq;

    @ApiModelProperty("抄表人员")
    private String cby;

    @ApiModelProperty("区域负责人")
    private String qyfzr;

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

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

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

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

    @ApiModelProperty(value = "是否分配抄表本(册),已分配:true,未分配:false")
    private Boolean sffpcbb;

    @ApiModelProperty(value = "抄表序号")
    private Integer cbxh;

    @ApiModelProperty(value = "是否分配抄表序号,已分配:true,未分配:false")
    private Boolean sffpcbxh;

    @ApiModelProperty(value = "是否是普表：0为否，1为是")
    private String sfspb;

    @ApiModelProperty(value = "水价编码")
    private String sjbm;
}
