@@ -174,41 +172,4 @@ public class FilmReportServiceImpl implements FilmReportService {
...
@@ -174,41 +172,4 @@ public class FilmReportServiceImpl implements FilmReportService {
returnres;
returnres;
}
}
staticBigDecimalNUM_100=BigDecimal.valueOf(100);
@Override
publicRjxqueryFilmReport(Integeruser_id){
Stringbase="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;
Integercount_quanbu=jdbcTemplate.queryForInt("select count(*) from ("+base+") t");
Integercount_canzan=jdbcTemplate.queryForInt("select count(*) from ("+base+") t where t.review_state = 5 or (t.review_state = 1 and (t.enroll_type_id = 4))");
Integercount_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))");
Integercount_foujue=jdbcTemplate.queryForInt("select count(*) from ("+base+") t where t.review_state = 2");
Integercount_csbx=jdbcTemplate.queryForInt("select count(*) from ("+base+") t where t.review_state = 4");
Stringbase="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;
Integercount_quanbu=jdbcTemplate.queryForInt("select count(*) from ("+base+") t");
Integercount_canzan=jdbcTemplate.queryForInt("select count(*) from ("+base+") t where t.review_state = 5 or (t.review_state = 1 and (t.enroll_type_id = 4))");
Integercount_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))");
Integercount_foujue=jdbcTemplate.queryForInt("select count(*) from ("+base+") t where t.review_state = 2");
Integercount_csbx=jdbcTemplate.queryForInt("select count(*) from ("+base+") t where t.review_state = 4");