package com.clx.performance.vo.pc;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;


/**
 * @author yangqifa
 */
@Getter
@Setter
@ToString
public class OrderChildOperateLimitConfigVO {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty("配置名称")
    private String name;

    @ApiModelProperty("可上传装车信息范围：默认2.0，最大9999.9")
    private BigDecimal allowUploadDistance;

    @ApiModelProperty(value = "启用状态 0 禁用 1 启用")
    private Integer status;

    public Integer allowUploadDistanceMeter() {
        return allowUploadDistance.multiply(new BigDecimal(1000)).intValue();
    }
}
