| | |
| | | "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==", |
| | | "dev": true, |
| | | "license": "MIT", |
| | | "peer": true, |
| | | "dependencies": { |
| | | "@babel/code-frame": "^7.27.1", |
| | | "@babel/generator": "^7.28.3", |
| | |
| | | "resolved": "https://registry.npmmirror.com/@types/lodash-es/-/lodash-es-4.17.12.tgz", |
| | | "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", |
| | | "license": "MIT", |
| | | "peer": true, |
| | | "dependencies": { |
| | | "@types/lodash": "*" |
| | | } |
| | |
| | | } |
| | | ], |
| | | "license": "MIT", |
| | | "peer": true, |
| | | "dependencies": { |
| | | "baseline-browser-mapping": "^2.8.3", |
| | | "caniuse-lite": "^1.0.30001741", |
| | |
| | | "version": "4.17.21", |
| | | "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", |
| | | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", |
| | | "license": "MIT" |
| | | "license": "MIT", |
| | | "peer": true |
| | | }, |
| | | "node_modules/lodash-es": { |
| | | "version": "4.17.21", |
| | | "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.21.tgz", |
| | | "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", |
| | | "license": "MIT" |
| | | "license": "MIT", |
| | | "peer": true |
| | | }, |
| | | "node_modules/lodash-unified": { |
| | | "version": "1.0.3", |
| | |
| | | "integrity": "sha512-SRYIB8t/isTwNn8vMB3MR6E+EQZM/WG1aKmmIUCfDXfVvKfc20ZpamngWHKzAmmu9ppsgxsg4b2I7c90JZudIQ==", |
| | | "dev": true, |
| | | "license": "MIT", |
| | | "peer": true, |
| | | "dependencies": { |
| | | "esbuild": "^0.25.0", |
| | | "fdir": "^6.5.0", |
| | |
| | | "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.21.tgz", |
| | | "integrity": "sha512-xxf9rum9KtOdwdRkiApWL+9hZEMWE90FHh8yS1+KJAiWYh+iGWV1FquPjoO9VUHQ+VIhsCXNNyZ5Sf4++RVZBA==", |
| | | "license": "MIT", |
| | | "peer": true, |
| | | "dependencies": { |
| | | "@vue/compiler-dom": "3.5.21", |
| | | "@vue/compiler-sfc": "3.5.21", |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | 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); |
| | | }); |