Commit 415998e5 authored by Quxl's avatar Quxl

x

parent f40e29a1
......@@ -92,6 +92,6 @@ public interface ReviewService {
void deleteDoubtfulById(Integer id);
Fc_review_record queryReviewRecord(Integer record_id);
Fc_review_record queryReviewRecordById(Integer record_id);
}
\ No newline at end of file
......@@ -575,7 +575,7 @@ public class ReviewServiceImpl implements ReviewService {
}
@Override
public Fc_review_record queryReviewRecord(Integer record_id) {
public Fc_review_record queryReviewRecordById(Integer record_id) {
return jdbcTemplate.queryForBean("select * from fc_review_record where id = ?", Fc_review_record.class, record_id);
}
......
......@@ -155,7 +155,7 @@ public class AdminReviewController {
@ApiImplicitParam(paramType = "query", dataType = "double", required = false, allowMultiple=true, name = "ext_score", value="奖项得分"),
})
public Object saveReviewRecord(Integer record_id, Integer review_state, Double review_score, String review_text, String review_text_1, String review_text_2, String review_text_3, String review_text_4, String[] ext_title, Double[] ext_score) {
Fc_review_record ru = reviewService.queryReviewRecord(record_id);
Fc_review_record ru = reviewService.queryReviewRecordById(record_id);
ru.setReview_score(review_score);
ru.setReview_state(review_state);
ru.setReview_text(review_text);
......@@ -213,7 +213,7 @@ public class AdminReviewController {
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, name = "record_id", value="审片记录ID"),
})
public Object getReviewRecord(Integer record_id) {
Fc_review_record record = reviewService.queryReviewRecord(record_id);
Fc_review_record record = reviewService.queryReviewRecordById(record_id);
List<Fc_review_record_ext> extList = reviewService.queryReviewRecordExtList(record.getId());
return Rjx.jsonOk().setData(record).set("exts", extList);
}
......
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