package com.yuchen.saas.park.api.dto.property;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class PropertyBusinessCreateBillDto {

    /**
     * 经营性收费id
     */
    private Long businessChargesId;
    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空")
    private Long customerId;
    /**
     * 收费标准id
     */
    @NotNull(message = "收费标准id不能为空")
    private Long feeId;
    /**
     * 应收金额
     */
    @NotNull(message = "列表应收金额不能为空")
    private Long receivableAmtFen;
    /**
     * 开始日期
     */
    @NotNull(message = "开始日期不能为空")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date startDate;
    /**
     * 结束日期
     */
    @NotNull(message = "结束日期不能为空")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 应收日期
     */
    @NotNull(message = "应收日期不能为空")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date receivableDate;

}
