package cn.iocoder.yudao.module.bpm.controller.admin.task.vo.elderly;

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 java.time.LocalDateTime;

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

/**
 * @Author: jinyd
 * @CreateTime: 2024/8/13  16:40
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 长者退住申请记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ElderlyRetreatRecordPageReqVO extends PageParam {

    @Schema(description = "长者id", example = "14373")
    private Long elderlyId;

    @Schema(description = "退住日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] retreatDate;

    @Schema(description = "费用截止日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] costDeadlineDate;

    @Schema(description = "退住原因", example = "不对")
    private String reason;

    @Schema(description = "退住描述", example = "随便")
    private String description;

    @Schema(description = "审批状态，1-审批中，2-审批通过，3-审批不通过，4-已取消，5-系统审批", example = "2")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "长者姓名", example = "测试长者")
    private String elderName;


}
