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
79976dad
Commit
79976dad
authored
Nov 16, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改获取区域公司与经销商的接口返回。
parent
b08c6e09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+18
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
79976dad
...
...
@@ -364,11 +364,18 @@ public class JpStationController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人权限区域公司"
,
notes
=
"查询当前登录人权限区域公司"
)
@GetMapping
(
value
=
"/getRegion"
)
@UserLimits
public
ResponseModel
<
List
<
DropDown
>>
getRegion
()
{
public
ResponseModel
<
List
<
Map
<
String
,
String
>
>>
getRegion
()
{
List
<
DropDown
>
list
=
jpStationMapper
.
getRegion
();
List
<
Map
<
String
,
String
>>
result
=
new
ArrayList
<>();
list
.
forEach
(
dropDown
->
{
Map
<
String
,
String
>
item
=
new
HashMap
<>();
item
.
put
(
"name"
,
dropDown
.
getName
());
item
.
put
(
"value"
,
dropDown
.
getOrgCode
());
result
.
add
(
item
);
});
return
ResponseHelper
.
buildResponse
(
lis
t
);
return
ResponseHelper
.
buildResponse
(
resul
t
);
}
...
...
@@ -377,9 +384,16 @@ public class JpStationController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人权限经销商"
,
notes
=
"查询当前登录人权限经销商"
)
@GetMapping
(
value
=
"/getDealer"
)
@UserLimits
public
ResponseModel
<
List
<
DropDown
>>
getDealer
(
String
regionalCompaniesCode
)
{
public
ResponseModel
<
List
<
Map
<
String
,
String
>
>>
getDealer
(
String
regionalCompaniesCode
)
{
List
<
DropDown
>
list
=
jpStationMapper
.
getDealer
(
regionalCompaniesCode
);
return
ResponseHelper
.
buildResponse
(
list
);
List
<
Map
<
String
,
String
>>
result
=
new
ArrayList
<>();
list
.
forEach
(
dropDown
->
{
Map
<
String
,
String
>
item
=
new
HashMap
<>();
item
.
put
(
"name"
,
dropDown
.
getName
());
item
.
put
(
"value"
,
dropDown
.
getOrgCode
());
result
.
add
(
item
);
});
return
ResponseHelper
.
buildResponse
(
result
);
}
//电站发电量统计
...
...
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