Commit 7259bed4 authored by Quxl's avatar Quxl

x

parent 2a567654
...@@ -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);
} }
......
...@@ -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_review_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_review_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 getView_state() { public Integer getUser_review_state() {
return view_state; return user_review_state;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment