Commit e6ade8ce authored by Quxl's avatar Quxl

x

parent 331bd6c2
...@@ -72,6 +72,8 @@ public interface ReviewService { ...@@ -72,6 +72,8 @@ public interface ReviewService {
List<Map<String, Object>> queryDoubtfulListByFilmId(Integer film_id, Integer user_id); List<Map<String, Object>> queryDoubtfulListByFilmId(Integer film_id, Integer user_id);
List<Map<String, Object>> queryDoubtfulListByReviewId(Integer review_id);
Fc_review_record queryReviewRecord(Integer user_id, Integer review_id); Fc_review_record queryReviewRecord(Integer user_id, Integer review_id);
void saveReviewRecord(Fc_review_record ru, List<Fc_review_record_ext> exts); void saveReviewRecord(Fc_review_record ru, List<Fc_review_record_ext> exts);
......
...@@ -207,6 +207,12 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -207,6 +207,12 @@ public class ReviewServiceImpl implements ReviewService {
return jdbcTemplate.queryForList(sql, film_id, user_id); return jdbcTemplate.queryForList(sql, film_id, user_id);
} }
@Override
public List<Map<String, Object>> queryDoubtfulListByReviewId(Integer review_id) {
String sql = "select rd.* from fc_review_doubtful rd rd.review_id = ?";
return jdbcTemplate.queryForList(sql, review_id);
}
@Override @Override
public Fc_review_record queryReviewRecord(Integer user_id, Integer review_id) { public Fc_review_record queryReviewRecord(Integer user_id, Integer review_id) {
String sql = "select rr.* from fc_review_record rr, fc_review r where rr.user_id = ? and rr.review_id = ? and rr.review_id = r.id and rr.review_round = r.review_round"; String sql = "select rr.* from fc_review_record rr, fc_review r where rr.user_id = ? and rr.review_id = ? and rr.review_id = r.id and rr.review_round = r.review_round";
......
...@@ -13,6 +13,7 @@ import com.egolm.common.bean.Rjx; ...@@ -13,6 +13,7 @@ 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.AdminUserService;
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;
...@@ -29,6 +30,9 @@ public class AdminReviewController { ...@@ -29,6 +30,9 @@ public class AdminReviewController {
@Autowired @Autowired
ReviewService reviewService; ReviewService reviewService;
@Autowired
FilmService filmService;
@Autowired @Autowired
AdminTokenService tokenService; AdminTokenService tokenService;
...@@ -130,4 +134,15 @@ public class AdminReviewController { ...@@ -130,4 +134,15 @@ public class AdminReviewController {
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
@ResponseBody
@PostMapping("getDoubtfulList")
@ApiOperation("查询审片评委")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_id", value="审片主表ID"),
})
public Object getDoubtfulList(Integer review_id) {
reviewService.queryDoubtfulListByReviewId(review_id);
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