Commit 62a68168 authored by 曲欣红's avatar 曲欣红

1

parent 57c14674
......@@ -114,7 +114,7 @@ public class FilmReportServiceImpl implements FilmReportService {
String filmTypeSql = "ef.film_type, ef.film_type_name from enum_filmtype ef, fc_member_film fmf where ef.film_type = fmf.film_type_name";
Long filmTypeTotalCount = jdbcTemplate.queryForLong("select count(1) from (select "+filmTypeSql+") t");
List<Map<String, Object>> filmTypeGroup = jdbcTemplate.queryForList("select count(1) count, "+filmTypeSql+" group by ef.film_type");
String showTypeSql = "play_shanghai from fc_member_film";
String showTypeSql = "play_shanghai from fc_member_film where play_shanghai is not null";
Long showTypeTotalCount = jdbcTemplate.queryForLong("select count(1) from (select "+showTypeSql+") t");
List<Map<String, Object>> showTypeGroup = jdbcTemplate.queryForList("select count(1) count, "+showTypeSql+" group by play_shanghai");
for(Map<String, Object> map : applyTypeGroup) {
......
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