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 extends BaseResult{ // { // "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; 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 getRecords() { return records; } public void setRecords(List 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; } } }