package com.tofly.feesapi.sfgl.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.tofly.feesapi.common.MoneySerializer;
import com.tofly.feesapi.file.entity.File;
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.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 应收明细：欠费明细
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "YY_QFMX_GD", resultMap = "yyQdmxGdMap")
@KeySequence("YY_QFMX_GD")
@ApiModel
public class YyQfmxGd extends Model<YyQfmxGd> {
    private static final long serialVersionUID = 1L;

    /**
     * 欠费ID:用于部分收费时拆分欠费，newid()
     */
    @TableId(value = "GDLSBH", type = IdType.INPUT)
    @ApiModelProperty(value = "工单流水编号")
    private String gdlsbh;

    @ApiModelProperty(value = "工单备注")
    private String gdbz;

    @ApiModelProperty(value = "工单减免原因")
    private String gdyx;

    @ApiModelProperty(value = "是否批量变更（0否1是）")
    private String isplbg = "0";

    @ApiModelProperty(value = "减免类型（1费用减免，2冲减水量）")
    private String jyType;

    @TableField(exist = false)
    @ApiModelProperty(value = "欠费ID集合")
    List<String> qfids = new ArrayList<>();

    @TableField(exist = false)
    @ApiModelProperty(value = "附件集合")
    List<File> fileList = new ArrayList<>();
}
