From fc2e72ce87f763370fe85e4233489ff8c27cfe3c Mon Sep 17 00:00:00 2001 From: XMnhwj_BackTechnologyDevelopment <3512363680@qq.com> Date: Thu, 25 Jan 2024 09:06:22 +0800 Subject: [PATCH] 2024-01-25 09:35:06 --- .../java/com/dky/utils/entity/DevSpec.java | 212 ++++++++++++++---- dntd-tool/src/main/java/com/dky/Test.java | 20 +- 2 files changed, 174 insertions(+), 58 deletions(-) diff --git a/dntd-common/src/main/java/com/dky/utils/entity/DevSpec.java b/dntd-common/src/main/java/com/dky/utils/entity/DevSpec.java index 3730310..7ab2011 100644 --- a/dntd-common/src/main/java/com/dky/utils/entity/DevSpec.java +++ b/dntd-common/src/main/java/com/dky/utils/entity/DevSpec.java @@ -1,79 +1,195 @@ package com.dky.utils.entity; -import cn.hutool.json.JSONObject; - public class DevSpec { - //id - private Integer id; - //设备类型 - private String devType; - //设备价格 - private Double devModel; - //单位 - private Double capacity; - //单元单位 - private String output; - //制热范围 - private String voltage; - //备注 - - public Integer getId() { + + /** 序号 */ + private Long id ; + /** 设备类型 */ + private String deviceType ; + /** 设备细类 */ + private String deviceSubType ; + /** 技术类型 */ + private String technologyType ; + /** 设备功率(kW) */ + private Double devicePower ; + /** 设备加热方式 */ + private String heatingMethod ; + /** 热效率 */ + private String heatingEffciency ; + /** 设备单价(万元) */ + private Double devicePrice ; + /** 设备操作人数 */ + private Integer deviceOperators ; + /** 电替代设备年人工费用(万元) */ + private Double artificialCost ; + /** 原设备的人工费用(万元) */ + private Double laborCost ; + /** 设备使用年限(年) */ + private Integer deviceLife ; + /** 设备年运行时长(小时) */ + private Integer deviceRunHours ; + /** 单台电设备参考的可供暖面积(平方米) */ + private Double heatingArea ; + /** 单台电设备制造一批产品的周期(小时) */ + private Integer manufacturingCycle ; + /** 工作容积(立方米) */ + private Double workingVolume ; + /** 产品的密度 */ + private String productDensity ; + /** 单台电设备制造一批产品的产量 */ + private String productQuality ; + /** 备注 */ + private String remarkInfo ; + + public Long getId() { return id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } - public String getDevType() { - return devType; + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceSubType() { + return deviceSubType; + } + + public void setDeviceSubType(String deviceSubType) { + this.deviceSubType = deviceSubType; + } + + public String getTechnologyType() { + return technologyType; + } + + public void setTechnologyType(String technologyType) { + this.technologyType = technologyType; + } + + public Double getDevicePower() { + return devicePower; + } + + public void setDevicePower(Double devicePower) { + this.devicePower = devicePower; + } + + public String getHeatingMethod() { + return heatingMethod; + } + + public void setHeatingMethod(String heatingMethod) { + this.heatingMethod = heatingMethod; + } + + public String getHeatingEffciency() { + return heatingEffciency; + } + + public void setHeatingEffciency(String heatingEffciency) { + this.heatingEffciency = heatingEffciency; + } + + public Double getDevicePrice() { + return devicePrice; + } + + public void setDevicePrice(Double devicePrice) { + this.devicePrice = devicePrice; + } + + public Integer getDeviceOperators() { + return deviceOperators; + } + + public void setDeviceOperators(Integer deviceOperators) { + this.deviceOperators = deviceOperators; + } + + public Double getArtificialCost() { + return artificialCost; + } + + public void setArtificialCost(Double artificialCost) { + this.artificialCost = artificialCost; + } + + public Double getLaborCost() { + return laborCost; + } + + public void setLaborCost(Double laborCost) { + this.laborCost = laborCost; + } + + public Integer getDeviceLife() { + return deviceLife; + } + + public void setDeviceLife(Integer deviceLife) { + this.deviceLife = deviceLife; + } + + public Integer getDeviceRunHours() { + return deviceRunHours; + } + + public void setDeviceRunHours(Integer deviceRunHours) { + this.deviceRunHours = deviceRunHours; + } + + public Double getHeatingArea() { + return heatingArea; + } + + public void setHeatingArea(Double heatingArea) { + this.heatingArea = heatingArea; } - public void setDevType(String devType) { - this.devType = devType; + public Integer getManufacturingCycle() { + return manufacturingCycle; } - public Double getDevModel() { - return devModel; + public void setManufacturingCycle(Integer manufacturingCycle) { + this.manufacturingCycle = manufacturingCycle; } - public void setDevModel(Double devModel) { - this.devModel = devModel; + public Double getWorkingVolume() { + return workingVolume; } - public Double getCapacity() { - return capacity; + public void setWorkingVolume(Double workingVolume) { + this.workingVolume = workingVolume; } - public void setCapacity(Double capacity) { - this.capacity = capacity; + public String getProductDensity() { + return productDensity; } - public String getOutput() { - return output; + public void setProductDensity(String productDensity) { + this.productDensity = productDensity; } - public void setOutput(String output) { - this.output = output; + public String getProductQuality() { + return productQuality; } - public String getVoltage() { - return voltage; + public void setProductQuality(String productQuality) { + this.productQuality = productQuality; } - public void setVoltage(String voltage) { - this.voltage = voltage; + public String getRemarkInfo() { + return remarkInfo; } - @Override - public String toString() { - return "DevSpec{" + - "id=" + id + - ", devType='" + devType + '\'' + - ", devModel=" + devModel + - ", capacity=" + capacity + - ", output='" + output + '\'' + - ", voltage='" + voltage + '\'' + - '}'; + public void setRemarkInfo(String remarkInfo) { + this.remarkInfo = remarkInfo; } } diff --git a/dntd-tool/src/main/java/com/dky/Test.java b/dntd-tool/src/main/java/com/dky/Test.java index 2df4b9f..c305de6 100644 --- a/dntd-tool/src/main/java/com/dky/Test.java +++ b/dntd-tool/src/main/java/com/dky/Test.java @@ -14,15 +14,15 @@ public class Test { DevSpec specObj1 = new DevSpec(); DevSpec specObj2 = new DevSpec(); DevSpec specObj3 = new DevSpec(); - specObj1.setId(1); - specObj1.setDevType("直热式电锅炉"); - specObj1.setCapacity(1.5); - specObj2.setId(2); - specObj2.setDevType("直热式电锅炉"); - specObj2.setCapacity(2.5); - specObj3.setId(3); - specObj3.setDevType("直热式电锅炉"); - specObj3.setCapacity(3.0); + specObj1.setId(1L); + specObj1.setTechnologyType("直热式电锅炉"); + specObj1.setHeatingArea(1.5); + specObj2.setId(2L); + specObj2.setTechnologyType("直热式电锅炉"); + specObj2.setHeatingArea(2.5); + specObj3.setId(3L); + specObj3.setTechnologyType("直热式电锅炉"); + specObj3.setHeatingArea(3.0); devSpecList.add(specObj1); devSpecList.add(specObj2); devSpecList.add(specObj3); @@ -57,7 +57,7 @@ public class Test { .put("deviceEnergyType", "1") .put("lastYearFee", "76.25")); String key = "GWnQ4RqqTc8n1Uj59xLoUq0YsJLmzgyVzBvI35uj+DaDjdU0HZoU2fCd33JFsVG+3tWpkuojap/b5eeutSp6d4x4juou3yhCF7yhLBqYs1tdr2DF5QqL8uTsLJuKf1Ys8iufExureFAQw+qjMN+W5UlKE5id39PDi2nsPJGUbwkrvkywf2wqaqwZy+i/QBOl"; - JSONObject jsonObject = modelTool.exeModel2Report(param,key);//exeModel2Report + JSONObject jsonObject = ModelTool.exeModel2Report(param,key);//exeModel2Report System.out.println(jsonObject.toString()); } }