package cn.iocoder.yudao.module.system.controller.admin.elderly.vo;

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 ElderlySafeCheckElderPageReqVO extends PageParam {

    @Schema(description = "长者id", example = "1")
    private Long elderId;

    @Schema(description = "长者姓名（模糊）")
    private String elderName;

    @Schema(description = "检查日期（yyyy-MM-dd）范围，按创建时间过滤")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] checkDate;

    @Schema(description = "机构id数组")
    private Long[] tenantIds;
}

