Browse Source

大屏echarts图接口更换请求方式

feature/dangjian
wanggongfeng 4 years ago
parent
commit
2637007dd0
  1. 12
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/controller/ItemScreenCountController.java

12
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/controller/ItemScreenCountController.java

@ -82,8 +82,8 @@ public class ItemScreenCountController {
* @Author: wgf
* @Date: 2022-10-10 9:56
*/
@PostMapping("categoryAnalysis")
public Result<List<CategoryAnalysisPieResultDTO>> categoryAnalysis(@RequestBody ScreenTotalFormDTO formDTO) {
@GetMapping("categoryAnalysis")
public Result<List<CategoryAnalysisPieResultDTO>> categoryAnalysis(ScreenTotalFormDTO formDTO) {
List<CategoryAnalysisPieResultDTO> list = itemService.categoryAnalysis(formDTO);
return new Result<List<CategoryAnalysisPieResultDTO>>().ok(list);
}
@ -96,8 +96,8 @@ public class ItemScreenCountController {
* @Author: wgf
* @Date: 2022-10-10 9:56
*/
@PostMapping("evaluationTotal")
public Result<List<EvaluationTotalPieResultDTO>> evaluationTotal(@RequestBody ScreenTotalFormDTO formDTO) {
@GetMapping("evaluationTotal")
public Result<List<EvaluationTotalPieResultDTO>> evaluationTotal(ScreenTotalFormDTO formDTO) {
List<EvaluationTotalPieResultDTO> list = itemService.evaluationTotal(formDTO);
return new Result<List<EvaluationTotalPieResultDTO>>().ok(list);
}
@ -110,8 +110,8 @@ public class ItemScreenCountController {
* @Author: wgf
* @Date: 2022-10-11 9:56
*/
@PostMapping("evaluationTrend")
public Result<EvaluationTotalLineResultDTO> evaluationTrend(@RequestBody ScreenTotalFormDTO formDTO) {
@GetMapping("evaluationTrend")
public Result<EvaluationTotalLineResultDTO> evaluationTrend(ScreenTotalFormDTO formDTO) {
EvaluationTotalLineResultDTO list = itemService.evaluationTrend(formDTO);
return new Result<EvaluationTotalLineResultDTO>().ok(list);
}

Loading…
Cancel
Save