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

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.nest.springwrap.core.mp.support.Query;

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

/**
 * 预存款列表查询
 */
@Data
public class PropertyPrepaymentQryDto extends Query {
    /**
     * 是否个人小程序端：1-是，0-否
     */
    private Integer isAppPerson;

    /**
     * 园区id
     */
    @NotNull(message = "园区id不能为空",groups = Detail.class)
    private Long parkId;

    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空",groups = Detail.class)
    private Long customerId;

    /**
     * 房源id
     */
    @NotNull(message = "房源id不能为空",groups = Detail.class)
    private Long houseId;

    /**
     * 费用项id
     */
    @NotNull(message = "预存款账户不能为空",groups = Detail.class)
    private Long feeItemId;

    public interface Detail {}

    /**
     * 预存款id
     */
    private Long prepaymentId;

    /**
     * 核销时间段
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startRecordTime;
    /**
     * 核销时间段
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endRecordTime;

}
