master
魔神煜修罗皇 1 year ago
parent e7f4df4f43
commit e6ad2e2f3f
  1. 2
      .idea/encodings.xml
  2. 2
      .idea/misc.xml
  3. 20
      dntd-model-coolheat/pom.xml
  4. 4
      dntd-model-heatboiler/src/main/java/com/dky/calculate/RequireDevice.java
  5. 2
      dntd-tool/pom.xml
  6. 2
      dntd-tool/src/main/java/com/dky/generate/HeatBoilerSence.java
  7. 1
      pom.xml

@ -5,6 +5,8 @@
<file url="file://$PROJECT_DIR$/dntd-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-buildsence/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-buildsence/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-coolheat/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-coolheat/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-heatboiler/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-heatboiler/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/dntd-model-traffic/src/main/java" charset="UTF-8" />

@ -14,7 +14,7 @@
</set>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="corretto-11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="corretto-11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dntd-model-tool1</artifactId>
<groupId>com.dky</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dntd-model-coolheat</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

@ -23,7 +23,7 @@ public class RequireDevice {
matchedDevices.add(new MatchedDevice(spec, count));
if (count > 0) {
DevPrice price = priceList.stream()
.filter(p -> p.getId() == spec.getId())
.filter(p -> p.getId().equals(spec.getId()))
.findFirst()
.orElse(null);
@ -38,7 +38,7 @@ public class RequireDevice {
matchedDevices.add(new MatchedDevice(deviceList.get(i), 1));
int finalI = i;
DevPrice price = priceList.stream()
.filter(p -> p.getId() == deviceList.get(finalI).getId())
.filter(p -> p.getId().equals(deviceList.get(finalI).getId()))
.findFirst()
.orElse(null);

@ -13,7 +13,7 @@
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.source>8</maven.compiler.source>z
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

@ -47,7 +47,7 @@ public class HeatBoilerSence implements DntdModelI {
//单位(元/台、元/套)
String unit = "";
Set<String> devTypeSet = new HashSet<>();
/* for (MatchedDevice matchedDevice : matchedDeviceResult.getMatchedDevices()) {
/* for (MatchedDevice : matchedDeviceResult.getMatchedDevices()) {
devTypeSet.add(matchedDevice.getDevSpec().getDevType());
deviceSpec = deviceSpec + matchedDevice.getDevSpec().getDevType() + ":"+matchedDevice.getDevSpec().getCapacity()+"蒸吨、";
deviceNum = deviceNum + matchedDevice.getCount() + "台/"+matchedDevice.getDevSpec().getDevType()+";";

@ -13,6 +13,7 @@
<module>dntd-model-heatboiler</module>
<module>dntd-modelI</module>
<module>dntd-common</module>
<module>dntd-model-coolheat</module>
</modules>
<properties>

Loading…
Cancel
Save