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
5e93b9e2
Commit
5e93b9e2
authored
Apr 09, 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
80e95535
5de3db57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
TUserServiceImpl.java
...energy/chnmuseum/party/service/impl/TUserServiceImpl.java
+3
-1
TBoxOperationMapper.xml
src/main/resources/mapper/TBoxOperationMapper.xml
+3
-3
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/TUserServiceImpl.java
View file @
5e93b9e2
...
...
@@ -74,8 +74,10 @@ public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements
TUser
user
=
tUserMapper
.
getById
(
id
);
if
(
user
.
getAreaId
()
!=
null
)
{
String
s
=
areaMapper
.
selectParent
(
user
.
getAreaId
());
if
(
s
!=
null
)
{
user
.
setAreas
(
Arrays
.
asList
(
s
.
split
(
","
)));
}
}
return
user
;
}
...
...
src/main/resources/mapper/TBoxOperationMapper.xml
View file @
5e93b9e2
...
...
@@ -23,9 +23,9 @@
</sql>
<select
id=
"getList"
resultMap=
"BaseResultMap"
>
SELECT b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,r.`
name` organ_name
FROM t_box_operation b
left join t_organ r on r.id = b.organ_id
SELECT b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,r.`user_
name` organ_name
FROM t_box_operation b
left join t_user r on r.org_id = b.organ_id and r.type = '3'
where 1=1
<if
test=
"status!= null and status != '' "
>
and b.status =#{status}
...
...
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