Commit 17d44df1 authored by Quxl's avatar Quxl

x

parent f30421b2
...@@ -12,4 +12,6 @@ public interface ReviewService { ...@@ -12,4 +12,6 @@ public interface ReviewService {
List<Map<String, Object>> queryReviewList(boolean is_review, Integer user_id, Date push_date, Integer film_type_id, Integer enroll_type_id, String keyword, Page page); List<Map<String, Object>> queryReviewList(boolean is_review, Integer user_id, Date push_date, Integer film_type_id, Integer enroll_type_id, String keyword, Page page);
Integer queryReviewRound(Integer film_id, Integer enroll_type_id);
} }
\ No newline at end of file
...@@ -60,5 +60,11 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -60,5 +60,11 @@ public class ReviewServiceImpl implements ReviewService {
return jdbcTemplate.queryForList("select * from enum_doubtful"); return jdbcTemplate.queryForList("select * from enum_doubtful");
} }
@Override
public Integer queryReviewRound(Integer film_id, Integer enroll_type_id) {
String sql = "select review_round from fc_review where film_id = ? and enroll_type_id = ?";
return null;
}
} }
...@@ -193,7 +193,7 @@ public class AdminAuthController { ...@@ -193,7 +193,7 @@ public class AdminAuthController {
public Object getAdminAuth() throws FileNotFoundException { public Object getAdminAuth() throws FileNotFoundException {
Fc_admin admin = (Fc_admin)tokenService.getTokenObj(); Fc_admin admin = (Fc_admin)tokenService.getTokenObj();
List<Map<String, Object>> groupMenuList = service.queryGroupMenuList(admin.getGroup_id()); List<Map<String, Object>> groupMenuList = service.queryGroupMenuList(admin.getGroup_id());
return Rjx.jsonOk().setData(groupMenuList); return Rjx.jsonOk().set("admin", admin).setData(groupMenuList);
} }
@ResponseBody @ResponseBody
......
...@@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.ReviewService; import com.egolm.film.api.service.ReviewService;
import com.egolm.film.api.service.UserTokenService; import com.egolm.film.api.service.UserTokenService;
import com.egolm.film.model.LoginToken; import com.egolm.film.model.LoginToken;
...@@ -33,6 +33,9 @@ public class UserReviewController { ...@@ -33,6 +33,9 @@ public class UserReviewController {
@Autowired @Autowired
private ReviewService service; private ReviewService service;
@Autowired
private FilmService filmService;
@ResponseBody @ResponseBody
@PostMapping("review_list") @PostMapping("review_list")
...@@ -67,6 +70,7 @@ public class UserReviewController { ...@@ -67,6 +70,7 @@ public class UserReviewController {
@ApiImplicitParam(paramType = "query", dataType = "date", required = false, name = "play_time", value="播放时间{yyyy-MM-dd HH:mm:ss}"), @ApiImplicitParam(paramType = "query", dataType = "date", required = false, name = "play_time", value="播放时间{yyyy-MM-dd HH:mm:ss}"),
}) })
public Object saveDoubtful(Integer film_id, Integer enroll_type_id, Integer doubtful_type_id, String doubtful_text, @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")Date play_time) { public Object saveDoubtful(Integer film_id, Integer enroll_type_id, Integer doubtful_type_id, String doubtful_text, @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")Date play_time) {
Integer review_round = service.queryReviewRound(film_id, enroll_type_id);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
} }
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