guoyujie
2025-11-20 dbde84b9c89cb37f5e6cadbde182031576dec988
提交相关 pom文件
2个文件已修改
33 ■■■■■ 已修改文件
northglass-erp-client/pom.xml 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
northglass-erp-client/src/main/java/com/example/northglasserpclient/service/sd/impl/OrderServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
northglass-erp-client/pom.xml
@@ -2,6 +2,13 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.13</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>northglass-erp-client</artifactId>
    <version>0.0.1-SNAPSHOT</version>
@@ -94,18 +101,18 @@
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${spring-boot.version}</version>
                <configuration>
                    <mainClass>com.example.northglasserpclient.NorthglassErpClientApplication</mainClass>
                    <skip>true</skip>
                </configuration>
                <executions>
                    <execution>
                        <id>repackage</id>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
<!--                <configuration>-->
<!--                    <mainClass>com.example.northglasserpclient.NorthglassErpClientApplication</mainClass>-->
<!--                    <skip>true</skip>-->
<!--                </configuration>-->
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <id>repackage</id>-->
<!--                        <goals>-->
<!--                            <goal>repackage</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
            </plugin>
        </plugins>
    </build>
northglass-erp-client/src/main/java/com/example/northglasserpclient/service/sd/impl/OrderServiceImpl.java
@@ -98,7 +98,7 @@
                    detail.setQuantityByProduced(0);
                }
            });
            Integer deliveryNum = detailsDTO.stream().map(e -> e.getDeliveryNum()).reduce(Integer::sum).get();
            Integer deliveryNum = detailsDTO.stream().map(OrderDetail::getDeliveryNum).reduce(Integer::sum).get();
            order.setPercent(deliveryNum/Math.toIntExact(order.getQuantity())*100);
            order.setOrderDetails(detailsDTO);
        });