Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
4f5b90da
Commit
4f5b90da
authored
Apr 12, 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
aed813dc
c67ca9e7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
TUserController.java
...nergy/chnmuseum/party/web/controller/TUserController.java
+6
-6
TBoxOperationMapper.xml
src/main/resources/mapper/TBoxOperationMapper.xml
+2
-1
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TUserController.java
View file @
4f5b90da
...
@@ -733,12 +733,12 @@ public class TUserController extends BaseController {
...
@@ -733,12 +733,12 @@ public class TUserController extends BaseController {
user
.
setType
(
"4"
);
user
.
setType
(
"4"
);
boolean
ret
=
this
.
userService
.
save
(
user
);
boolean
ret
=
this
.
userService
.
save
(
user
);
//
TUserRole
userRole
=
new
TUserRole
();
//
TUserRole userRole = new TUserRole();
userRole
.
setUserId
(
user
.
getId
());
//
userRole.setUserId(user.getId());
userRole
.
setRoleId
(
"4"
);
//
userRole.setRoleId("4");
userRole
.
setIsDeleted
(
false
);
//
userRole.setIsDeleted(false);
tUserRoleService
.
save
(
userRole
);
//
tUserRoleService.save(userRole);
if
(!
ret
)
{
if
(!
ret
)
{
// 新增失败, 500
// 新增失败, 500
...
...
src/main/resources/mapper/TBoxOperationMapper.xml
View file @
4f5b90da
...
@@ -60,9 +60,10 @@
...
@@ -60,9 +60,10 @@
</select>
</select>
<select
id=
"selectPageList"
resultMap=
"BaseResultMap"
>
<select
id=
"selectPageList"
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
SELECT b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,
u.user_name
organ_name
FROM t_box_operation b
FROM t_box_operation b
left join t_organ r on r.id = b.organ_id
left join t_organ r on r.id = b.organ_id
left join t_user u on u.org_id = b.organ_id and u.type = '3'
where 1=1
where 1=1
<if
test=
"tBoxOperation.organId != null and tBoxOperation.organId != '' "
>
<if
test=
"tBoxOperation.organId != null and tBoxOperation.organId != '' "
>
and b.organ_id =#{tBoxOperation.organId}
and b.organ_id =#{tBoxOperation.organId}
...
...
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