Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
f85988c5
Commit
f85988c5
authored
Apr 13, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/lee/chnmuseum-party
into master
parents
1e72d475
62a4f0c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
54 deletions
+63
-54
TBoxOperationController.java
...nmuseum/party/web/controller/TBoxOperationController.java
+16
-6
TUserController.java
...nergy/chnmuseum/party/web/controller/TUserController.java
+47
-48
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TBoxOperationController.java
View file @
f85988c5
...
...
@@ -77,7 +77,9 @@ public class TBoxOperationController extends BaseController {
// String areaId1 = getAreaId(user1.getAreaId());
// user.setAreaName(areaId1);
// }
user
.
setOrgCode
(
user1
.
getOrgCode
());
if
(!
user1
.
getRoleList
().
contains
(
"1"
))
{
user
.
setOrgCode
(
user1
.
getOrgCode
());
}
try
{
Page
<
TBoxOperation
>
page
=
tBoxOperationService
.
selectBoxPage
(
getPage
(),
user
);
return
getResult
(
page
);
...
...
@@ -197,10 +199,16 @@ public class TBoxOperationController extends BaseController {
public
Map
<
String
,
Object
>
getTBoxOperationList
(
String
status
)
{
List
<
TBoxOperation
>
tBoxOperationList
=
null
;
TUser
user
=
getcurUser
();
//设置数据权限
String
areaId
=
user
.
getAreaId
();
try
{
tBoxOperationList
=
tBoxOperationService
.
getList
(
status
,
getAreaId
(
areaId
));
if
(!
user
.
getRoleList
().
contains
(
"1"
))
{
//设置数据权限
String
areaId
=
user
.
getAreaId
();
tBoxOperationList
=
tBoxOperationService
.
getList
(
status
,
getAreaId
(
areaId
));
}
else
{
tBoxOperationList
=
tBoxOperationService
.
getList
(
status
,
null
);
}
return
getResult
(
tBoxOperationList
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
@@ -232,8 +240,10 @@ public class TBoxOperationController extends BaseController {
tBoxOperation
.
setAreaId
(
areaId
);
}
if
(
StringUtils
.
isNotBlank
(
user
.
getAreaId
()))
{
//设置数据权限
tBoxOperation
.
setAreaName
(
getAreaId
(
user
.
getAreaId
()));
if
(!
user
.
getRoleList
().
contains
(
"1"
))
{
//设置数据权限
tBoxOperation
.
setAreaName
(
getAreaId
(
user
.
getAreaId
()));
}
}
Page
<
TBoxOperation
>
page
=
null
;
try
{
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TUserController.java
View file @
f85988c5
This diff is collapsed.
Click to expand it.
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