Commit 506b512d authored by Quxl's avatar Quxl

x

parent c2b136f9
...@@ -182,10 +182,10 @@ public class FilmReportServiceImpl implements FilmReportService { ...@@ -182,10 +182,10 @@ public class FilmReportServiceImpl implements FilmReportService {
String base = "select rr.*, r.enroll_type_id from fc_review_record rr left join fc_review r on r.id = rr.review_id where rr.user_id = " + user_id; String base = "select rr.*, r.enroll_type_id from fc_review_record rr left join fc_review r on r.id = rr.review_id where rr.user_id = " + user_id;
Integer count_quanbu = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t"); Integer count_quanbu = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t");
Integer count_canzan = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where review_state = 5 or (t.review_state = 1 and t.enroll_type_id == 4)"); Integer count_canzan = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where t.review_state = 5 or (t.review_state = 1 and t.enroll_type_id == 4)");
Integer count_cansai = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where review_state = 3 or (t.review_state = 1 and (t.enroll_type_id == 1 or t.enroll_type_id == 2))"); Integer count_cansai = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where t.review_state = 3 or (t.review_state = 1 and (t.enroll_type_id == 1 or t.enroll_type_id == 2))");
Integer count_foujue = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where review_state = 2"); Integer count_foujue = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where t.review_state = 2");
Integer count_csbx = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where review_state = 4"); Integer count_csbx = jdbcTemplate.queryForInt("select count(*) from (" + base + ") t where t.review_state = 4");
BigDecimal count = new BigDecimal(count_quanbu); BigDecimal count = new BigDecimal(count_quanbu);
......
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