Commit 24c77da7 authored by Quxl's avatar Quxl

x

parent 04f92e2e
...@@ -96,6 +96,6 @@ public interface ReviewService { ...@@ -96,6 +96,6 @@ public interface ReviewService {
Map<String, Object> queryReviewRecordMapById(Integer record_id); Map<String, Object> queryReviewRecordMapById(Integer record_id);
Integer queryReviewRound(int film_id); Fc_review queryReview(int film_id);
} }
\ No newline at end of file
...@@ -682,10 +682,10 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -682,10 +682,10 @@ public class ReviewServiceImpl implements ReviewService {
} }
@Override @Override
public Integer queryReviewRound(int film_id) { public Fc_review queryReview(int film_id) {
List<Fc_review> reviewList = jdbcTemplate.queryForBeans("select * from fc_review where film_id = ? order by review_time desc limit 1", Fc_review.class, film_id); List<Fc_review> reviewList = jdbcTemplate.queryForBeans("select * from fc_review where film_id = ? order by review_time desc limit 1", Fc_review.class, film_id);
if(reviewList != null && reviewList.size() == 1) { if(reviewList != null && reviewList.size() == 1) {
return reviewList.get(0).getReview_round(); return reviewList.get(0);
} }
return null; return null;
} }
......
...@@ -26,6 +26,7 @@ import com.egolm.film.bean.Fc_member_film; ...@@ -26,6 +26,7 @@ import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_issuer; import com.egolm.film.bean.Fc_member_film_issuer;
import com.egolm.film.bean.Fc_member_film_playactor; import com.egolm.film.bean.Fc_member_film_playactor;
import com.egolm.film.bean.Fc_member_film_show; import com.egolm.film.bean.Fc_member_film_show;
import com.egolm.film.bean.Fc_review;
import com.egolm.film.bean.model.Fc_member_film_base_model; import com.egolm.film.bean.model.Fc_member_film_base_model;
import com.egolm.film.config.WebMvcConfig; import com.egolm.film.config.WebMvcConfig;
import com.egolm.film.model.LoginToken; import com.egolm.film.model.LoginToken;
...@@ -67,13 +68,13 @@ public class FilmController { ...@@ -67,13 +68,13 @@ public class FilmController {
List<Fc_member_film_issuer> issuerList = filmService.queryMemberFilmIssuerList(memberFilm.getId()); List<Fc_member_film_issuer> issuerList = filmService.queryMemberFilmIssuerList(memberFilm.getId());
List<Fc_member_film_playactor> playactorList = filmService.queryMemberFilmPlayactorList(memberFilm.getId()); List<Fc_member_film_playactor> playactorList = filmService.queryMemberFilmPlayactorList(memberFilm.getId());
List<Fc_member_film_show> showList = filmService.queryMemberFilmShowList(memberFilm.getId()); List<Fc_member_film_show> showList = filmService.queryMemberFilmShowList(memberFilm.getId());
Integer review_round = reviewService.queryReviewRound(member_film_id.intValue()); Fc_review review = reviewService.queryReview(member_film_id.intValue());
return Rjx.jsonOk() return Rjx.jsonOk()
.setData(memberFilm) .setData(memberFilm)
.set("issuerList", issuerList) .set("issuerList", issuerList)
.set("playactorList", playactorList) .set("playactorList", playactorList)
.set("showList", showList) .set("showList", showList)
.set("review_round", review_round); .set("review", review);
} }
@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