package com.ho.flow.vo.req.workorder;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ho.flow.entity.WorkOrder;
import com.ho.flow.entity.WorkOrderSub;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Description 新增工单业务对象
 * Author yule
 * Date 2023/2/4 14:41
 */
@Data
public class WorkOrderAddReqVO extends WorkOrder {
    //图片id集合
    List<Integer> pictureIds;

    @ApiModelProperty(value = "电站id集合")
    List<Integer> stationIds;

    @ApiModelProperty(value = "设备id集合")
    List<Integer> deviceIds;

    @ApiModelProperty(value = "告警id集合")
    @JsonSerialize(using = ToStringSerializer.class)
    List<Long> eventIds;

    //子表集合
    @ApiModelProperty(value = "设备id集合",hidden = true)
    List<WorkOrderSub> workOrderSubs;


}
