统计 传参问题
This commit is contained in:
@@ -53,9 +53,8 @@ public class DataSummaryController {
|
||||
if (hasKey) {
|
||||
return CzgResult.failure("数据统计任务正在运行中,请稍后再试");
|
||||
}
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
if (param.getShopId() == null) {
|
||||
param.setShopId(shopId);
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
}
|
||||
ShopOrderStatistic data = orderStatisticService.getArchiveTradeData(param.getShopId(), param.getRangeType(), param.getBeginDate(), param.getEndDate());
|
||||
return CzgResult.success(data);
|
||||
@@ -66,8 +65,10 @@ public class DataSummaryController {
|
||||
*/
|
||||
@GetMapping("productSaleDate")
|
||||
@SaAdminCheckPermission(value = "dataSummary:productSaleData", name = "商品销售-右下")
|
||||
public CzgResult<List<ShopProdStatistic>> getProductSaleData(@RequestParam Integer day) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
public CzgResult<List<ShopProdStatistic>> getProductSaleData(@RequestParam Integer day,@RequestParam(required = false) Long shopId) {
|
||||
if (shopId == null) {
|
||||
shopId = StpKit.USER.getShopId();
|
||||
}
|
||||
List<ShopProdStatistic> data = prodStatisticService.getArchiveTradeDataBy10(shopId,day);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
@@ -38,9 +38,8 @@ public class SaleSummaryController {
|
||||
@OperationLog("统计")
|
||||
//@SaAdminCheckPermission("saleSummary:count")
|
||||
public CzgResult<SaleSummaryCountVo> summaryCount(SaleSummaryCountParam param) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
if (param.getShopId() == null) {
|
||||
param.setShopId(shopId);
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
}
|
||||
SaleSummaryCountVo data = prodStatisticService.summaryCount(param);
|
||||
return CzgResult.success(data);
|
||||
@@ -53,9 +52,8 @@ public class SaleSummaryController {
|
||||
@OperationLog("分页")
|
||||
//@SaAdminCheckPermission("saleSummary:page")
|
||||
public CzgResult<List<ShopProdStatistic>> summaryPage(SaleSummaryCountParam param) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
if (param.getShopId() == null) {
|
||||
param.setShopId(shopId);
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
}
|
||||
List<ShopProdStatistic> list = prodStatisticService.getArchiveTradeData(param);
|
||||
return CzgResult.success(list);
|
||||
@@ -64,9 +62,8 @@ public class SaleSummaryController {
|
||||
@ResponseExcel(name = "销售统计明细")
|
||||
@GetMapping("/export")
|
||||
public List<ShopProdStatistic> summaryExport(SaleSummaryCountParam param) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
if (param.getShopId() == null) {
|
||||
param.setShopId(shopId);
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
}
|
||||
return prodStatisticService.getArchiveTradeData(param);
|
||||
}
|
||||
|
||||
@@ -59,9 +59,8 @@ public class TableSummaryController {
|
||||
@OperationLog("导出")
|
||||
//@SaAdminCheckPermission("tableSummary:export")
|
||||
public List<TableSummaryExportVo> summaryExport(TableSummaryParam param) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
if (param.getShopId() == null) {
|
||||
param.setShopId(shopId);
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
}
|
||||
return tableSummaryService.summaryExportList(param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user