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
7259bed4
Commit
7259bed4
authored
Dec 04, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2a567654
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
10 deletions
+32
-10
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+7
-1
Fc_review_user.java
src/main/java/com/egolm/film/bean/Fc_review_user.java
+25
-9
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
7259bed4
...
@@ -509,7 +509,13 @@ public class FilmServiceImpl implements FilmService {
...
@@ -509,7 +509,13 @@ public class FilmServiceImpl implements FilmService {
if
(
user_id
!=
null
&&
user_id
.
length
>
0
)
{
if
(
user_id
!=
null
&&
user_id
.
length
>
0
)
{
List
<
Fc_review_user
>
list
=
new
ArrayList
<
Fc_review_user
>();
List
<
Fc_review_user
>
list
=
new
ArrayList
<
Fc_review_user
>();
for
(
Integer
i
:
user_id
)
{
for
(
Integer
i
:
user_id
)
{
list
.
add
(
new
Fc_review_user
(
member_film_id
.
intValue
(),
review_round
,
i
,
0
));
Fc_review_user
ru
=
new
Fc_review_user
();
ru
.
setFilm_id
(
member_film_id
.
intValue
());
ru
.
setReview_round
(
review_round
);
ru
.
setEnroll_type_id
(
enroll_type_id
);
ru
.
setUser_id
(
i
);
ru
.
setUser_view_state
(
0
);
ru
.
setUser_review_state
(
0
);
}
}
jdbcTemplate
.
batchSave
(
list
);
jdbcTemplate
.
batchSave
(
list
);
}
}
...
...
src/main/java/com/egolm/film/bean/Fc_review_user.java
View file @
7259bed4
...
@@ -27,6 +27,7 @@ public class Fc_review_user implements java.io.Serializable {
...
@@ -27,6 +27,7 @@ public class Fc_review_user implements java.io.Serializable {
/**
/**
* 影片性质ID
* 影片性质ID
*/
*/
@Id
private
Integer
enroll_type_id
;
private
Integer
enroll_type_id
;
/**
/**
...
@@ -35,9 +36,14 @@ public class Fc_review_user implements java.io.Serializable {
...
@@ -35,9 +36,14 @@ public class Fc_review_user implements java.io.Serializable {
private
Integer
user_id
;
private
Integer
user_id
;
/**
/**
* 是否观看 0否,1是
* 0未观看,1已观看
*/
private
Integer
user_view_state
;
/**
* 0未审片,1暂存,2已提交
*/
*/
private
Integer
view_state
;
private
Integer
user_re
view_state
;
/**
/**
...
@@ -53,14 +59,16 @@ public class Fc_review_user implements java.io.Serializable {
...
@@ -53,14 +59,16 @@ public class Fc_review_user implements java.io.Serializable {
* @param review_round 审片环节
* @param review_round 审片环节
* @param enroll_type_id 影片性质ID
* @param enroll_type_id 影片性质ID
* @param user_id 评委ID
* @param user_id 评委ID
* @param view_state 是否观看 0否,1是
* @param user_view_state 0未观看,1已观看
* @param user_review_state 0未审片,1暂存,2已提交
*/
*/
public
Fc_review_user
(
Integer
film_id
,
Integer
review_round
,
Integer
enroll_type_id
,
Integer
user_id
,
Integer
view_state
)
{
public
Fc_review_user
(
Integer
film_id
,
Integer
review_round
,
Integer
enroll_type_id
,
Integer
user_id
,
Integer
user_view_state
,
Integer
user_re
view_state
)
{
this
.
film_id
=
film_id
;
this
.
film_id
=
film_id
;
this
.
review_round
=
review_round
;
this
.
review_round
=
review_round
;
this
.
enroll_type_id
=
enroll_type_id
;
this
.
enroll_type_id
=
enroll_type_id
;
this
.
user_id
=
user_id
;
this
.
user_id
=
user_id
;
this
.
view_state
=
view_state
;
this
.
user_view_state
=
user_view_state
;
this
.
user_review_state
=
user_review_state
;
}
}
public
void
setFilm_id
(
Integer
film_id
)
{
public
void
setFilm_id
(
Integer
film_id
)
{
...
@@ -95,12 +103,20 @@ public class Fc_review_user implements java.io.Serializable {
...
@@ -95,12 +103,20 @@ public class Fc_review_user implements java.io.Serializable {
return
user_id
;
return
user_id
;
}
}
public
void
setView_state
(
Integer
view_state
)
{
public
void
setUser_view_state
(
Integer
user_view_state
)
{
this
.
view_state
=
view_state
;
this
.
user_view_state
=
user_view_state
;
}
public
Integer
getUser_view_state
()
{
return
user_view_state
;
}
public
void
setUser_review_state
(
Integer
user_review_state
)
{
this
.
user_review_state
=
user_review_state
;
}
}
public
Integer
get
V
iew_state
()
{
public
Integer
get
User_rev
iew_state
()
{
return
view_state
;
return
user_re
view_state
;
}
}
}
}
...
...
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