parent
fdd6d7034f
commit
7fab05a1f9
@ -0,0 +1,27 @@ |
||||
package com.dky.entity; |
||||
|
||||
|
||||
public class Construction { |
||||
|
||||
// 建筑类型(1机关,2医院,3学校,4商业办公楼,5酒店,6其他)
|
||||
private Integer constrType; |
||||
|
||||
// 建筑面积(平方米)
|
||||
private Double floor; |
||||
|
||||
public Integer getConstrType() { |
||||
return constrType; |
||||
} |
||||
|
||||
public void setConstrType(Integer constrType) { |
||||
this.constrType = constrType; |
||||
} |
||||
|
||||
public Double getFloor() { |
||||
return floor; |
||||
} |
||||
|
||||
public void setFloor(Double floor) { |
||||
this.floor = floor; |
||||
} |
||||
} |
@ -0,0 +1,26 @@ |
||||
package com.dky.generate; |
||||
|
||||
|
||||
import cn.hutool.json.JSONObject; |
||||
import com.dky.calculate.OverCollHeatAll; |
||||
import com.dky.entity.Construction; |
||||
import com.dky.entity.CoolHeat; |
||||
import com.dky.modelI.DntdModelI; |
||||
|
||||
public class CoolHeatSence implements DntdModelI { |
||||
|
||||
|
||||
@Override |
||||
public JSONObject createReport(JSONObject jsonObject) { |
||||
|
||||
JSONObject jsonReport = new JSONObject(); |
||||
CoolHeat coolHeat = jsonObject.toBean(CoolHeat.class); |
||||
Construction construction = jsonObject.toBean(Construction.class); |
||||
OverCollHeatAll overCollHeatAll = new OverCollHeatAll(); |
||||
overCollHeatAll.investment(construction.getFloor(), coolHeat.getHeatArea(), coolHeat.getDevPrice()); |
||||
// overCollHeatAll.getRunCost(coolHeat.getOriginalDevice().getQuantity(), coolHeat.getNeedPower(), coolHeat.g)
|
||||
|
||||
return null; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue