package cn.com.ty.lift.business.emergency.dto;

import cn.com.ty.lift.common.model.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import java.time.LocalDate;

/**
 * <p>
 *     根据条件分页查询急修费用，条件封装model
 * </p>
 * @author wcz
 * @since  2019/12/5
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CostRequest extends PageRequest {

    /**
     * 主键id
     */
    @Min(value = 1,message = "急修费用ID有误")
    private Long id;
    /**
     * 维保公司id
     */
    @Min(value = 1,message = "维保公司ID有误")
    private Long mtCompanyId;

    /**
     * 电梯id
     */
    @Min(value = 1,message = "电梯ID有误")
    private Long liftId;

    /**
     * 区域id
     */
    @Min(value = 1,message = "区域ID有误")
    private Long regionId;

    /**
     * 项目id
     */
    @Min(value = 1,message = "项目ID有误")
    private Long projectId;

    /**
     * 维保工id
     */
    @Min(value = 1,message = "维保工ID有误")
    private Long workerId;

    /**
     * 报修开始时间
     */
    private LocalDate repairBegin;

    /**
     * 报修结束时间
     */
    private LocalDate repairEnd;

    /**
     * 急修收费状态
     */
    private Integer status;
}
