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);
}
...
...
@@ -361,6 +362,9 @@ public class ReviewServiceImpl implements ReviewService {
Fc_reviewreview=jdbcTemplate.queryForBean("select * from fc_review where id = ?",Fc_review.class,review_id);
intenrollType=review.getEnroll_type_id();
...
...
@@ -475,7 +478,7 @@ public class ReviewServiceImpl implements ReviewService {
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);
}
}
...
...
@@ -660,7 +663,6 @@ public class ReviewServiceImpl implements ReviewService {
@Override
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);
}
...
...
@@ -669,5 +671,5 @@ public class ReviewServiceImpl implements ReviewService {
Stringsql="select u.*, ug.group_name from fc_user u left join fc_user_group ug on ug.group_id = u.group_id, fc_user_film uf where u.uid = uf.user_id and uf.review_id = ?";