Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
f5ee152b
Commit
f5ee152b
authored
Sep 05, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-fix' into release
parents
655acdc5
a256dfb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
AppRegionController.java
...module/ecw/controller/app/region/AppRegionController.java
+6
-7
No files found.
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/controller/app/region/AppRegionController.java
View file @
f5ee152b
...
...
@@ -40,7 +40,6 @@ public class AppRegionController {
@GetMapping
(
"/get"
)
@ApiOperation
(
"获得区域设置"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@PreAuthorize
(
"@ss.hasPermission('ecw:region:query')"
)
public
CommonResult
<
RegionRespVO
>
getRegion
(
@RequestParam
(
"id"
)
Long
id
)
{
RegionDO
region
=
regionService
.
getRegion
(
id
);
return
success
(
RegionConvert
.
INSTANCE
.
convert
(
region
));
...
...
@@ -50,7 +49,7 @@ public class AppRegionController {
@GetMapping
(
"/list"
)
@ApiOperation
(
"获得区域设置列表"
)
@PreAuthenticated
//
@PreAuthenticated
public
CommonResult
<
List
<
RegionRespVO
>>
getRegionList
(
RegionListReqVO
reqVO
)
{
List
<
RegionDO
>
list
=
regionService
.
getSimpleDepts
(
reqVO
);
list
.
sort
(
Comparator
.
comparing
(
RegionDO:
:
getSort
));
...
...
@@ -59,7 +58,7 @@ public class AppRegionController {
@GetMapping
(
"/page"
)
@ApiOperation
(
"获得区域设置分页"
)
@PreAuthenticated
//
@PreAuthenticated
public
CommonResult
<
PageResult
<
RegionRespVO
>>
getRegionPage
(
@Valid
RegionPageReqVO
pageVO
)
{
PageResult
<
RegionDO
>
pageResult
=
regionService
.
getRegionPage
(
pageVO
);
return
success
(
RegionConvert
.
INSTANCE
.
convertPage
(
pageResult
));
...
...
@@ -68,7 +67,7 @@ public class AppRegionController {
@GetMapping
(
"/getTree"
)
@ApiOperation
(
"获得区域子列表"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@PreAuthenticated
//
@PreAuthenticated
public
CommonResult
<
RegionRespVO
>
getTree
(
@RequestParam
(
"id"
)
Long
id
)
{
List
<
RegionDO
>
list
=
regionService
.
getByParent
(
id
);
List
<
RegionRespVO
>
dataList
=
RegionConvert
.
INSTANCE
.
convertList
(
list
);
...
...
@@ -83,7 +82,7 @@ public class AppRegionController {
@GetMapping
(
"/getListTree"
)
@ApiOperation
(
"获得区域设置列表"
)
@PreAuthenticated
//
@PreAuthenticated
public
CommonResult
<
List
<
RegionRespVO
>>
listTree
(
RegionListReqVO
reqVO
)
{
List
<
RegionDO
>
list
=
regionService
.
getSimpleDepts
(
reqVO
);
list
.
sort
(
Comparator
.
comparing
(
RegionDO:
:
getSort
));
...
...
@@ -108,7 +107,7 @@ public class AppRegionController {
@GetMapping
(
"/getCityList"
)
@ApiOperation
(
"获得区域城市列表"
)
@PreAuthenticated
//
@PreAuthenticated
public
CommonResult
<
List
<
RegionRespVO
>>
getCityList
()
{
List
<
RegionDO
>
cityList
=
regionService
.
getCityList
();
return
success
(
RegionConvert
.
INSTANCE
.
convertList
(
cityList
));
...
...
@@ -116,7 +115,7 @@ public class AppRegionController {
@GetMapping
(
"/getTradeCityList"
)
@ApiOperation
(
"获得始发、目的城市列表"
)
@PreAuthenticated
//
@PreAuthenticated
public
CommonResult
<
List
<
RegionRespVO
>>
getTradeCityList
(
TradeRegionListReqVO
reqVO
)
{
if
(
Objects
.
nonNull
(
reqVO
.
getChannelId
())){
// 如果有渠道信息,则查询可出目的地国家下的目的地城市
...
...
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