Commit 77df8071 authored by Quxl's avatar Quxl

x

parent bb93922e
......@@ -76,6 +76,8 @@ public interface ReviewService {
List<Map<String, Object>> queryDoubtfulListByFilmIdForUser(Integer film_id, Integer user_id);
List<Map<String, Object>> queryDoubtfulListByFilmIdForUser(Integer film_id);
List<Map<String, Object>> queryDoubtfulListByFilmIdId(Integer film_id);
Fc_review_record queryCurrentReviewRecord(Integer user_id, Integer review_id);
......
......@@ -245,6 +245,12 @@ public class ReviewServiceImpl implements ReviewService {
return jdbcTemplate.queryForList(sql, film_id, user_id);
}
@Override
public List<Map<String, Object>> queryDoubtfulListByFilmIdForUser(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
public List<Map<String, Object>> queryDoubtfulListByFilmIdId(Integer film_id) {
String sql = "select rd.*, r.film_id, u.username, ug.group_name from fc_review_doubtful rd left join fc_user u on u.uid = rd.user_id left join fc_user_group ug on ug.group_id = u.group_id, fc_review r where rd.review_id = r.id and r.film_id = ?";
......
......@@ -143,6 +143,17 @@ public class UserReviewController {
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("doubtful_list_all")
@ApiOperation("查询疑点记录")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "review_id", value="审片ID"),
})
public Object getDoubtfulListAll(Integer film_id) {
List<Map<String, Object>> list = service.queryDoubtfulListByFilmIdForUser(film_id);
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("doubtful_del")
@ApiOperation("删除疑点记录")
......
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