Commit f3873dc6 authored by Quxl's avatar Quxl

x

parent 2264d609
......@@ -117,5 +117,7 @@ public interface ReviewService {
void allotShowFilmUser(Integer review_id, Integer[] user_id);
List<Map<String, Object>> queryUserShowList(Integer user_id);
}
\ No newline at end of file
......@@ -591,5 +591,11 @@ public class ReviewServiceImpl implements ReviewService {
}
this.jdbcTemplate.batchSave(ufs);
}
@Override
public List<Map<String, Object>> queryUserShowList(Integer user_id) {
String sql = "select r.id review_id, mf.* from fc_review r left join fc_member_film mf on mf.id = r.film_id, fc_user_film uf where r.id = uf.review_id and uf.user_id = ?";
return jdbcTemplate.queryForList(sql, user_id);
}
}
\ No newline at end of file
......@@ -80,6 +80,16 @@ public class UserReviewController {
return Rjx.jsonOk().setData(list).setPage(page);
}
@ResponseBody
@PostMapping("show_list")
@ApiOperation("看片列表")
public Object getReviewList() {
LoginToken loginToken = tokenService.getToken();
Integer user_id = (Integer)loginToken.getId();
List<Map<String, Object>> list = service.queryUserShowList(user_id);
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("doubtful_save")
@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