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
bf07ccef
Commit
bf07ccef
authored
Jan 27, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
info接口修改,增加订单供给关系接口
parent
5330e8fc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
516 additions
and
94 deletions
+516
-94
ResourceGanttController.java
...ava/com/aps/controller/gantt/ResourceGanttController.java
+26
-0
ChromosomeDataService.java
...in/java/com/aps/service/common/ChromosomeDataService.java
+262
-94
PlanResultService.java
src/main/java/com/aps/service/plan/PlanResultService.java
+228
-0
No files found.
src/main/java/com/aps/controller/gantt/ResourceGanttController.java
View file @
bf07ccef
...
...
@@ -8,6 +8,7 @@ import com.aps.entity.Algorithm.Chromosome;
import
com.aps.entity.basic.ScheduleChromosome
;
import
com.aps.entity.Gantt.ProductGanttVO
;
import
com.aps.entity.Gantt.ResourceGanttVO
;
import
com.aps.entity.Gantt.SupplyRelationResponse
;
import
com.aps.entity.Gantt.TaskVO
;
import
com.aps.entity.basic.*
;
import
com.aps.service.plan.PlanResultService
;
...
...
@@ -875,5 +876,30 @@ public class ResourceGanttController {
return
R
.
ok
(
"工单拖拽排序成功"
);
}
@PostMapping
(
"/supplyRelation"
)
@Operation
(
summary
=
"获取供给关系"
,
description
=
"根据工单工序ID获取其供给关系"
,
requestBody
=
@io
.
swagger
.
v3
.
oas
.
annotations
.
parameters
.
RequestBody
(
description
=
"获取供给关系参数"
,
content
=
@io
.
swagger
.
v3
.
oas
.
annotations
.
media
.
Content
(
mediaType
=
"application/json"
,
examples
=
@io
.
swagger
.
v3
.
oas
.
annotations
.
media
.
ExampleObject
(
name
=
"获取供给关系示例"
,
value
=
"{\n \"sceneId\": \"B571EF6682DB463AB2977B1055A74112\",\n \"entryId\": 472\n}"
)
)
)
)
public
R
<
SupplyRelationResponse
>
getSupplyRelation
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
log
.
info
(
"getSupplyRelation 请求参数: {}"
,
params
);
// 提取参数
String
sceneId
=
ParamValidator
.
getString
(
params
,
"sceneId"
,
"场景ID"
);
Integer
entryId
=
ParamValidator
.
getInteger
(
params
,
"entryId"
,
"工序ID"
);
ParamValidator
.
validateSceneExists
(
sceneService
,
sceneId
);
// 调用服务获取供给关系
List
<
Object
>
data
=
planResultService
.
getSupplyRelation
(
sceneId
,
entryId
,
sceneService
);
return
R
.
ok
(
SupplyRelationResponse
.
success
(
data
));
}
}
\ No newline at end of file
src/main/java/com/aps/service/common/ChromosomeDataService.java
View file @
bf07ccef
This diff is collapsed.
Click to expand it.
src/main/java/com/aps/service/plan/PlanResultService.java
View file @
bf07ccef
This diff is collapsed.
Click to expand it.
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