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
ccd683c2
Commit
ccd683c2
authored
Jun 17, 2026
by
Tong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
倒排配套
parent
da524907
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
183 additions
and
25 deletions
+183
-25
GAScheduleResult.java
src/main/java/com/aps/entity/Algorithm/GAScheduleResult.java
+1
-0
GeneticDecoder.java
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
+181
-24
PlanResultService.java
src/main/java/com/aps/service/plan/PlanResultService.java
+1
-1
No files found.
src/main/java/com/aps/entity/Algorithm/GAScheduleResult.java
View file @
ccd683c2
...
@@ -38,6 +38,7 @@ public class GAScheduleResult {
...
@@ -38,6 +38,7 @@ public class GAScheduleResult {
private
int
lockStartTime
=
0
;
// 是否固定开始时间(默认-1)
private
int
lockStartTime
=
0
;
// 是否固定开始时间(默认-1)
private
Long
forcedMachineId
=-
1L
;
// 强制分配的设备ID(-1表示无强制)
private
Long
forcedMachineId
=-
1L
;
// 强制分配的设备ID(-1表示无强制)
private
boolean
IsLocked
=
false
;
private
boolean
IsLocked
=
false
;
private
boolean
IsJit
=
false
;
private
double
OneTime
;
// 单件工时
private
double
OneTime
;
// 单件工时
private
double
ProcessingTime
;
// 绝对处理时间(分钟)
private
double
ProcessingTime
;
// 绝对处理时间(分钟)
private
int
changeOverTime
;
private
int
changeOverTime
;
...
...
src/main/java/com/aps/service/Algorithm/GeneticDecoder.java
View file @
ccd683c2
This diff is collapsed.
Click to expand it.
src/main/java/com/aps/service/plan/PlanResultService.java
View file @
ccd683c2
...
@@ -190,7 +190,7 @@ public class PlanResultService {
...
@@ -190,7 +190,7 @@ public class PlanResultService {
try
{
try
{
ScheduleParams
param
=
InitScheduleParams
();
ScheduleParams
param
=
InitScheduleParams
();
//
param.setBaseTime(LocalDateTime.of(2026, 5, 20, 0, 0, 0));
param
.
setBaseTime
(
LocalDateTime
.
of
(
2026
,
5
,
20
,
0
,
0
,
0
));
this
.
baseTime
=
param
.
getBaseTime
();
this
.
baseTime
=
param
.
getBaseTime
();
// 策略读取入口:优先使用前端传入的 userId;没传时用 sceneId 查场景创建人。
// 策略读取入口:优先使用前端传入的 userId;没传时用 sceneId 查场景创建人。
Long
effectiveUserId
=
scheduleStrategyService
.
resolveScheduleUserId
(
SceneId
,
userId
);
Long
effectiveUserId
=
scheduleStrategyService
.
resolveScheduleUserId
(
SceneId
,
userId
);
...
...
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