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
27952906
Commit
27952906
authored
Nov 29, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
a577ab12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+2
-0
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+11
-0
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+1
-0
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
27952906
...
@@ -138,5 +138,7 @@ public interface FilmService {
...
@@ -138,5 +138,7 @@ public interface FilmService {
*/
*/
List
<
Map
<
String
,
Object
>>
queryReviewList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
List
<
Map
<
String
,
Object
>>
queryReviewList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
String
film_country
,
Integer
[]
review_round
,
Integer
[]
review_state
,
Page
page
);
String
film_country
,
Integer
[]
review_round
,
Integer
[]
review_state
,
Page
page
);
void
allot
(
Long
member_film_id
,
Integer
review_round
,
Integer
[]
user_id
);
}
}
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
27952906
...
@@ -32,6 +32,7 @@ import com.egolm.film.bean.Fc_member_film_issuer;
...
@@ -32,6 +32,7 @@ import com.egolm.film.bean.Fc_member_film_issuer;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
import
com.egolm.film.bean.Fc_member_film_show
;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.bean.Fc_review_user
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.XException
;
import
com.egolm.film.config.XException
;
...
@@ -511,4 +512,14 @@ public class FilmServiceImpl implements FilmService {
...
@@ -511,4 +512,14 @@ public class FilmServiceImpl implements FilmService {
return
jdbcTemplate
.
limit
(
sql
,
page
,
w1
.
getObjectList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
w1
.
getObjectList
());
}
}
@Override
public
void
allot
(
Long
member_film_id
,
Integer
review_round
,
Integer
[]
user_id
)
{
List
<
Fc_review_user
>
list
=
new
ArrayList
<
Fc_review_user
>();
for
(
Integer
i
:
user_id
)
{
list
.
add
(
new
Fc_review_user
(
member_film_id
.
intValue
(),
review_round
,
i
,
0
));
}
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_user where film_id = ? and review_round = ?"
,
member_film_id
,
review_round
);
jdbcTemplate
.
batchSave
(
list
);
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
27952906
...
@@ -57,6 +57,7 @@ public class AdminReviewController {
...
@@ -57,6 +57,7 @@ public class AdminReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"user_id"
,
value
=
"审片评委ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"user_id"
,
value
=
"审片评委ID"
),
})
})
public
Object
allot
(
Long
member_film_id
,
Integer
review_round
,
Integer
[]
user_id
)
{
public
Object
allot
(
Long
member_film_id
,
Integer
review_round
,
Integer
[]
user_id
)
{
filmService
.
allot
(
member_film_id
,
review_round
,
user_id
);
return
Rjx
.
jsonOk
();
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