Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
4a76a0c0
Commit
4a76a0c0
authored
Dec 05, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
ae2668b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
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
+12
-0
No files found.
src/main/java/com/egolm/film/api/service/AdminUserService.java
View file @
4a76a0c0
...
@@ -28,4 +28,6 @@ public interface AdminUserService {
...
@@ -28,4 +28,6 @@ public interface AdminUserService {
List
<
Fc_user_group_fun
>
queryGroupFunList
(
Integer
group_id
);
List
<
Fc_user_group_fun
>
queryGroupFunList
(
Integer
group_id
);
void
deleteUserById
(
Integer
uid
);
}
}
src/main/java/com/egolm/film/api/service/impl/AdminUserServiceImpl.java
View file @
4a76a0c0
...
@@ -83,4 +83,9 @@ public class AdminUserServiceImpl implements AdminUserService {
...
@@ -83,4 +83,9 @@ public class AdminUserServiceImpl implements AdminUserService {
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_user_group_fun where group_id = ?"
,
Fc_user_group_fun
.
class
,
group_id
);
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_user_group_fun where group_id = ?"
,
Fc_user_group_fun
.
class
,
group_id
);
}
}
@Override
public
void
deleteUserById
(
Integer
uid
)
{
jdbcTemplate
.
executeUpdate
(
"delete from fc_user where uid = ?"
,
uid
);
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminUserController.java
View file @
4a76a0c0
...
@@ -154,4 +154,16 @@ public class AdminUserController {
...
@@ -154,4 +154,16 @@ public class AdminUserController {
}
}
return
Rjx
.
jsonOk
().
setData
(
user
);
return
Rjx
.
jsonOk
().
setData
(
user
);
}
}
@ResponseBody
@Transactional
@PostMapping
(
"user_delete"
)
@ApiOperation
(
"保存或更新评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"uid"
,
value
=
"评委ID"
),
})
public
Rjx
deleteUser
(
Integer
uid
)
{
service
.
deleteUserById
(
uid
);
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