李白
6 天以前 d1f4be00fc8ab2faf990aa0446156b305fc25586
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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;
    }
 
}