Commit 3959d866 authored by Quxl's avatar Quxl

x

parent b895a0df
...@@ -80,7 +80,7 @@ public interface ReviewService { ...@@ -80,7 +80,7 @@ public interface ReviewService {
List<Fc_review_record_ext> queryReviewRecordExtList(Integer record_id); List<Fc_review_record_ext> queryReviewRecordExtList(Integer record_id);
List<Map<String, Object>> queryReviewRecordList(Integer review_id); List<Map<String, Object>> queryReviewRecordListByReviewId(Integer review_id);
void toFirstRound(Long member_film_id); void toFirstRound(Long member_film_id);
......
...@@ -236,7 +236,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -236,7 +236,7 @@ public class ReviewServiceImpl implements ReviewService {
} }
@Override @Override
public List<Map<String, Object>> queryReviewRecordList(Integer review_id) { public List<Map<String, Object>> queryReviewRecordListByReviewId(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_user_group g on g.group_id = t.group_id"; sql = "select t.*, g.group_name from (" + sql + ") t left join fc_user_group g on g.group_id = t.group_id";
return jdbcTemplate.queryForList(sql, review_id); return jdbcTemplate.queryForList(sql, review_id);
......
...@@ -124,7 +124,7 @@ public class AdminReviewController { ...@@ -124,7 +124,7 @@ public class AdminReviewController {
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_id", value="审片主表ID"), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_id", value="审片主表ID"),
}) })
public Object allot_list(Integer review_id) { public Object allot_list(Integer review_id) {
List<Map<String, Object>> list = reviewService.queryReviewRecordList(review_id); List<Map<String, Object>> list = reviewService.queryReviewRecordListByReviewId(review_id);
return Rjx.jsonOk().setData(list); return Rjx.jsonOk().setData(list);
} }
......
...@@ -179,14 +179,24 @@ public class UserReviewController { ...@@ -179,14 +179,24 @@ public class UserReviewController {
@PostMapping("getReviewRecord") @PostMapping("getReviewRecord")
@ApiOperation("查询审片详情") @ApiOperation("查询审片详情")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "review_id", value="审片ID"), @ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "record_id", value="审片记录ID"),
}) })
public Object saveReviewRecord(Integer review_id) { public Object saveReviewRecord(Integer record_id) {
LoginToken token = tokenService.getToken(); Fc_review_record record = service.queryReviewRecord(record_id);
Integer user_id = (Integer)token.getId();
Fc_review_record record = service.queryReviewRecord(user_id, review_id);
List<Fc_review_record_ext> extList = service.queryReviewRecordExtList(record.getId()); List<Fc_review_record_ext> extList = service.queryReviewRecordExtList(record.getId());
return Rjx.jsonOk().setData(record).set("exts", extList); return Rjx.jsonOk().setData(record).set("exts", extList);
} }
@ResponseBody
@Transactional
@PostMapping("getReviewRecordList")
@ApiOperation("查询审片详情")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "review_id", value="审片ID"),
})
public Object queryReviewRecordList(Integer review_id) {
List<Map<String, Object>> list = service.queryReviewRecordListByReviewId(review_id);
return Rjx.jsonOk().setData(list);
}
} }
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