Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
佟礼
HYH.APSJ
Commits
b71da8c1
Commit
b71da8c1
authored
Feb 03, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://39.100.78.207:1213/tongli/hyh.apsj
parents
7f32284b
923683e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
MaterialRequirementService.java
...com/aps/service/Algorithm/MaterialRequirementService.java
+5
-5
No files found.
src/main/java/com/aps/service/Algorithm/MaterialRequirementService.java
View file @
b71da8c1
...
...
@@ -132,6 +132,7 @@ public class MaterialRequirementService {
}
List
<
Material
>
useMaterials
=
new
ArrayList
<>();
Set
<
String
>
useMaterialids
=
new
HashSet
<>();
if
(
routingsupportings
!=
null
&&
routingsupportings
.
size
()>
0
)
{
List
<
String
>
materialIds
=
new
ArrayList
<>();
...
...
@@ -175,7 +176,7 @@ public class MaterialRequirementService {
allneeded
,
component
.
getSpentQty
().
doubleValue
(),
component
.
getMainQty
().
doubleValue
(),
operation
.
Quantity
);
orderMaterialRequirement
.
setBomId
(
component
.
getStrId
());
if
(!
material
.
getMaterialTypeName
().
equals
(
"MP"
)
&&
isIsCheckSf
)
{
materialIds
.
add
(
materialId
);
materialIds
.
add
(
materialId
);
//半成品ID
}
materialRequirementList
.
add
(
orderMaterialRequirement
);
}
...
...
@@ -200,7 +201,7 @@ public class MaterialRequirementService {
}
}
}
//半成品往下继续找
if
(
materialIds
!=
null
&&
materialIds
.
size
()>
0
)
{
Map
<
Integer
,
Object
>
reslte1
=
preloadSfRoutingBomCache
(
materialIds
,
routingHeaders
,
routingsupportings
,
replaces
);
...
...
@@ -220,11 +221,9 @@ public class MaterialRequirementService {
}
}
}
reslte
.
put
(
2
,
useMaterials
);
}
}
reslte
.
put
(
2
,
useMaterials
);
SaveBomCache
(
sceneId
,
routingHeaders
,
routingsupportings
,
replaces
,
useMaterials
);
...
...
@@ -1056,6 +1055,7 @@ if(headers1==null)
double
needed
=
allneeded
;
orderMaterial
.
setRequiredQuantity
(
needed
);
orderMaterial
.
setQjQty
(
needed
);
// 查找物料(流式处理替代First)
Material
material
=
materials
.
stream
()
.
filter
(
m
->
m
.
getId
().
equals
(
orderMaterial
.
getMaterialId
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment