|
@@ -12,11 +12,7 @@ import com.cdf.service.ITotalDataService;
|
|
|
import com.cdf.util.DateUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.naming.ldap.PagedResultsControl;
|
|
@@ -113,11 +109,16 @@ public class PageDataApiController {
|
|
|
|
|
|
|
|
|
@GetMapping("/pageData")
|
|
|
- public ResultData getPageData(@RequestParam (required = false) String day,
|
|
|
+ public ResultData getPageData(@RequestParam(required = false) String day,
|
|
|
@RequestParam(required = false,defaultValue = "0") Integer type,
|
|
|
@RequestParam(required = false) String startDay,
|
|
|
@RequestParam(required = false) String endDay) throws Exception {
|
|
|
return ResultData.ok(totalDataService.getByType(type,day,startDay,endDay));
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/pageDataList")
|
|
|
+ public ResultData pageDataList(@RequestParam(required = false) List<String> days) throws Exception {
|
|
|
+ return ResultData.ok(totalDataService.getListByType(days));
|
|
|
+ }
|
|
|
}
|
|
|
|