接口目录
This commit is contained in:
@@ -47,7 +47,7 @@ public class DataSummaryController {
|
||||
* 营业板块-上半部分
|
||||
*/
|
||||
@GetMapping("trade")
|
||||
@SaAdminCheckPermission(value = "dataSummary:trade", name = "营业板块-上半部分")
|
||||
@SaAdminCheckPermission(parentName = "营业板块",value = "dataSummary:trade", name = "营业板块-上半部分")
|
||||
public CzgResult<ShopOrderStatistic> getTradeData(@Validated DataSummaryTradeParam param) {
|
||||
Boolean hasKey = redisService.hasKey("task:statistic:date:");
|
||||
if (hasKey) {
|
||||
@@ -64,7 +64,7 @@ public class DataSummaryController {
|
||||
* 商品销售 右下
|
||||
*/
|
||||
@GetMapping("productSaleDate")
|
||||
@SaAdminCheckPermission(value = "dataSummary:productSaleData", name = "商品销售-右下")
|
||||
@SaAdminCheckPermission(parentName = "营业板块",value = "dataSummary:productSaleData", name = "商品销售-右下")
|
||||
public CzgResult<List<ShopProdStatistic>> getProductSaleData(@RequestParam Integer day,@RequestParam(required = false) Long shopId) {
|
||||
if (shopId == null) {
|
||||
shopId = StpKit.USER.getShopId();
|
||||
@@ -80,7 +80,7 @@ public class DataSummaryController {
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
@GetMapping("dateAmount")
|
||||
@SaAdminCheckPermission(value = "dataSummary:dateAmount", name = "销售趋势柱状图 左下")
|
||||
@SaAdminCheckPermission(parentName = "营业板块",value = "dataSummary:dateAmount", name = "销售趋势柱状图 左下")
|
||||
public CzgResult<List<TotalVo>> getDateAmount(@RequestParam Integer day, @RequestParam(required = false) Long shopId) {
|
||||
AssertUtil.isNull(day, "天数不能为空");
|
||||
if (shopId == null) {
|
||||
@@ -97,7 +97,7 @@ public class DataSummaryController {
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
@GetMapping("datePayType")
|
||||
@SaAdminCheckPermission(value = "dataSummary:datePayType", name = "支付占比饼图 左下2")
|
||||
@SaAdminCheckPermission(parentName = "营业板块",value = "dataSummary:datePayType", name = "支付占比饼图 左下2")
|
||||
public CzgResult<List<CountPayTypeVo>> shopSummaryPayType(@RequestParam Integer day, @RequestParam(required = false) Long shopId) {
|
||||
if (shopId == null) {
|
||||
shopId = StpKit.USER.getShopId();
|
||||
@@ -113,7 +113,7 @@ public class DataSummaryController {
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
@GetMapping("profitRateBarChart")
|
||||
@SaAdminCheckPermission(value = "dataSummary:profitRateBarChart", name = "毛利率/净利率柱状图 左下下")
|
||||
@SaAdminCheckPermission(parentName = "营业板块",value = "dataSummary:profitRateBarChart", name = "毛利率/净利率柱状图 左下下")
|
||||
public CzgResult<List<ProfitRateVO>> profitRateBarChart(@RequestParam Integer day, @RequestParam(required = false) Long shopId) {
|
||||
AssertUtil.isNull(day, "天数不能为空");
|
||||
if (shopId == null) {
|
||||
@@ -129,7 +129,7 @@ public class DataSummaryController {
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
@GetMapping("costLineChart")
|
||||
@SaAdminCheckPermission(value = "dataSummary:costLineChart", name = "成本折线图 右下下")
|
||||
@SaAdminCheckPermission(parentName = "营业板块",value = "dataSummary:costLineChart", name = "成本折线图 右下下")
|
||||
public CzgResult<List<CostLineChartVO>> costLineChart(@RequestParam Integer day, @RequestParam(required = false) Long shopId) {
|
||||
AssertUtil.isNull(day, "天数不能为空");
|
||||
if (shopId == null) {
|
||||
|
||||
@@ -37,7 +37,7 @@ public class PointsGoodsRecordController {
|
||||
* 积分:积分商品:兑换记录
|
||||
*/
|
||||
@GetMapping("page")
|
||||
@SaAdminCheckPermission(value = "points:goodsRecord:list", name = "积分-积分商品-兑换记录")
|
||||
@SaAdminCheckPermission(parentName = "积分相关", value = "points:goodsRecord:list", name = "积分-积分商品-兑换记录")
|
||||
public CzgResult<Page<MkPointsGoodsRecordDTO>> getGoodsRecordPage(MkPointsGoodsRecordQueryDTO param) {
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
Page<MkPointsGoodsRecordDTO> page = goodsRecordService.getGoodsRecordPage(param);
|
||||
@@ -48,7 +48,7 @@ public class PointsGoodsRecordController {
|
||||
* 积分:积分商品:统计
|
||||
*/
|
||||
@GetMapping("total")
|
||||
@SaAdminCheckPermission(value = "points:goodsRecord:total", name = "积分-积分商品-统计")
|
||||
@SaAdminCheckPermission(parentName = "积分相关", value = "points:goodsRecord:total", name = "积分-积分商品-统计")
|
||||
public CzgResult<PointsExchangeSummaryVo> total(MkPointsGoodsRecordQueryDTO param) {
|
||||
param.setShopId(StpKit.USER.getShopId());
|
||||
PointsExchangeSummaryVo data = goodsRecordService.total(param);
|
||||
@@ -62,7 +62,7 @@ public class PointsGoodsRecordController {
|
||||
*/
|
||||
@PostMapping("checkout")
|
||||
@OperationLog("积分兑换-核销")
|
||||
@SaAdminCheckPermission(value = "points:goodsRecord:checkout", name = "积分-积分商品-核销")
|
||||
@SaAdminCheckPermission(parentName = "积分相关", value = "points:goodsRecord:checkout", name = "积分-积分商品-核销")
|
||||
public CzgResult<Boolean> checkout(@RequestBody String couponCode) {
|
||||
return CzgResult.success(goodsRecordService.checkout(couponCode, StpKit.USER.getShopId()));
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class TableController {
|
||||
* 按台桌查看
|
||||
*/
|
||||
@GetMapping("getKitchenTable")
|
||||
@SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看")
|
||||
@SaAdminCheckPermission(parentName = "后厨相关", value = "kitchen:table", name = "后厨-按台桌查看")
|
||||
public CzgResult<List<KitchenTableVO>> getKitchenTable(@RequestParam(required = false) String tableName, @RequestParam(required = false) Long areaId) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
List<KitchenTableVO> kitchenTables = kitchenDetailMapper.getKitchenTable(shopId, tableName, areaId);
|
||||
@@ -44,7 +44,7 @@ public class TableController {
|
||||
* 按台桌查看 商品内容
|
||||
*/
|
||||
@GetMapping("getKitchenTableFoods")
|
||||
@SaAdminCheckPermission(value = "kitchen:tableFood", name = "后厨-按台桌查看商品内容")
|
||||
@SaAdminCheckPermission(parentName = "后厨相关", value = "kitchen:tableFood", name = "后厨-按台桌查看商品内容")
|
||||
public CzgResult<List<KitchenTableFoodVO>> getKitchenTableFoods(@RequestParam(required = false) Long orderId,
|
||||
@RequestParam(required = false) String tableCode,
|
||||
@RequestParam(required = false) Long isNoTable) {
|
||||
@@ -61,7 +61,7 @@ public class TableController {
|
||||
* 按商品查看
|
||||
*/
|
||||
@GetMapping("getKitchenFood")
|
||||
@SaAdminCheckPermission(value = "kitchen:table", name = "后厨-按台桌查看")
|
||||
@SaAdminCheckPermission(parentName = "后厨相关", value = "kitchen:table", name = "后厨-按台桌查看")
|
||||
public CzgResult<List<KitchenFoodVO>> getKitchenFood(@RequestParam(required = false) String productName, @RequestParam(required = false) Long categoryId) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
List<KitchenFoodVO> kitchenFood = kitchenDetailMapper.getKitchenFood(shopId, productName, categoryId);
|
||||
|
||||
Reference in New Issue
Block a user