Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
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
wangweidong
patzn-cloud-service-hmhj
Commits
e9c79dc3
Commit
e9c79dc3
authored
Jul 22, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分测试问题;
parent
d254ebab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
0 deletions
+92
-0
StatisticsController.java
...ud/service/lims/hmhj/controller/StatisticsController.java
+92
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/StatisticsController.java
0 → 100644
View file @
e9c79dc3
package
com
.
patzn
.
cloud
.
service
.
lims
.
hmhj
.
controller
;
import
com.patzn.cloud.commons.api.RestResult
;
import
com.patzn.cloud.commons.controller.ServiceController
;
import
com.patzn.cloud.service.hmhj.dto.QueryDTO
;
import
com.patzn.cloud.service.hmhj.entity.Statistics
;
import
com.patzn.cloud.service.lims.hmhj.service.IStatisticsService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
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
;
import
java.util.List
;
@Api
(
tags
=
"统计控制器"
)
@RestController
@RequestMapping
(
"/v1/stats"
)
public
class
StatisticsController
extends
ServiceController
{
@Autowired
private
IStatisticsService
statsService
;
@ApiOperation
(
"化验委托量统计"
)
@PostMapping
(
"/entrusted quantity"
)
public
RestResult
<
List
<
Statistics
>>
getEntrustedQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getEntrustedQuantity
(
queryDTO
));
}
@ApiOperation
(
"阳极检查量统计"
)
@PostMapping
(
"/anode_inspection_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getAnodeInspectionQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getAnodeInspectionQuantity
(
queryDTO
));
}
@ApiOperation
(
"报告发放量统计"
)
@PostMapping
(
"/report_send_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getReportSendQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getReportSendQuantity
(
queryDTO
));
}
@ApiOperation
(
"检测项目数量统计"
)
@PostMapping
(
"/item_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getItemQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getItemQuantity
(
queryDTO
));
}
@ApiOperation
(
"取样量统计"
)
@PostMapping
(
"/sampling_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getSamplingQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getSamplingQuantity
(
queryDTO
));
}
@ApiOperation
(
"外检完成量统计"
)
@PostMapping
(
"/out_test_finish_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getOutTestFinishQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getOutTestFinishQuantity
(
queryDTO
));
}
@ApiOperation
(
"外检项目数量统计"
)
@PostMapping
(
"/out_test_item_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getOutTestItemQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getOutTestItemQuantity
(
queryDTO
));
}
@ApiOperation
(
"工作量统计"
)
@PostMapping
(
"/workload_quantity"
)
public
RestResult
<
List
<
Statistics
>>
getWorkloadQuantity
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getWorkloadQuantity
(
queryDTO
));
}
@ApiOperation
(
"本周验收合格情况"
)
@PostMapping
(
"/cur_week_acceptance qualified"
)
public
RestResult
<
List
<
Statistics
>>
getCurWeekAcceptanceQualified
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getCurWeekAcceptanceQualified
(
queryDTO
));
}
@ApiOperation
(
"本周自产炭块质量统计"
)
@PostMapping
(
"/cur_week_carbon blocks"
)
public
RestResult
<
List
<
Statistics
>>
getCurWeekCarbonBlocksStats
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getCurWeekCarbonBlocksStats
(
queryDTO
));
}
@ApiOperation
(
"当日原铝质量统计"
)
@PostMapping
(
"/al_brands_rate"
)
public
RestResult
<
List
<
Statistics
>>
getAlBrandsRate
(
QueryDTO
queryDTO
)
{
return
success
(
statsService
.
getAlBrandsRate
(
queryDTO
));
}
}
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