Commit c15a6589 authored by Quxl's avatar Quxl

x

parent 8c9a08ae
...@@ -195,8 +195,15 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -195,8 +195,15 @@ public class ReviewServiceImpl implements ReviewService {
@Override @Override
public List<Map<String, Object>> queryReviewRecordList(Integer review_id) { public List<Map<String, Object>> queryReviewRecordList(Integer review_id) {
String sql = "select rr.*, u.username, u.group_id from fc_review_record rr left join fc_user u on rr.user_id = u.uid where rr.review_id = ?"; String sql = "select rr.*, u.username, u.group_id from fc_review_record rr left join fc_user u on rr.user_id = u.uid where rr.review_id = ?";
sql = "select t.*, g.group_name from (" + sql + ") t left join fc_admin_group g on g.group_id = t.group_id";
return jdbcTemplate.queryForList(sql, review_id); return jdbcTemplate.queryForList(sql, review_id);
} }
public static void main(String[] args) {
String sql = "select rr.*, u.username, u.group_id from fc_review_record rr left join fc_user u on rr.user_id = u.uid where rr.review_id = ?";
sql = "select t.*, g.group_name from (" + sql + ") t left join fc_user_group g on g.group_id = t.group_id";
System.out.println(sql);
}
@Override @Override
@Transactional @Transactional
......
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