package com.chushang.inspection.project.dto;

import cn.hutool.core.date.DatePattern;
import com.chushang.common.mybatis.annotation.Condition;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @auther: zhao
 * @date: 2024/6/17 17:59
 */
@Data
public class PageAuditDTO {
    /**
     * 多选 第三方id
     */
    @Condition(name = "third_id", type = Condition.ConditionType.in)
    private List<Long> thirdIds;
    /**
     * 审核状态
     */
    @Condition(name = "audit_status", type = Condition.ConditionType.eq)
    private Integer auditStatus;
    /**
     * 默认 合同审核
     */
    @Condition(name = "third_type", type = Condition.ConditionType.eq)
    private Integer auditType = 1;
    /**
     * 审核人
     */
    @Condition(name = "audit_user_id", type = Condition.ConditionType.eq)
    private Long auditUserId;

    /**
     * 审核时间 区间
     */
    @Condition(name = "audit_time", type = Condition.ConditionType.between)
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private List<LocalDateTime> auditTimes;


}
