Commit 27952906 authored by Quxl's avatar Quxl

xx

parent a577ab12
...@@ -139,4 +139,6 @@ public interface FilmService { ...@@ -139,4 +139,6 @@ 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);
} }
...@@ -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);
}
} }
...@@ -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();
} }
......
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