Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
2005d359
Commit
2005d359
authored
Jan 07, 2025
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据省份获取区域公司接口
parent
03afed11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+25
-0
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 @
2005d359
...
@@ -444,6 +444,31 @@ public class JpStationController extends BaseController {
...
@@ -444,6 +444,31 @@ public class JpStationController extends BaseController {
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人权限区域公司"
,
notes
=
"查询当前登录人权限区域公司"
)
@GetMapping
(
value
=
"/getRegionCompanyByProvince"
)
@UserLimits
public
ResponseModel
<
List
<
Map
<
String
,
String
>>>
getRegionCompanyByProvince
(
String
province
)
{
List
<
DropDown
>
list
=
new
ArrayList
<>();
if
(
StringUtils
.
isEmpty
(
province
)){
list
=
jpStationMapper
.
getRegion
(
null
,
null
);
}
else
{
List
<
String
>
ids
=
jpStationMapper
.
getRegionNode
(
province
);
list
=
jpStationMapper
.
getRegionByProvince
(
ids
);
}
List
<
Map
<
String
,
String
>>
result
=
new
ArrayList
<>();
list
.
forEach
(
dropDown
->
{
Map
<
String
,
String
>
item
=
new
HashMap
<>();
item
.
put
(
"text"
,
dropDown
.
getName
());
item
.
put
(
"value"
,
dropDown
.
getOrgCode
());
result
.
add
(
item
);
});
return
ResponseHelper
.
buildResponse
(
result
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人权限区域公司省份地址"
,
notes
=
"查询当前登录人权限区域公司省份地址"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人权限区域公司省份地址"
,
notes
=
"查询当前登录人权限区域公司省份地址"
)
@GetMapping
(
value
=
"/getRegionAddress"
)
@GetMapping
(
value
=
"/getRegionAddress"
)
...
...
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