package com.by4cloud.platformx.business.entity.invoice.vo; import lombok.Data; import java.math.BigDecimal; /** * 表体特征 */ @Data public class BIPYsMx { private String id; // 特征 id // private String JT01_code="01";//业态 private String JT04_code;//交易类型 private String JT06;//款项明细 private String JT06_code;//款项明细 private String JT32_code;//作业要素 private String YSYF14_code;//款项类型 private String YSYF52;//自定义字段 private String YSYF_08;//款项类型 // private String JT25_code;//其他业务明细 private String GX08_code;//核算单元 private String GX06_code;//物料名称 // private String JT11_code="01";//提缴方式 private String JT09_code = "0101";//提缴方式 private String JT12_code;//物料 private String MX021_code;//收货客户 private String customerCode; private String MX09; // 运销系统煤种 private BigDecimal MX10; //水煤量 private String zzbkfl_code; // 订单号 private Double MX11; //灰分 private Integer MX12; //灰分级别 private Double MX13; //水分 private Double MX14; //硫分 private String MX15; //品种 private Double MX16; //折干量 private BigDecimal MX17; //标煤量 private Double MX18; //标煤量单价 private String unitName; private String YSYF33;//发票号 private String invoiceType = "01"; public Integer getMX12() { if (MX11 != null) { if (MX11 > 9 && MX11 <= 9.5) { this.MX12 = 9; } else if (MX11 > 9.5 && MX11 <= 10) { this.MX12 = 10; } else if (MX11 > 10 && MX11 <= 10.5) { this.MX12 = 11; } else if (MX11 > 10.5 && MX11 <= 11) { this.MX12 = 12; }else if (MX11>11 && MX11<=11.5){ this.MX12 = 13; }else if (MX11>11.5 && MX11<=12){ this.MX12 = 14; }else if (MX11<9){ this.MX12 = 9; }else if (MX11>12){ this.MX12 = 14; } }else { return null; } // Coal coal = RedisCacheYunXiaoHelper.getInstance().getCoalById(coalId); // if (coal!=null && StrUtil.isNotEmpty(coal.getCoalPath()) && coal.getCoalPath().indexOf("炼焦精煤") == -1){ // this.MX12 = null; // } return this.MX12; } }