Commit 072543e4 authored by Quxl's avatar Quxl

x

parent 736b2bca
...@@ -50,10 +50,12 @@ public class WebApiController { ...@@ -50,10 +50,12 @@ public class WebApiController {
}) })
public Object getFilmList() { public Object getFilmList() {
String sql0 = "select mf.id, mf.film_no, mf.cn_name, mf.en_name, mf.film_country, r.enroll_type_id, r.review_state, mf.film_type_name_short from fc_member_film mf left join fc_review r on r.film_id = mf.id, fc_film_group fg where mf.film_group_id = fg.id"; String sql0 = "select mf.id, mf.film_no, mf.cn_name, mf.en_name, mf.film_country, r.enroll_type_id, r.review_state, mf.film_type_name_short from fc_member_film mf left join fc_review r on r.film_id = mf.id, fc_film_group fg where mf.film_group_id = fg.id";
String sql1 = "select * from fc_member_film_ext";
List<Map<String, Object>> filmList = jdbcTemplate.limitAll(sql0, new Page(1L, 1000L, "id desc")); List<Map<String, Object>> filmList = jdbcTemplate.limitAll(sql0, new Page(1L, 1000L, "id desc"));
String sql1 = "select * from fc_member_film_ext";
List<Map<String, Object>> playactorList = jdbcTemplate.limitAll(sql1, new Page(1L, 1000L, "id desc")); List<Map<String, Object>> playactorList = jdbcTemplate.limitAll(sql1, new Page(1L, 1000L, "id desc"));
Map<String, Map<String, Object>> playactorMM = Util.listToMM(playactorList, "id"); Map<String, Map<String, Object>> playactorMM = Util.listToMM(playactorList, "id");
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>(); List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
for(Map<String, Object> filmMap : filmList) { for(Map<String, Object> filmMap : filmList) {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
......
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