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
0c95606f
Commit
0c95606f
authored
Jan 18, 2025
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日产能报表导出
parent
e191dd30
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
157 additions
and
46 deletions
+157
-46
DailyProductionReportController.java
...es/report/controller/DailyProductionReportController.java
+52
-0
DailyProductionReportServiceImp.java
.../report/service/impl/DailyProductionReportServiceImp.java
+105
-46
No files found.
mes/src/main/java/com/ximai/mes/report/controller/DailyProductionReportController.java
View file @
0c95606f
...
@@ -75,6 +75,17 @@ public class DailyProductionReportController extends BaseController {
...
@@ -75,6 +75,17 @@ public class DailyProductionReportController extends BaseController {
return
AjaxResult
.
success
(
data
);
return
AjaxResult
.
success
(
data
);
}
}
/**
* 日产能对比统计:统计方式车间导出
*/
@PreAuthorize
(
"@ss.hasPermi('pro:materialReturn:export')"
)
@Log
(
title
=
"日产能对比统计:统计方式车间导出"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/getListByWorkshop/export"
)
public
void
getListByWorkshopExport
(
HttpServletResponse
response
,
DailyProductionReportRequest
dailyProductionReportRequest
)
{
List
data
=
dailyProductionReportService
.
getListByWorkshop
(
dailyProductionReportRequest
);
dailyProductionReportService
.
export
(
response
,
data
,
"日产能对比统计-统计方式车间导出"
,
"车间名称"
,
"车间编码"
,
"车间"
,
dailyProductionReportRequest
);
}
@ApiOperation
(
"日产能对比统计:统计方式工作中心"
)
@ApiOperation
(
"日产能对比统计:统计方式工作中心"
)
@PreAuthorize
(
"@ss.hasPermi('mes:pro:dailyProductionReport:get')"
)
@PreAuthorize
(
"@ss.hasPermi('mes:pro:dailyProductionReport:get')"
)
...
@@ -84,6 +95,21 @@ public class DailyProductionReportController extends BaseController {
...
@@ -84,6 +95,21 @@ public class DailyProductionReportController extends BaseController {
List
data
=
dailyProductionReportService
.
getListByWorkstation
(
dailyProductionReportRequest
);
List
data
=
dailyProductionReportService
.
getListByWorkstation
(
dailyProductionReportRequest
);
return
AjaxResult
.
success
(
data
);
return
AjaxResult
.
success
(
data
);
}
}
/**
* 日产能对比统计:统计方式工作中心导出
*/
@PreAuthorize
(
"@ss.hasPermi('pro:materialReturn:export')"
)
@Log
(
title
=
"日产能对比统计:统计方式工作中心导出"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/getListByWorkstation/export"
)
public
void
getListByWorkstationExport
(
HttpServletResponse
response
,
DailyProductionReportRequest
dailyProductionReportRequest
)
{
List
data
=
dailyProductionReportService
.
getListByWorkstation
(
dailyProductionReportRequest
);
dailyProductionReportService
.
export
(
response
,
data
,
"日产能对比统计-统计方式工作中心导出"
,
"工作中心名称"
,
"工作中心编码"
,
"工作中心"
,
dailyProductionReportRequest
);
}
@ApiOperation
(
"日产能对比统计:统计方式工作单元"
)
@ApiOperation
(
"日产能对比统计:统计方式工作单元"
)
@PreAuthorize
(
"@ss.hasPermi('mes:pro:dailyProductionReport:get')"
)
@PreAuthorize
(
"@ss.hasPermi('mes:pro:dailyProductionReport:get')"
)
@Log
(
title
=
"日产能对比统计:统计方式工作单元"
,
businessType
=
BusinessType
.
QUERY
)
@Log
(
title
=
"日产能对比统计:统计方式工作单元"
,
businessType
=
BusinessType
.
QUERY
)
...
@@ -93,6 +119,21 @@ public class DailyProductionReportController extends BaseController {
...
@@ -93,6 +119,21 @@ public class DailyProductionReportController extends BaseController {
return
AjaxResult
.
success
(
data
);
return
AjaxResult
.
success
(
data
);
}
}
/**
* 日产能对比统计:统计方式工作中心导出
*/
@PreAuthorize
(
"@ss.hasPermi('pro:materialReturn:export')"
)
@Log
(
title
=
"日产能对比统计:统计方式工作单元导出"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/getListByWorkunit/export"
)
public
void
getListByWorkunitExport
(
HttpServletResponse
response
,
DailyProductionReportRequest
dailyProductionReportRequest
)
{
List
data
=
dailyProductionReportService
.
getListByWorkunit
(
dailyProductionReportRequest
);
dailyProductionReportService
.
export
(
response
,
data
,
"日产能对比统计-统计方式工作单元导出"
,
"工作单元名称"
,
"工作单元编码"
,
"工作单元"
,
dailyProductionReportRequest
);
}
@ApiOperation
(
"日产能对比统计:统计方式报工人员"
)
@ApiOperation
(
"日产能对比统计:统计方式报工人员"
)
@PreAuthorize
(
"@ss.hasPermi('mes:pro:dailyProductionReport:get')"
)
@PreAuthorize
(
"@ss.hasPermi('mes:pro:dailyProductionReport:get')"
)
@Log
(
title
=
"日产能对比统计:统计方式报工人员"
,
businessType
=
BusinessType
.
QUERY
)
@Log
(
title
=
"日产能对比统计:统计方式报工人员"
,
businessType
=
BusinessType
.
QUERY
)
...
@@ -102,4 +143,15 @@ public class DailyProductionReportController extends BaseController {
...
@@ -102,4 +143,15 @@ public class DailyProductionReportController extends BaseController {
return
AjaxResult
.
success
(
data
);
return
AjaxResult
.
success
(
data
);
}
}
/**
* 日产能对比统计:统计方式工作中心导出
*/
@PreAuthorize
(
"@ss.hasPermi('pro:materialReturn:export')"
)
@Log
(
title
=
"日产能对比统计:统计方式工作单元导出"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/getListByUser/export"
)
public
void
getListByUserExport
(
HttpServletResponse
response
,
DailyProductionReportRequest
dailyProductionReportRequest
)
{
List
data
=
dailyProductionReportService
.
getListByUser
(
dailyProductionReportRequest
);
dailyProductionReportService
.
export
(
response
,
data
,
"日产能对比统计-统计方式工作单元导出"
,
"报工人员名称"
,
"报工人员编码"
,
"报工人员"
,
dailyProductionReportRequest
);
}
}
}
mes/src/main/java/com/ximai/mes/report/service/impl/DailyProductionReportServiceImp.java
View file @
0c95606f
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