package com.qmth.sop.business.bean.params;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description: 服务单元批量划定参数
 * @Author: CaoZixuan
 * @Date: 2023-08-11
 */
public class ServiceScopeParam {
    @ApiModelProperty("服务单元id")
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "请提供划定服务单元")
    @Range(min = 1L, message = "请提供划定服务单元")
    private Long serviceUnitId;

    @ApiModelProperty("派单id集合")
    @JsonSerialize(using = ToStringSerializer.class)
    @NotEmpty(message = "请提供划定派单集合")
    private List<Long> crmIdList;

    public Long getServiceUnitId() {
        return serviceUnitId;
    }

    public void setServiceUnitId(Long serviceUnitId) {
        this.serviceUnitId = serviceUnitId;
    }

    public List<Long> getCrmIdList() {
        return crmIdList;
    }

    public void setCrmIdList(List<Long> crmIdList) {
        this.crmIdList = crmIdList;
    }
}
