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
8cef1767
Commit
8cef1767
authored
Dec 14, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
c15a6589
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
1 deletion
+45
-1
AdminUserService.java
...ain/java/com/egolm/film/api/service/AdminUserService.java
+5
-1
AdminUserServiceImpl.java
...com/egolm/film/api/service/impl/AdminUserServiceImpl.java
+12
-0
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+28
-0
No files found.
src/main/java/com/egolm/film/api/service/AdminUserService.java
View file @
8cef1767
...
@@ -32,4 +32,8 @@ public interface AdminUserService {
...
@@ -32,4 +32,8 @@ public interface AdminUserService {
void
deleteGroupById
(
Integer
group_id
);
void
deleteGroupById
(
Integer
group_id
);
List
<
Map
<
String
,
Object
>>
getReviewUserList
(
Integer
review_id
);
List
<
Map
<
String
,
Object
>>
getReviewGroupList
(
Integer
review_id
);
}
}
src/main/java/com/egolm/film/api/service/impl/AdminUserServiceImpl.java
View file @
8cef1767
...
@@ -93,4 +93,16 @@ public class AdminUserServiceImpl implements AdminUserService {
...
@@ -93,4 +93,16 @@ public class AdminUserServiceImpl implements AdminUserService {
jdbcTemplate
.
executeUpdate
(
"delete from fc_user_group where group_id = ?"
,
group_id
);
jdbcTemplate
.
executeUpdate
(
"delete from fc_user_group where group_id = ?"
,
group_id
);
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
getReviewUserList
(
Integer
review_id
)
{
String
sql
=
"select u.* from fc_user u, fc_user_group_fun fn, fc_review r where u.group_id = fn.group_id and fn.fun_id = r.enroll_type_id and r.id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
getReviewGroupList
(
Integer
review_id
)
{
String
sql
=
"select g.* from fc_user_group g, fc_user_group_fun fn, fc_review r where g.group_id = fn.group_id and fn.fun_id = r.enroll_type_id and r.id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
);
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
8cef1767
...
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.AdminTokenService
;
import
com.egolm.film.api.service.AdminTokenService
;
import
com.egolm.film.api.service.AdminUserService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_admin
;
...
@@ -35,6 +36,9 @@ public class AdminReviewController {
...
@@ -35,6 +36,9 @@ public class AdminReviewController {
@Autowired
@Autowired
AdminTokenService
tokenService
;
AdminTokenService
tokenService
;
@Autowired
AdminUserService
adminUserService
;
@ResponseBody
@ResponseBody
@PostMapping
(
"list"
)
@PostMapping
(
"list"
)
@ApiOperation
(
"查询选片列表"
)
@ApiOperation
(
"查询选片列表"
)
...
@@ -60,6 +64,18 @@ public class AdminReviewController {
...
@@ -60,6 +64,18 @@ public class AdminReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
@ResponseBody
@PostMapping
(
"getReviewGroupUserList"
)
@ApiOperation
(
"分配审片评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
})
public
Object
getReviewGroupUserList
(
Integer
review_id
)
{
List
<
Map
<
String
,
Object
>>
groupList
=
adminUserService
.
getReviewGroupList
(
review_id
);
List
<
Map
<
String
,
Object
>>
userList
=
adminUserService
.
getReviewUserList
(
review_id
);
return
Rjx
.
jsonOk
().
set
(
"userList"
,
userList
).
set
(
"groupList"
,
groupList
);
}
@ResponseBody
@ResponseBody
@PostMapping
(
"allot"
)
@PostMapping
(
"allot"
)
@ApiOperation
(
"分配审片评委"
)
@ApiOperation
(
"分配审片评委"
)
...
@@ -84,4 +100,16 @@ public class AdminReviewController {
...
@@ -84,4 +100,16 @@ public class AdminReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
@ResponseBody
@PostMapping
(
"toNextRound"
)
@ApiOperation
(
"查询审片评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
})
public
Object
toNextRound
(
Integer
review_id
)
{
reviewService
.
toNextRound
(
review_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