Commit fce8cb5c authored by Quxl's avatar Quxl

x

parent 415998e5
......@@ -70,9 +70,9 @@ public interface ReviewService {
void saveDoubtfulList(List<Fc_review_doubtful> doubtfulList);
List<Map<String, Object>> queryDoubtfulListByFilmId(Integer film_id, Integer user_id);
List<Map<String, Object>> queryDoubtfulListByFilmIdForUser(Integer film_id, Integer user_id);
List<Map<String, Object>> queryDoubtfulListByReviewId(Integer review_id);
List<Map<String, Object>> queryDoubtfulListByFilmIdId(Integer film_id);
Fc_review_record queryReviewRecord(Integer user_id, Integer review_id);
......
......@@ -202,15 +202,15 @@ public class ReviewServiceImpl implements ReviewService {
}
@Override
public List<Map<String, Object>> queryDoubtfulListByFilmId(Integer film_id, Integer user_id) {
public List<Map<String, Object>> queryDoubtfulListByFilmIdForUser(Integer film_id, Integer user_id) {
String sql = "select rd.* from fc_review_doubtful rd, fc_review r where rd.review_id = r.id and r.film_id = ? and rd.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);
public List<Map<String, Object>> queryDoubtfulListByFilmIdId(Integer film_id) {
String sql = "select rd.* from fc_review_doubtful rd, fc_review r where rd.review_id = r.id and r.film_id = ?";
return jdbcTemplate.queryForList(sql, film_id);
}
@Override
......
......@@ -186,10 +186,10 @@ public class AdminReviewController {
@PostMapping("getDoubtfulList")
@ApiOperation("查询疑点列表")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_id", value="审片主表ID"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="film_id", value="审片主表ID"),
})
public Object getDoubtfulList(Integer review_id) {
List<Map<String, Object>> list = reviewService.queryDoubtfulListByReviewId(review_id);
public Object getDoubtfulList(Integer film_id) {
List<Map<String, Object>> list = reviewService.queryDoubtfulListByFilmIdId(film_id);
return Rjx.jsonOk().setData(list);
}
......
......@@ -112,7 +112,7 @@ public class UserReviewController {
public Object getDoubtfulList(Integer film_id) {
LoginToken token = tokenService.getToken();
Integer user_id = (Integer)token.getId();
List<Map<String, Object>> list = service.queryDoubtfulListByFilmId(film_id, user_id);
List<Map<String, Object>> list = service.queryDoubtfulListByFilmIdForUser(film_id, user_id);
return Rjx.jsonOk().setData(list);
}
......
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