Commit e6ade8ce authored by Quxl's avatar Quxl

x

parent 331bd6c2
......@@ -71,6 +71,8 @@ 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>> queryDoubtfulListByReviewId(Integer review_id);
Fc_review_record queryReviewRecord(Integer user_id, Integer review_id);
......
......@@ -206,6 +206,12 @@ public class ReviewServiceImpl implements ReviewService {
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);
}
@Override
public Fc_review_record queryReviewRecord(Integer user_id, Integer review_id) {
......
......@@ -13,6 +13,7 @@ import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.AdminTokenService;
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.bean.Fc_admin;
......@@ -29,6 +30,9 @@ public class AdminReviewController {
@Autowired
ReviewService reviewService;
@Autowired
FilmService filmService;
@Autowired
AdminTokenService tokenService;
......@@ -130,4 +134,15 @@ public class AdminReviewController {
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