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
a27d4795
Commit
a27d4795
authored
Feb 10, 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
873244ea
f5e8c691
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
19 deletions
+22
-19
GeneticDecoder.java
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
+1
-1
MaterialRequirementService.java
...com/aps/service/Algorithm/MaterialRequirementService.java
+13
-10
application.yml
src/main/resources/application.yml
+3
-3
PlanResultServiceTest.java
src/test/java/com/aps/demo/PlanResultServiceTest.java
+5
-5
No files found.
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
View file @
a27d4795
...
@@ -283,7 +283,7 @@ if(finishedOrder==null||finishedOrder.size()==0)
...
@@ -283,7 +283,7 @@ if(finishedOrder==null||finishedOrder.size()==0)
List
<
OrderMaterialRequirement
>
orderMaterials
=
materialRequirementService
.
buildMultiLevelRequirementNetwork
(
chromosome
,
sceneId
,
baseTime
,
_globalParam
);
List
<
OrderMaterialRequirement
>
orderMaterials
=
materialRequirementService
.
buildMultiLevelRequirementNetwork
(
chromosome
,
sceneId
,
baseTime
,
_globalParam
);
chromosome
.
setScenarioID
(
sceneId
);
if
(
_globalParam
.
isIsCheckSf
())
{
if
(
_globalParam
.
isIsCheckSf
())
{
int
isnew
=
generateGlobalOpList
(
chromosome
);
int
isnew
=
generateGlobalOpList
(
chromosome
);
...
...
src/main/java/com/aps/service/Algorithm/MaterialRequirementService.java
View file @
a27d4795
...
@@ -1214,26 +1214,28 @@ if(headers1==null)
...
@@ -1214,26 +1214,28 @@ if(headers1==null)
routingsupportingreplaces2
=
routingsupportingreplaces
.
routingsupportingreplaces2
=
routingsupportingreplaces
.
stream
()
stream
()
.
filter
(
t
->
t
.
getStrsupid
().
equals
(
orderMaterial
.
getBomId
())
.
filter
(
t
->
t
.
getStrsupid
().
equals
(
orderMaterial
.
getBomId
())
&&
t
.
getMaterialid
()
!=
orderMaterial
.
getMaterialId
(
))
&&
t
.
getMaterialid
()
.
equals
(
orderMaterial
.
getMaterialId
()
))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
if
(
routingsupportingreplaces2
!=
null
&&
routingsupportingreplaces2
.
size
()
>
1
)
{
if
(
routingsupportingreplaces2
!=
null
&&
routingsupportingreplaces2
.
size
()
>
1
)
{
for
(
RoutingSupportingReplace
rsr
:
routingsupportingreplaces2
)
{
for
(
RoutingSupportingReplace
rsr
:
routingsupportingreplaces2
)
{
Material
material1
=
materials
.
stream
()
Material
material1
=
materials
.
stream
()
.
filter
(
m
->
m
.
getId
().
equals
(
rsr
.
get
M
aterialid
()))
.
filter
(
m
->
m
.
getId
().
equals
(
rsr
.
get
Targetm
aterialid
()))
.
findFirst
()
.
findFirst
()
.
orElse
(
null
);
.
orElse
(
null
);
if
(
material1
==
null
)
{
if
(
material1
==
null
)
{
break
;
break
;
}
}
OrderMaterialRequirement
orderMaterial1
=
MaterialStock
(
material1
,
rsr
.
get
M
aterialid
(),
orderMaterial
.
getOrderId
(),
orderMaterial
.
getChildOrderId
(),
operation
,
allneeded
,
needed
,
earliestStartTime
);
OrderMaterialRequirement
orderMaterial1
=
MaterialStock
(
material1
,
rsr
.
get
Targetm
aterialid
(),
orderMaterial
.
getOrderId
(),
orderMaterial
.
getChildOrderId
(),
operation
,
allneeded
,
needed
,
earliestStartTime
);
if
(
orderMaterial1
!=
null
)
{
if
(
orderMaterial1
!=
null
)
{
useStock
=
orderMaterial1
.
getUseStock
();
useStock
=
orderMaterial1
.
getUseStock
();
needed
-=
useStock
;
needed
-=
useStock
;
orderMaterial
.
setUseStock
(
orderMaterial
.
getUseStock
()
+
useStock
);
orderMaterial
.
setUseStock
(
orderMaterial
.
getUseStock
()
+
useStock
);
orderMaterial
.
getReplaceMaterial
().
add
(
orderMaterial1
);
orderMaterial
.
getReplaceMaterial
().
add
(
orderMaterial1
);
if
(
needed
<=
0
)
{
if
(
needed
<=
0
)
{
break
;
break
;
}
}
}
}
}
}
}
}
...
@@ -1255,7 +1257,7 @@ if(headers1==null)
...
@@ -1255,7 +1257,7 @@ if(headers1==null)
for
(
RoutingSupportingReplace
rsr:
routingsupportingreplaces2
)
{
for
(
RoutingSupportingReplace
rsr:
routingsupportingreplaces2
)
{
OrderMaterialRequirement
orderMaterial1
=
orderMaterial
.
getReplaceMaterial
().
stream
()
OrderMaterialRequirement
orderMaterial1
=
orderMaterial
.
getReplaceMaterial
().
stream
()
.
filter
(
t
->
t
.
getMaterialId
().
equals
(
rsr
.
get
M
aterialid
()))
.
filter
(
t
->
t
.
getMaterialId
().
equals
(
rsr
.
get
Targetm
aterialid
()))
.
findFirst
()
.
findFirst
()
.
orElse
(
null
);
.
orElse
(
null
);
...
@@ -1336,6 +1338,7 @@ if(headers1==null)
...
@@ -1336,6 +1338,7 @@ if(headers1==null)
}
}
}
}
}
}
orderMaterial
.
getReplaceMaterial
().
removeIf
(
t
->
t
.
getUseStock
()==
0
&&
t
.
getUseTransit
()==
0
);
}
}
// 计算预计可用时间
// 计算预计可用时间
...
...
src/main/resources/application.yml
View file @
a27d4795
...
@@ -10,8 +10,8 @@ spring:
...
@@ -10,8 +10,8 @@ spring:
pathmatch
:
pathmatch
:
matching-strategy
:
ant_path_matcher
# Spring Boot 2.6+ 需要这个配置
matching-strategy
:
ant_path_matcher
# Spring Boot 2.6+ 需要这个配置
redis
:
redis
:
host
:
192.168.0.181
host
:
39.100.88.40
port
:
63
80
port
:
63
79
timeout
:
120000
timeout
:
120000
database
:
10
database
:
10
password
:
redis@228!
password
:
redis@228!
...
@@ -55,7 +55,7 @@ spring:
...
@@ -55,7 +55,7 @@ spring:
# Oracle数据源
# Oracle数据源
oracle
:
oracle
:
driver-class-name
:
oracle.jdbc.OracleDriver
driver-class-name
:
oracle.jdbc.OracleDriver
url
:
jdbc:oracle:thin:@//
192.168.0.181:152
2/ORCLPDB1
# ORCL为你的Oracle实例名
url
:
jdbc:oracle:thin:@//
39.100.78.207:700
2/ORCLPDB1
# ORCL为你的Oracle实例名
username
:
mes
# 替换为你的Oracle用户名
username
:
mes
# 替换为你的Oracle用户名
password
:
root_mes123456
# 替换为你的Oracle密码
password
:
root_mes123456
# 替换为你的Oracle密码
# sqlserver:
# sqlserver:
...
...
src/test/java/com/aps/demo/PlanResultServiceTest.java
View file @
a27d4795
...
@@ -42,7 +42,7 @@ public class PlanResultServiceTest {
...
@@ -42,7 +42,7 @@ public class PlanResultServiceTest {
// planResultService.execute2("5475E00B844847ACB6DC20227967BA2F");
// planResultService.execute2("5475E00B844847ACB6DC20227967BA2F");
// planResultService.execute2("00E0C5D3E4AD4F36B56C39395906618D");
// planResultService.execute2("00E0C5D3E4AD4F36B56C39395906618D");
// planResultService.execute2("726D4C1A712B4B1393175BD44B775B66
");
planResultService
.
execute2
(
"31F0FF4DFAD844BD9C72EDEEF3430A1F
"
);
// planResultService.execute2("265F24B6DF3C40E4B17D193B0CC8AAF2");
// planResultService.execute2("265F24B6DF3C40E4B17D193B0CC8AAF2");
// LocalDateTime t= LocalDateTime.of(2026, 02, 14, 1, 25, 52);
// LocalDateTime t= LocalDateTime.of(2026, 02, 14, 1, 25, 52);
// List<Integer> opids=new ArrayList<>();//BCA6FA43FFA444D3952CF8F6E1EA291B
// List<Integer> opids=new ArrayList<>();//BCA6FA43FFA444D3952CF8F6E1EA291B
...
@@ -51,10 +51,10 @@ public class PlanResultServiceTest {
...
@@ -51,10 +51,10 @@ public class PlanResultServiceTest {
// planResultService.Redecode("27065EA0ECD14A81B7FAAFEF52273F93");
// planResultService.Redecode("27065EA0ECD14A81B7FAAFEF52273F93");
// planResultService.Redecode("921BC266191E4812A105E406BF91E812");
// planResultService.Redecode("921BC266191E4812A105E406BF91E812");
// planResultService.Drag("27065EA0ECD14A81B7FAAFEF52273F93",opids,6,false,0l);
// planResultService.Drag("27065EA0ECD14A81B7FAAFEF52273F93",opids,6,false,0l);
MaintenanceWindow
maintenanceWindow
=
new
MaintenanceWindow
();
//
MaintenanceWindow maintenanceWindow=new MaintenanceWindow();
maintenanceWindow
.
setStartTime
(
LocalDateTime
.
of
(
2026
,
9
,
13
,
0
,
0
,
0
));
//
maintenanceWindow.setStartTime(LocalDateTime.of(2026, 9, 13, 0, 0, 0));
maintenanceWindow
.
setEndTime
(
LocalDateTime
.
of
(
2025
,
9
,
19
,
0
,
0
,
0
));
//
maintenanceWindow.setEndTime(LocalDateTime.of(2025, 9, 19, 0, 0, 0));
planResultService
.
AddMaintenanceWindow
(
"5475E00B844847ACB6DC20227967BA2F"
,
2488
l
,
maintenanceWindow
);
//
planResultService.AddMaintenanceWindow("5475E00B844847ACB6DC20227967BA2F",2488l,maintenanceWindow);
// // planResultService.DelOperation("B6AE363FF5044DDF8DECE32D5FE0F7EA",7);
// // planResultService.DelOperation("B6AE363FF5044DDF8DECE32D5FE0F7EA",7);
// planResultService.SpiltOrder("A41D662EE0764D008173C5A0E42B15F6","5f9d5383-b89a-4a4f-8805-2f617c711968",new Double[]{500d, 500d});
// planResultService.SpiltOrder("A41D662EE0764D008173C5A0E42B15F6","5f9d5383-b89a-4a4f-8805-2f617c711968",new Double[]{500d, 500d});
...
...
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