Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
1326be35
Commit
1326be35
authored
Dec 05, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a85cb364
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
AdminUserService.java
...ain/java/com/egolm/film/api/service/AdminUserService.java
+2
-0
AdminUserServiceImpl.java
...com/egolm/film/api/service/impl/AdminUserServiceImpl.java
+5
-0
AdminUserController.java
...ava/com/egolm/film/api/web/admin/AdminUserController.java
+13
-1
No files found.
src/main/java/com/egolm/film/api/service/AdminUserService.java
View file @
1326be35
...
...
@@ -30,4 +30,6 @@ public interface AdminUserService {
void
deleteUserById
(
Integer
uid
);
void
deleteGroupById
(
Integer
group_id
);
}
src/main/java/com/egolm/film/api/service/impl/AdminUserServiceImpl.java
View file @
1326be35
...
...
@@ -88,4 +88,9 @@ public class AdminUserServiceImpl implements AdminUserService {
jdbcTemplate
.
executeUpdate
(
"delete from fc_user where uid = ?"
,
uid
);
}
@Override
public
void
deleteGroupById
(
Integer
group_id
)
{
jdbcTemplate
.
executeUpdate
(
"delete from fc_user_group where group_id = ?"
,
group_id
);
}
}
src/main/java/com/egolm/film/api/web/admin/AdminUserController.java
View file @
1326be35
...
...
@@ -160,10 +160,22 @@ public class AdminUserController {
@PostMapping
(
"user_delete"
)
@ApiOperation
(
"删除评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
fals
e
,
name
=
"uid"
,
value
=
"评委ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
tru
e
,
name
=
"uid"
,
value
=
"评委ID"
),
})
public
Rjx
deleteUser
(
Integer
uid
)
{
service
.
deleteUserById
(
uid
);
return
Rjx
.
jsonOk
();
}
@ResponseBody
@Transactional
@PostMapping
(
"group_delete"
)
@ApiOperation
(
"删除评委组"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"group_id"
,
value
=
"评委组ID"
),
})
public
Rjx
deleteGroup
(
Integer
group_id
)
{
service
.
deleteGroupById
(
group_id
);
return
Rjx
.
jsonOk
();
}
}
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