成本价折线图
利润率柱状图
This commit is contained in:
@@ -6,7 +6,9 @@ import com.czg.order.entity.ShopProdStatistic;
|
||||
import com.czg.order.param.DataSummaryTradeParam;
|
||||
import com.czg.order.service.ShopOrderStatisticService;
|
||||
import com.czg.order.service.ShopProdStatisticService;
|
||||
import com.czg.order.vo.CostLineChartVO;
|
||||
import com.czg.order.vo.CountPayTypeVo;
|
||||
import com.czg.order.vo.ProfitRateVO;
|
||||
import com.czg.order.vo.TotalVo;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
@@ -71,7 +73,7 @@ public class DataSummaryController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 销售趋势柱状图 左下
|
||||
* 销售趋势柱状图 左下1
|
||||
*
|
||||
* @param day 天数
|
||||
* @param shopId 店铺id
|
||||
@@ -88,7 +90,7 @@ public class DataSummaryController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付占比饼图 左下
|
||||
* 支付占比饼图 左下2
|
||||
*
|
||||
* @param day 天数
|
||||
* @param shopId 店铺id
|
||||
@@ -102,4 +104,38 @@ public class DataSummaryController {
|
||||
List<CountPayTypeVo> data = orderStatisticService.getSummaryPayTypeData(shopId, day);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 毛利率/净利率 柱状图 左下下
|
||||
* 利润率柱状图
|
||||
* @param day 天数
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
@GetMapping("profitRateBarChart")
|
||||
@SaAdminCheckPermission(value = "dataSummary:profitRateBarChart", name = "毛利率/净利率柱状图 左下下")
|
||||
public CzgResult<List<ProfitRateVO>> profitRateBarChart(@RequestParam Integer day, @RequestParam(required = false) Long shopId) {
|
||||
AssertUtil.isNull(day, "天数不能为空");
|
||||
if (shopId == null) {
|
||||
shopId = StpKit.USER.getShopId();
|
||||
}
|
||||
List<ProfitRateVO> data = orderStatisticService.profitRateBarChart(shopId, day);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成本折线图 右下下
|
||||
* @param day 天数
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
@GetMapping("costLineChart")
|
||||
@SaAdminCheckPermission(value = "dataSummary:costLineChart", name = "成本折线图 右下下")
|
||||
public CzgResult<List<CostLineChartVO>> costLineChart(@RequestParam Integer day, @RequestParam(required = false) Long shopId) {
|
||||
AssertUtil.isNull(day, "天数不能为空");
|
||||
if (shopId == null) {
|
||||
shopId = StpKit.USER.getShopId();
|
||||
}
|
||||
List<CostLineChartVO> data = orderStatisticService.costLineChart(shopId, day);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user