package com.bonus.canteen.core.order.domain.param;

import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderInfoAddParam {
    @NotNull(message = "食堂ID不能为空")
    private Long canteenId;
    private String canteenName;
    @NotNull(message = "档口ID不能为空")
    private Long stallId;
    @NotNull(message = "用户ID不能为空")
    @NotNull(message = "餐次类型不能为空")
    private Integer mealtimeType;
    private String mealtimeName;
    @NotNull(message = "订单日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date orderDate;
    @NotNull(message = "订单类型不能为空")
    private Integer orderType;
    private String deviceOrderId;
    private String deviceSn;
    private String deviceNum;
    @Valid
    @NotNull(message = "订单列表详情不能为空")
    List<OrderDetailInfoAddParam> orderDetailList;
}
