Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
2ac69390
Commit
2ac69390
authored
Nov 30, 2022
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改管材统计接口
parent
cdb580f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
MaterialController.java
...os/boot/module/ugp/biz/controller/MaterialController.java
+12
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/MaterialController.java
View file @
2ac69390
...
...
@@ -241,9 +241,19 @@ public class MaterialController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/pipeManufacturer"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"管材厂家统计"
,
notes
=
"管材厂家统计"
)
public
ResponseModel
<
List
<
MaterialCount
>
>
pipeManufacturerStatistics
()
{
public
ResponseModel
<
JSONObject
>
pipeManufacturerStatistics
()
{
List
<
MaterialCount
>
materialCounts
=
materialServiceImpl
.
pipeManufacturerStatistics
(
);
return
ResponseHelper
.
buildResponse
(
materialCounts
);
JSONObject
object
=
new
JSONObject
(
);
JSONArray
axisData
=
new
JSONArray
(
);
JSONArray
seriesData
=
new
JSONArray
(
);
materialCounts
.
forEach
((
m
)->{
axisData
.
add
(
m
.
getManufactureAddr
());
seriesData
.
add
(
m
.
getSum
());
}
);
object
.
put
(
"axisData"
,
axisData
);
object
.
put
(
"seriesData"
,
seriesData
);
return
ResponseHelper
.
buildResponse
(
object
);
}
}
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