|
|
@@ -3,10 +3,7 @@ package com.example.cinema.controller;
|
|
|
import com.example.cinema.bl.StatisticsService;
|
|
|
import com.example.cinema.vo.ResponseVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
@@ -35,6 +32,20 @@ public class StatisticsController {
|
|
|
return statisticsService.getAudiencePriceSevenDays();
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = "statistics/PlacingRate", method = RequestMethod.GET)
|
|
|
+ public ResponseVO getMoviePlacingRateByDate(@RequestParam Date date){
|
|
|
+ return statisticsService.getMoviePlacingRateByDate(date);
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping(value = "statistics/popular/movie", method = RequestMethod.GET)
|
|
|
+ public ResponseVO getPopularMovies(@RequestParam int days, @RequestParam int movieNum){
|
|
|
+ return statisticsService.getPopularMovies(days, movieNum);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|