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
657b7b90
Commit
657b7b90
authored
Jan 07, 2026
by
Tong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优先级
parent
4562cda0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
PlanResultService.java
src/main/java/com/aps/service/plan/PlanResultService.java
+3
-3
PlanResultServiceTest.java
src/test/java/com/aps/demo/PlanResultServiceTest.java
+3
-1
No files found.
src/main/java/com/aps/service/plan/PlanResultService.java
View file @
657b7b90
...
@@ -918,7 +918,7 @@ private GlobalParam InitGlobalParam()
...
@@ -918,7 +918,7 @@ private GlobalParam InitGlobalParam()
// 按照优先级排序
// 按照优先级排序
orders
.
sort
(
orders
.
sort
(
Comparator
.
comparing
(
Order:
:
getActualPriority
)
.
reversed
()
Comparator
.
comparing
(
Order:
:
getActualPriority
)
);
);
return
orders
;
return
orders
;
...
@@ -1029,7 +1029,7 @@ private GlobalParam InitGlobalParam()
...
@@ -1029,7 +1029,7 @@ private GlobalParam InitGlobalParam()
OrderSortRule
.
SortCondition
condition3
=
new
OrderSortRule
.
SortCondition
();
OrderSortRule
.
SortCondition
condition3
=
new
OrderSortRule
.
SortCondition
();
condition3
.
setSequence
(
1
);
condition3
.
setSequence
(
1
);
condition3
.
setFieldName
(
"priority"
);
condition3
.
setFieldName
(
"priority"
);
condition3
.
setReverse
(
true
);
// 高优先级在前
condition3
.
setReverse
(
false
);
// 优先级越小越越先
conditions
.
add
(
condition3
);
conditions
.
add
(
condition3
);
}
}
...
@@ -1037,7 +1037,7 @@ private GlobalParam InitGlobalParam()
...
@@ -1037,7 +1037,7 @@ private GlobalParam InitGlobalParam()
OrderSortRule
.
SortCondition
condition3
=
new
OrderSortRule
.
SortCondition
();
OrderSortRule
.
SortCondition
condition3
=
new
OrderSortRule
.
SortCondition
();
condition3
.
setSequence
(
1
);
condition3
.
setSequence
(
1
);
condition3
.
setFieldName
(
"priority"
);
condition3
.
setFieldName
(
"priority"
);
condition3
.
setReverse
(
true
);
// 高优先级在前
condition3
.
setReverse
(
false
);
// 优先级越小越越先
conditions
.
add
(
condition3
);
conditions
.
add
(
condition3
);
}
}
...
...
src/test/java/com/aps/demo/PlanResultServiceTest.java
View file @
657b7b90
...
@@ -36,7 +36,9 @@ public class PlanResultServiceTest {
...
@@ -36,7 +36,9 @@ public class PlanResultServiceTest {
// NSGAIIUtils nsgaiiUtils=new NSGAIIUtils();
// NSGAIIUtils nsgaiiUtils=new NSGAIIUtils();
// nsgaiiUtils.Test();
// nsgaiiUtils.Test();
planResultService
.
execute2
(
"31EC5BAF7F6B41DFB79AB031D81C53C0"
);
// planResultService.execute2("31EC5BAF7F6B41DFB79AB031D81C53C0");
planResultService
.
execute2
(
"4072BCD6A43B468F96489211AD041A26"
);
// LocalDateTime t= LocalDateTime.of(2025, 11, 15, 6, 51, 11);
// LocalDateTime t= LocalDateTime.of(2025, 11, 15, 6, 51, 11);
// List<Integer> opids=new ArrayList<>();
// List<Integer> opids=new ArrayList<>();
// opids.add(1);
// opids.add(1);
...
...
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