Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
Project
Project
Details
Activity
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
ximai
mes
Commits
e5a72c6c
Commit
e5a72c6c
authored
Nov 06, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
看板测试数据接口添加
parent
da025101
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
KanbanAbnormalController.java
...ximai/mes/kanban/controller/KanbanAbnormalController.java
+10
-2
KanbanTaskController.java
...com/ximai/mes/kanban/controller/KanbanTaskController.java
+3
-2
No files found.
mes/src/main/java/com/ximai/mes/kanban/controller/KanbanAbnormalController.java
View file @
e5a72c6c
...
...
@@ -2,9 +2,13 @@ package com.ximai.mes.kanban.controller;
import
cn.hutool.core.collection.ListUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.ximai.common.core.domain.AjaxResult
;
import
com.ximai.mes.kanban.dto.abnormal.AbnormalMonthStatDto
;
import
com.ximai.mes.kanban.service.KanbanAbnormalService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.checkerframework.checker.units.qual.A
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -17,9 +21,12 @@ import java.util.List;
@RequestMapping
(
"/kanban/abnormal"
)
public
class
KanbanAbnormalController
{
@Autowired
KanbanAbnormalService
kanbanAbnormalService
;
@ApiOperation
(
"当月异常分布数据"
)
@PostMapping
(
"/currentMonthStat"
)
public
A
bnormalMonthStatDto
currentMonthStat
()
{
public
A
jaxResult
<
AbnormalMonthStatDto
>
currentMonthStat
()
{
AbnormalMonthStatDto
rst
=
new
AbnormalMonthStatDto
();
AbnormalMonthStatDto
.
AbnormalMonthStatDetail
abnormal1
=
new
AbnormalMonthStatDto
.
AbnormalMonthStatDetail
();
abnormal1
.
setTotalCt
(
10
);
...
...
@@ -54,7 +61,8 @@ public class KanbanAbnormalController {
});
rst
.
setAbnormalCauseData
(
abnormalCauseStats
);
rst
.
setEquipErrorArr
(
ListUtil
.
toList
(
new
Integer
[]{
0
,
0
,
0
,
2
,
2
,
0
,
0
}));
return
rst
;
return
AjaxResult
.
success
(
rst
);
}
...
...
mes/src/main/java/com/ximai/mes/kanban/controller/KanbanTaskController.java
View file @
e5a72c6c
package
com
.
ximai
.
mes
.
kanban
.
controller
;
import
com.ximai.common.core.domain.AjaxResult
;
import
com.ximai.mes.kanban.dto.task.TaskStatDto
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -19,7 +20,7 @@ public class KanbanTaskController {
@ApiOperation
(
"工序当月统计"
)
@PostMapping
(
"/currentMonthStat"
)
public
TaskStatDto
currentMonthStat
()
{
public
AjaxResult
<
TaskStatDto
>
currentMonthStat
()
{
TaskStatDto
rst
=
new
TaskStatDto
();
List
<
TaskStatDto
.
ProcessOutput
>
outputList
=
new
ArrayList
<>();
outputList
.
add
(
new
TaskStatDto
.
ProcessOutput
(){
...
...
@@ -101,7 +102,7 @@ public class KanbanTaskController {
processMonthlyIndexDto
.
setQualifiedRatio
(
new
BigDecimal
(
"95"
));
processMonthlyIndexDto
.
setMonthPlanConcludeRatio
(
new
BigDecimal
(
"35"
));
rst
.
setProcessMonthlyIndexDto
(
processMonthlyIndexDto
);
return
rst
;
return
AjaxResult
.
success
(
rst
)
;
}
}
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