package com.tofly.feesapi.sfds.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

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

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

    /**
     * $column.comments
     */
    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "账务日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date yhzwrq;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "付费方式")
    private String fffs;
    /**
     * 笔数
     */
    @ApiModelProperty(value = "笔数")
    private BigDecimal xzbs;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "销账金额")
    private BigDecimal xzje;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "缴费笔数")
    private BigDecimal jfbs;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "缴费金额")
    private BigDecimal jfje;
    /**
     * 0 对账金额不等，1 对账完成，
     */
    @ApiModelProperty(value = "0 对账金额不等，1 对账完成，")
    private String dzbz;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "银行代码")
    private String yhdm;
    /**
     * $column.comments
     */
    @ApiModelProperty(value = "对账日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dzrq;

}
