2024-01-25 09:35:06

master
魔神煜修罗皇 1 year ago
parent 7fab05a1f9
commit fc2e72ce87
  1. 212
      dntd-common/src/main/java/com/dky/utils/entity/DevSpec.java
  2. 20
      dntd-tool/src/main/java/com/dky/Test.java

@ -1,79 +1,195 @@
package com.dky.utils.entity; package com.dky.utils.entity;
import cn.hutool.json.JSONObject;
public class DevSpec { public class DevSpec {
//id
private Integer id; /** 序号 */
//设备类型 private Long id ;
private String devType; /** 设备类型 */
//设备价格 private String deviceType ;
private Double devModel; /** 设备细类 */
//单位 private String deviceSubType ;
private Double capacity; /** 技术类型 */
//单元单位 private String technologyType ;
private String output; /** 设备功率(kW) */
//制热范围 private Double devicePower ;
private String voltage; /** 设备加热方式 */
//备注 private String heatingMethod ;
/** 热效率 */
public Integer getId() { 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; return id;
} }
public void setId(Integer id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public String getDevType() { public String getDeviceType() {
return devType; 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) { public Integer getManufacturingCycle() {
this.devType = devType; return manufacturingCycle;
} }
public Double getDevModel() { public void setManufacturingCycle(Integer manufacturingCycle) {
return devModel; this.manufacturingCycle = manufacturingCycle;
} }
public void setDevModel(Double devModel) { public Double getWorkingVolume() {
this.devModel = devModel; return workingVolume;
} }
public Double getCapacity() { public void setWorkingVolume(Double workingVolume) {
return capacity; this.workingVolume = workingVolume;
} }
public void setCapacity(Double capacity) { public String getProductDensity() {
this.capacity = capacity; return productDensity;
} }
public String getOutput() { public void setProductDensity(String productDensity) {
return output; this.productDensity = productDensity;
} }
public void setOutput(String output) { public String getProductQuality() {
this.output = output; return productQuality;
} }
public String getVoltage() { public void setProductQuality(String productQuality) {
return voltage; this.productQuality = productQuality;
} }
public void setVoltage(String voltage) { public String getRemarkInfo() {
this.voltage = voltage; return remarkInfo;
} }
@Override public void setRemarkInfo(String remarkInfo) {
public String toString() { this.remarkInfo = remarkInfo;
return "DevSpec{" +
"id=" + id +
", devType='" + devType + '\'' +
", devModel=" + devModel +
", capacity=" + capacity +
", output='" + output + '\'' +
", voltage='" + voltage + '\'' +
'}';
} }
} }

@ -14,15 +14,15 @@ public class Test {
DevSpec specObj1 = new DevSpec(); DevSpec specObj1 = new DevSpec();
DevSpec specObj2 = new DevSpec(); DevSpec specObj2 = new DevSpec();
DevSpec specObj3 = new DevSpec(); DevSpec specObj3 = new DevSpec();
specObj1.setId(1); specObj1.setId(1L);
specObj1.setDevType("直热式电锅炉"); specObj1.setTechnologyType("直热式电锅炉");
specObj1.setCapacity(1.5); specObj1.setHeatingArea(1.5);
specObj2.setId(2); specObj2.setId(2L);
specObj2.setDevType("直热式电锅炉"); specObj2.setTechnologyType("直热式电锅炉");
specObj2.setCapacity(2.5); specObj2.setHeatingArea(2.5);
specObj3.setId(3); specObj3.setId(3L);
specObj3.setDevType("直热式电锅炉"); specObj3.setTechnologyType("直热式电锅炉");
specObj3.setCapacity(3.0); specObj3.setHeatingArea(3.0);
devSpecList.add(specObj1); devSpecList.add(specObj1);
devSpecList.add(specObj2); devSpecList.add(specObj2);
devSpecList.add(specObj3); devSpecList.add(specObj3);
@ -57,7 +57,7 @@ public class Test {
.put("deviceEnergyType", "1") .put("deviceEnergyType", "1")
.put("lastYearFee", "76.25")); .put("lastYearFee", "76.25"));
String key = "GWnQ4RqqTc8n1Uj59xLoUq0YsJLmzgyVzBvI35uj+DaDjdU0HZoU2fCd33JFsVG+3tWpkuojap/b5eeutSp6d4x4juou3yhCF7yhLBqYs1tdr2DF5QqL8uTsLJuKf1Ys8iufExureFAQw+qjMN+W5UlKE5id39PDi2nsPJGUbwkrvkywf2wqaqwZy+i/QBOl"; 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()); System.out.println(jsonObject.toString());
} }
} }

Loading…
Cancel
Save