Stringsql="select ran.*, mf.film_no from fc_report_asia_new ran left join fc_member_film mf on mf.id = ran.film_id where ran.user_group_id = "+user_group_id+" and ran.review_round = "+review_round+(StringUtil.isNotBlank(ext_type)?(" and ran.item_"+ext_type+" is not null"):"");
Stringsql="select ran.*, mf.film_no from fc_report_asia_new ran left join fc_member_film mf on mf.id = ran.film_id where ran.user_group_id = "+user_group_id+" and ran.review_round = "+review_round;
returnjdbcTemplate.limit(sql,page);
returnjdbcTemplate.limit(sql,page);
}
}
...
@@ -361,6 +362,9 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -361,6 +362,9 @@ public class ReviewServiceImpl implements ReviewService {
Fc_reviewreview=jdbcTemplate.queryForBean("select * from fc_review where id = ?",Fc_review.class,review_id);
Fc_reviewreview=jdbcTemplate.queryForBean("select * from fc_review where id = ?",Fc_review.class,review_id);
intenrollType=review.getEnroll_type_id();
intenrollType=review.getEnroll_type_id();
...
@@ -475,7 +478,7 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -475,7 +478,7 @@ public class ReviewServiceImpl implements ReviewService {
thrownewXException("生成亚新榜单中间结果错误",e);
thrownewXException("生成亚新榜单中间结果错误",e);
}
}
}
}
jdbcTemplate.executeUpdate("delete from fc_report_asia_new where review_id = ?",asiaNew.getReview_id());
jdbcTemplate.executeUpdate("delete from fc_report_asia_new where review_id = ? and review_round = ? and user_group_id = ?",asiaNew.getReview_id(),asiaNew.getReview_round(),asiaNew.getUser_group_id());
jdbcTemplate.save(asiaNew);
jdbcTemplate.save(asiaNew);
}
}
}
}
...
@@ -660,7 +663,6 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -660,7 +663,6 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Override
publicvoidtoType4(Integerreview_id){
publicvoidtoType4(Integerreview_id){
jdbcTemplate.executeUpdate("delete from fc_report_asia_new where review_id = ?",review_id);
jdbcTemplate.executeUpdate("update fc_review set enroll_type_id = 4 where id = ?",review_id);
jdbcTemplate.executeUpdate("update fc_review set enroll_type_id = 4 where id = ?",review_id);