统计数据导出
This commit is contained in:
@@ -37,14 +37,19 @@ public class ShopProdCategoryController {
|
||||
@Resource
|
||||
private ShopSyncService shopSyncService;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*/
|
||||
@GetMapping("page")
|
||||
@OperationLog("商品分类-分页")
|
||||
//@SaAdminCheckPermission("shopProdCategory:page")
|
||||
public CzgResult<Page<ShopProdCategoryDTO>> getShopProdCategoryPage(ShopProdCategoryDTO param) {
|
||||
Page<ShopProdCategoryDTO> data = shopProdCategoryService.getShopProdCategoryPage(param);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@GetMapping("list")
|
||||
@OperationLog("商品分类-列表")
|
||||
//@SaAdminCheckPermission("shopProdCategory:list")
|
||||
@@ -53,12 +58,18 @@ public class ShopProdCategoryController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出
|
||||
*/
|
||||
@GetMapping("/export")
|
||||
@OperationLog("商品分类-导出")
|
||||
public void exportShopProdCategory(ShopProdCategoryDTO param, HttpServletResponse response) {
|
||||
shopProdCategoryService.exportShopProdCategory(param, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
@OperationLog("商品分类-详情")
|
||||
//@SaAdminCheckPermission("shopProdCategory:info")
|
||||
@@ -68,6 +79,9 @@ public class ShopProdCategoryController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
@PostMapping
|
||||
@OperationLog("商品分类-新增")
|
||||
//@SaAdminCheckPermission("shopProdCategory:add")
|
||||
@@ -77,6 +91,9 @@ public class ShopProdCategoryController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@PutMapping
|
||||
@OperationLog("商品分类-修改")
|
||||
//@SaAdminCheckPermission("shopProdCategory:update")
|
||||
@@ -86,6 +103,9 @@ public class ShopProdCategoryController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@DeleteMapping("{id}")
|
||||
@OperationLog("商品分类-删除")
|
||||
//@SaAdminCheckPermission("shopProdCategory:delete")
|
||||
@@ -96,6 +116,9 @@ public class ShopProdCategoryController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 禁用
|
||||
*/
|
||||
@PostMapping("disable/{id}")
|
||||
@OperationLog("商品分类-禁用")
|
||||
//@SaAdminCheckPermission("shopProdCategory:able")
|
||||
@@ -107,6 +130,9 @@ public class ShopProdCategoryController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
@PostMapping("enable/{id}")
|
||||
@OperationLog("商品分类-启用")
|
||||
//@SaAdminCheckPermission("shopProdCategory:able")
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 商品单位
|
||||
* 管理端/商品单位
|
||||
*
|
||||
* @author Tankaikai tankaikai@aliyun.com
|
||||
* @since 1.0 2025-02-10
|
||||
@@ -37,7 +37,9 @@ public class ShopProdUnitController {
|
||||
@Resource
|
||||
private ShopSyncService shopSyncService;
|
||||
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*/
|
||||
@GetMapping("page")
|
||||
@OperationLog("商品单位-分页")
|
||||
//@SaAdminCheckPermission("shopProdUnit:page")
|
||||
@@ -46,6 +48,9 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@GetMapping("list")
|
||||
@OperationLog("商品单位-列表")
|
||||
//@SaAdminCheckPermission("shopProdUnit:list")
|
||||
@@ -54,12 +59,18 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出
|
||||
*/
|
||||
@GetMapping("/export")
|
||||
@OperationLog("商品单位-导出")
|
||||
public void exportProduct(ShopProdUnitDTO param, HttpServletResponse response) {
|
||||
shopProdUnitService.exportShopProdUnit(param, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
@OperationLog("商品单位-详情")
|
||||
//@SaAdminCheckPermission("shopProdUnit:info")
|
||||
@@ -69,6 +80,9 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
@PostMapping
|
||||
@OperationLog("商品单位-新增")
|
||||
//@SaAdminCheckPermission("shopProdUnit:add")
|
||||
@@ -78,6 +92,9 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@PutMapping
|
||||
@OperationLog("商品单位-修改")
|
||||
//@SaAdminCheckPermission("shopProdUnit:update")
|
||||
@@ -87,6 +104,9 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@DeleteMapping("{id}")
|
||||
@OperationLog("商品单位-删除")
|
||||
//@SaAdminCheckPermission("shopProdUnit:delete")
|
||||
@@ -97,6 +117,9 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 禁用
|
||||
*/
|
||||
@PostMapping("disable/{id}")
|
||||
@OperationLog("商品单位-禁用")
|
||||
//@SaAdminCheckPermission("shopProdUnit:able")
|
||||
@@ -108,6 +131,9 @@ public class ShopProdUnitController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
@PostMapping("enable/{id}")
|
||||
@OperationLog("商品单位-启用")
|
||||
//@SaAdminCheckPermission("shopProdUnit:able")
|
||||
|
||||
Reference in New Issue
Block a user