Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
Project
Project
Details
Activity
Releases
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
yichengstreet
yichengstreet-be
Commits
87c269cb
Commit
87c269cb
authored
Apr 23, 2025
by
luben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3d24ba98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+9
-5
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
87c269cb
...
...
@@ -581,13 +581,13 @@ public class RegionController extends BaseController {
@RequestMapping
(
value
=
"/getWsTreeNode"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
AjaxResult
getWsTreeNode
(
@RequestParam
(
"wgType"
)
String
wgType
,
String
isShow
,
@RequestParam
(
value
=
"isAll"
,
required
=
false
)
String
isAll
)
{
//
SysUser user = SecurityUtils.getLoginUser().getUser();
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
//网格
GridRegionUserExample
example
=
new
GridRegionUserExample
();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
//
criteria.andUserIdEqualTo(user.getUserId());
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
criteria
.
andUserIdEqualTo
(
"1"
);
//
criteria.andUserIdEqualTo("1");
criteria
.
andIsValidEqualTo
(
"1"
);
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
...
...
@@ -974,7 +974,6 @@ public class RegionController extends BaseController {
//需要两个数组,index_now记录当前传入数组的channelId在数据库中的position
//此处为了考虑按照类型分类后产生的不完整排序
int
[]
index_now
=
new
int
[
list
.
size
()];
// System.out.println(Arrays.toString(index_now));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++){
String
channelId
=
list
.
get
(
i
);
...
...
@@ -982,7 +981,6 @@ public class RegionController extends BaseController {
index_now
[
i
]
=
position_now
;
}
Arrays
.
sort
(
index_now
);
// System.out.println(Arrays.toString(index_now));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++){
gridRegionMapper
.
position
(
list
.
get
(
i
),
index_now
[
i
]);
...
...
@@ -991,4 +989,10 @@ public class RegionController extends BaseController {
return
AjaxResult
.
success
();
}
// @RequestMapping(value = "/exchangePosition", method = RequestMethod.GET)
// @ResponseBody
// public AjaxResult exchangePosition(@RequestParam("first") String first,@RequestParam("second") String second) {
// return AjaxResult.success(gridRegionMapper.getFourRegionList(wgCode));
// }
}
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