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
bdb0cf2b
Commit
bdb0cf2b
authored
Dec 18, 2025
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jdt'
parents
c66c0216
92089e30
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
11 deletions
+30
-11
SwaggerMapParamConfig.java
src/main/java/com/aps/config/SwaggerMapParamConfig.java
+25
-9
ResourceGanttController.java
...ava/com/aps/controller/gantt/ResourceGanttController.java
+1
-1
PlanResultServiceTest.java
src/test/java/com/aps/demo/PlanResultServiceTest.java
+4
-1
No files found.
src/main/java/com/aps/config/SwaggerMapParamConfig.java
View file @
bdb0cf2b
...
...
@@ -234,7 +234,7 @@ public class SwaggerMapParamConfig {
properties
.
put
(
"sourceorderid"
,
new
StringSchema
().
description
(
"源订单ID"
).
example
(
"5be078b725b34ade8b6638f74dad6b10"
));
properties
.
put
(
"targetorderid"
,
new
StringSchema
().
description
(
"目标订单ID"
).
example
(
"2a0f23d2429f4e5da7b3929da75a803d"
));
examples
.
put
(
"合并订单示例"
,
createExample
(
"
将源订单合并到目标
订单"
,
"
按指定数量拆分
订单"
,
"{\n"
+
" \"sceneId\": \"B571EF6682DB463AB2977B1055A74112\",\n"
+
" \"sourceorderid\": \"5be078b725b34ade8b6638f74dad6b10\",\n"
+
...
...
@@ -242,6 +242,20 @@ public class SwaggerMapParamConfig {
"}"
));
break
;
case
"copyOrder"
:
properties
.
put
(
"sceneId"
,
new
StringSchema
().
description
(
"场景ID"
).
example
(
"B571EF6682DB463AB2977B1055A74112"
));
properties
.
put
(
"orderId"
,
new
StringSchema
().
description
(
"订单ID"
).
example
(
"fcc0892a-0483-4da7-8414-9ce98be36e53"
));
properties
.
put
(
"copyCount"
,
new
StringSchema
().
description
(
"复制数量"
).
example
(
2
));
examples
.
put
(
"订单复制示例"
,
createExample
(
"复制指定订单指定数量"
,
"{\n"
+
" \"sceneId\": \"B571EF6682DB463AB2977B1055A74112\",\n"
+
" \"orderId\": \"fcc0892a-0483-4da7-8414-9ce98be36e53\",\n"
+
" \"copyCount\": 2\n"
+
"}"
));
break
;
}
if
(!
properties
.
isEmpty
())
{
...
...
@@ -301,6 +315,8 @@ public class SwaggerMapParamConfig {
return
"拆分订单请求参数"
;
case
"orderMerge"
:
return
"合并订单请求参数"
;
case
"copyOrder"
:
return
"订单复制请求参数"
;
default
:
return
"请求参数"
;
}
...
...
src/main/java/com/aps/controller/gantt/ResourceGanttController.java
View file @
bdb0cf2b
...
...
@@ -761,7 +761,7 @@ public class ResourceGanttController {
throw
new
RuntimeException
(
"未找到对应的场景文件"
);
}
List
<
Machine
>
machineList
=
planResultService
.
InitCalendarToAllMachines1
(
sc
hedule
.
getScenarioID
()
);
List
<
Machine
>
machineList
=
planResultService
.
InitCalendarToAllMachines1
(
sc
eneId
);
// 转换为 ResourceGanttVO 格式
List
<
ResourceGanttVO
>
resourceGanttVOList
=
new
ArrayList
<>();
...
...
src/test/java/com/aps/demo/PlanResultServiceTest.java
View file @
bdb0cf2b
...
...
@@ -35,7 +35,7 @@ public class PlanResultServiceTest {
public
void
testExecute2
()
{
// 这里需要一个有效的SceneId来测试
// 在实际测试中,您需要提供一个数据库中存在的SceneId
String
sceneId
=
"2B
AB2BF160BE447EA6673DABACEF05D2
"
;
String
sceneId
=
"2B
D38C14EDAD4CBFB8C9671CD45437A6
"
;
try
{
// Chromosome result = planResultService.execute2(sceneId);
...
...
@@ -56,6 +56,9 @@ public class PlanResultServiceTest {
//
//planResultService.SpiltOrder(sceneId,"2f24e563-1337-422b-a0ba-92da7e8c6584",splitCounts.toArray(new Double[0]));
planResultService
.
schedule
(
sceneId
);
Chromosome
schedule
=
sceneService
.
loadChromosomeFromFile
(
sceneId
);
// 转换为 ProductGanttVO 格式
...
...
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