左晓为主开发手持机充值管理机
zuoxiao
2024-08-09 9450bcb197c2de53982368d5c2059b31abed3b87
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
package com.dayu.qiheonlinelibrary.bean;
 
import com.dayu.baselibrary.utils.MornyUtil;
 
import java.util.List;
 
/**
 * author: zuo
 * Date: 2024-08-05
 * Time: 16:00
 * 备注:水价管理列表
 */
public class PricePlanResult {
 
//    {
//        "code": "0",
//            "msg": "操作成功",
//            "data": {
//        "records": [
//        {
//            "priceMethod": 2,
//                "priceTypeName": "按户阶梯水价",
//                "cardManagementFee": 5,
//                "itemList": [
//            {
//                "ladder": 1,
//                    "planId": "1816390728315052033",
//                    "updatedTime": "2024-07-25 16:31:11",
//                    "ladderName": "第一阶梯",
//                    "logicState": 1,
//                    "price": 0,
//                    "planItemId": "1816390728386355201",
//                    "createdBy": "1761933307362938881",
//                    "tenantId": "1761933241344593922",
//                    "waterPrice": "",
//                    "endWaterVolume": 0,
//                    "createdTime": "2024-07-25 16:31:11",
//                    "updatedBy": "1761933307362938881",
//                    "initialWaterVolume": 0
//            },
//            {
//                "ladder": 2,
//                    "planId": "1816390728315052033",
//                    "updatedTime": "2024-07-25 16:31:11",
//                    "ladderName": "第二阶梯",
//                    "logicState": 1,
//                    "price": 0,
//                    "planItemId": "1816390728407326722",
//                    "createdBy": "1761933307362938881",
//                    "tenantId": "1761933241344593922",
//                    "waterPrice": "",
//                    "endWaterVolume": "",
//                    "createdTime": "2024-07-25 16:31:11",
//                    "updatedBy": "1761933307362938881",
//                    "initialWaterVolume": 0
//            },
//            {
//                "ladder": 3,
//                    "planId": "1816390728315052033",
//                    "updatedTime": "2024-07-25 16:31:11",
//                    "ladderName": "第三阶梯",
//                    "logicState": 1,
//                    "price": 0,
//                    "planItemId": "1816390728415715330",
//                    "createdBy": "1761933307362938881",
//                    "tenantId": "1761933241344593922",
//                    "waterPrice": "",
//                    "endWaterVolume": "",
//                    "createdTime": "2024-07-25 16:31:11",
//                    "updatedBy": "1761933307362938881",
//                    "initialWaterVolume": 0
//            }
//                ],
//            "weratio": 4.688,
//                "cropTypeName": "",
//                "unitPrice": 0.32,
//                "planId": "1816390728315052033",
//                "adnm": "齐河县",
//                "cropType": "",
//                "state": 1,
//                "adId": "371425000000",
//                "priceType": 2,
//                "createdTime": "2024-07-25 16:31:11",
//                "planName": "基础水价"
//        }
//        ],
//        "total": "1",
//                "size": "50",
//                "current": "1",
//                "orders": [
//
//        ],
//        "optimizeCountSql": true,
//                "searchCount": true,
//                "countId": "",
//                "maxLimit": "",
//                "pages": "1"
//    }
//    }
 
 
    int total;
    int pages;
    int size;
 
 
    List<Records> records;
 
    public int getTotal() {
        return total;
    }
 
    public void setTotal(int total) {
        this.total = total;
    }
 
    public int getPages() {
        return pages;
    }
 
    public void setPages(int pages) {
        this.pages = pages;
    }
 
    public int getSize() {
        return size;
    }
 
    public void setSize(int size) {
        this.size = size;
    }
 
    public List<Records> getRecords() {
        return records;
    }
 
    public void setRecords(List<Records> records) {
        this.records = records;
    }
 
    public class Records {
        String planId;
 
        float weratio;//水价 乘以系数得出电价
        float unitPrice;//系数
 
        public String getElectricityPrice() {
            try {
                return MornyUtil.multiplyPrice(weratio, unitPrice);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return "";
        }
 
        public String getPlanId() {
            return planId;
        }
 
        public void setPlanId(String planId) {
            this.planId = planId;
        }
    }
 
 
}