|
|
@@ -1,5 +1,6 @@
|
|
|
package org.jeecg.modules.system.app.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -7,6 +8,7 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.modules.system.app.service.IStatisticsService;
|
|
|
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 javax.annotation.Resource;
|
|
|
@@ -70,4 +72,33 @@ public class StatisticsController {
|
|
|
public Result<List<Map<String, Object>>> findMonthSaleTrend(){
|
|
|
return Result.ok(statisticsService.findMonthSaleTrend());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <p>分页查询店铺资金总览</p>
|
|
|
+ * @author SheepHy
|
|
|
+ * @param 参数描述,参数为类则包含{@link Object}
|
|
|
+ * @return 返回值描述,如无返回值则为void 返回值为类则包含{@link object}
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping("/findShopAccountOverview")
|
|
|
+ @Operation(summary = "分页查询店铺资金总览-平台")
|
|
|
+ public Result<List<Map<String, Object>>> findShopAccountOverview(@RequestParam(name="pageNo",required=false) Integer pageNo,
|
|
|
+ @RequestParam(name="pageSize",required=false) Integer pageSize,
|
|
|
+ @RequestParam(name="name",required=false) String name){
|
|
|
+ Page<Map<String, Object>> page = new Page<>(pageNo, pageSize);
|
|
|
+ return Result.ok(statisticsService.findShopAccountOverview(page,name));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <p>查询店铺资金总览-门店统计</p>
|
|
|
+ * @author SheepHy
|
|
|
+ * @param 参数描述,参数为类则包含{@link Object}
|
|
|
+ * @return 返回值描述,如无返回值则为void 返回值为类则包含{@link object}
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping("/findShopAccountOverviewDept")
|
|
|
+ @Operation(summary = "查询店铺资金总览-门店统计")
|
|
|
+ public Result<List<Map<String, Object>>> findShopAccountOverviewDept(){
|
|
|
+ return Result.ok(statisticsService.findShopAccountOverviewDept());
|
|
|
+ }
|
|
|
}
|