@@ -177,11 +177,15 @@ public class FilmReportServiceImpl implements FilmReportService {
...
@@ -177,11 +177,15 @@ public class FilmReportServiceImpl implements FilmReportService {
staticBigDecimalNUM_100=BigDecimal.valueOf(100);
staticBigDecimalNUM_100=BigDecimal.valueOf(100);
@Override
@Override
publicRjxqueryFilmReport(){
publicRjxqueryFilmReport(Integeruser_id){
Integercount_quanbu=jdbcTemplate.queryForInt("select count(id) from fc_review");
Integercount_canzan=jdbcTemplate.queryForInt("select count(id) from fc_review where opt_state = 3 and (enroll_type_id = 4 and review_state = 1)");
Stringbase="select rr.*, r.enroll_type_id from fc_review_record rr left join fc_review r on r.id = rr.review_id";
Integercount_cansai=jdbcTemplate.queryForInt("select count(id) from fc_review where opt_state = 3 and ((enroll_type_id = 1 and review_state = 1) or (enroll_type_id = 2 and review_state = 1))");
Integercount_foujue=jdbcTemplate.queryForInt("select count(id) from fc_review where opt_state = 3 and review_state = 2");
Integercount_quanbu=jdbcTemplate.queryForInt("select count(t.*) from ("+base+") t");
Integercount_canzan=jdbcTemplate.queryForInt("select count(t.*) from ("+base+") t where review_state = 5 or (t.review_state = 1 and t.enroll_type_id == 4)");
Integercount_cansai=jdbcTemplate.queryForInt("select count(t.*) from ("+base+") t where 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(t.*) from ("+base+") t where review_state = 2");
Integercount_csbx=jdbcTemplate.queryForInt("select count(t.*) from ("+base+") t where review_state = 4");
BigDecimalcount=newBigDecimal(count_quanbu);
BigDecimalcount=newBigDecimal(count_quanbu);
...
@@ -195,6 +199,11 @@ public class FilmReportServiceImpl implements FilmReportService {
...
@@ -195,6 +199,11 @@ public class FilmReportServiceImpl implements FilmReportService {