package cn.iocoder.yudao.module.mes.controller.admin.app.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.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

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

@Schema(description = "app 报工单 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppReportReqVO extends PageParam {

    @Schema(description = "用户ID", example = "19983")
    private Long userId;

    @Schema(description = "工序ID", example = "28795")
    private Long orgId;

    @Schema(description = "工序", example = "2")
    private String orgType;

    @Schema(description = "计件时段")
    private String reportTime;

    @Schema(description = "总时长")
    private BigDecimal totalTime;

    @Schema(description = "报工状态", example = "2")
    private Integer reportStatus;

    @Schema(description = "班别", example = "1")
    private Integer groupType;

    @Schema(description = "报工类型", example = "1")
    private String reportType;

    @Schema(description = "报工日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime reportDate;

    private List<Long> userIds;
}