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
136757b2
Commit
136757b2
authored
Nov 30, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx
parent
824426f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
AdminUserService.java
...ain/java/com/egolm/film/api/service/AdminUserService.java
+5
-0
AdminUserServiceImpl.java
...com/egolm/film/api/service/impl/AdminUserServiceImpl.java
+10
-0
AdminUserController.java
...ava/com/egolm/film/api/web/admin/AdminUserController.java
+17
-0
No files found.
src/main/java/com/egolm/film/api/service/AdminUserService.java
View file @
136757b2
...
@@ -6,6 +6,7 @@ import java.util.Map;
...
@@ -6,6 +6,7 @@ import java.util.Map;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.bean.Fc_user
;
import
com.egolm.film.bean.Fc_user
;
import
com.egolm.film.bean.Fc_user_group
;
import
com.egolm.film.bean.Fc_user_group
;
import
com.egolm.film.bean.Fc_user_group_fun
;
public
interface
AdminUserService
{
public
interface
AdminUserService
{
...
@@ -23,4 +24,8 @@ public interface AdminUserService {
...
@@ -23,4 +24,8 @@ public interface AdminUserService {
void
saveGroupFun
(
Integer
group_id
,
Integer
[]
fun_id
);
void
saveGroupFun
(
Integer
group_id
,
Integer
[]
fun_id
);
Fc_user_group
queryGroupById
(
Integer
group_id
);
List
<
Fc_user_group_fun
>
queryGroupFunList
(
Integer
group_id
);
}
}
src/main/java/com/egolm/film/api/service/impl/AdminUserServiceImpl.java
View file @
136757b2
...
@@ -73,4 +73,14 @@ public class AdminUserServiceImpl implements AdminUserService {
...
@@ -73,4 +73,14 @@ public class AdminUserServiceImpl implements AdminUserService {
jdbcTemplate
.
batchSave
(
list
);
jdbcTemplate
.
batchSave
(
list
);
}
}
@Override
public
Fc_user_group
queryGroupById
(
Integer
group_id
)
{
return
jdbcTemplate
.
queryForBean
(
"select * from fc_user_group where group_id = ?"
,
Fc_user_group
.
class
,
group_id
);
}
@Override
public
List
<
Fc_user_group_fun
>
queryGroupFunList
(
Integer
group_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_user_group_fun where group_id = ?"
,
Fc_user_group_fun
.
class
,
group_id
);
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminUserController.java
View file @
136757b2
...
@@ -17,6 +17,7 @@ import com.egolm.film.api.service.AdminTokenService;
...
@@ -17,6 +17,7 @@ import com.egolm.film.api.service.AdminTokenService;
import
com.egolm.film.api.service.AdminUserService
;
import
com.egolm.film.api.service.AdminUserService
;
import
com.egolm.film.bean.Fc_user
;
import
com.egolm.film.bean.Fc_user
;
import
com.egolm.film.bean.Fc_user_group
;
import
com.egolm.film.bean.Fc_user_group
;
import
com.egolm.film.bean.Fc_user_group_fun
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.util.Common
;
import
com.egolm.film.util.Common
;
...
@@ -52,6 +53,22 @@ public class AdminUserController {
...
@@ -52,6 +53,22 @@ public class AdminUserController {
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
@ResponseBody
@Transactional
@PostMapping
(
"group_detail"
)
@ApiOperation
(
"查询分组及分组权限"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"group_id"
,
value
=
"分组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"group_name"
,
value
=
"分组名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"job_desc"
,
value
=
"工作介绍"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"fun_id"
,
value
=
"权限[功能]ID [1-6]选权限,7快进后退权限"
),
})
public
Rjx
groupDetail
(
Integer
group_id
)
{
Fc_user_group
group
=
service
.
queryGroupById
(
group_id
);
List
<
Fc_user_group_fun
>
funList
=
service
.
queryGroupFunList
(
group_id
);
return
Rjx
.
jsonOk
().
setData
(
group
).
set
(
"funList"
,
funList
);
}
@ResponseBody
@ResponseBody
@Transactional
@Transactional
@PostMapping
(
"group_save"
)
@PostMapping
(
"group_save"
)
...
...
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