package com.repair.model.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.repair.model.enumModel.eSchool;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class MaintenanceGoodsVo {

    private Integer id;
    //  维修物品名称
    private String articleName;
    //  订单总数
    private Integer ordersTotal;
    //校区ID
    @JsonIgnore
    private Integer schoolId;

    //校区名称
    private String schoolName;

    public String getSchoolName() {
        return eSchool.stringOf(schoolId);
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    //  有偿订单
    private Integer ordersCompensation;
    //  无偿订单
    private Integer ordersGratis;
    //  总费用
    private BigDecimal totalPrice;

}
