package cn.iocoder.yudao.module.system.controller.admin.biz.vo.elderlyorder;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 服务工单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ElderlyServiceOrderPageReqVO extends PageParam {

    @Schema(description = "长者姓名")
    private String elderName;

    @Schema(description = "服务人员姓名")
    private String serviceName;

    @Schema(description = "工单状态")
    private String orderStatus;

    @Schema(description = "是否过期")
    private String isExpire;

    @Schema(description = "租户id数组（前端必传，用于上级查询多个下级）")
    private Long[] tenantIds;

    @Schema(description = "查询时间范围（用于筛选 order_time），数组：[开始日期, 结束日期]，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] discoveryTime;

}

