From c47c8647f514eaa8c6a7624185b55738e8625c2c Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 05 十一月 2026 13:37:31 +0800
Subject: [PATCH] feat(product-issue): 支持按任务工序校验和选择领料物料
---
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/productsales/MesWmProductSalesController.java | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/productsales/MesWmProductSalesController.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/productsales/MesWmProductSalesController.java
index 79e242d..6222b81 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/productsales/MesWmProductSalesController.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/productsales/MesWmProductSalesController.java
@@ -79,7 +79,6 @@
@GetMapping("/get")
@Operation(summary = "鑾峰緱閿�鍞嚭搴撳崟")
@Parameter(name = "id", description = "缂栧彿", required = true, example = "1024")
- @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')")
public CommonResult<MesWmProductSalesRespVO> getProductSales(@RequestParam("id") Long id) {
MesWmProductSalesDO sales = productSalesService.getProductSales(id);
if (sales == null) {
@@ -90,7 +89,6 @@
@GetMapping("/page")
@Operation(summary = "鑾峰緱閿�鍞嚭搴撳崟鍒嗛〉")
- @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')")
public CommonResult<PageResult<MesWmProductSalesRespVO>> getProductSalesPage(
@Valid MesWmProductSalesPageReqVO pageReqVO) {
PageResult<MesWmProductSalesDO> pageResult = productSalesService.getProductSalesPage(pageReqVO);
@@ -121,7 +119,6 @@
@GetMapping("/check-quantity")
@Operation(summary = "鏍¢獙閿�鍞嚭搴撳崟鏁伴噺")
@Parameter(name = "id", description = "缂栧彿", required = true)
- @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')")
public CommonResult<Boolean> checkProductSalesQuantity(@RequestParam("id") Long id) {
return success(productSalesService.checkProductSalesQuantity(id));
}
@@ -172,7 +169,7 @@
.contactName("寮犱笁").remark("").build()
);
// 杈撳嚭
- ExcelUtils.write(response, "閿�鍞嚭搴撳崟瀵煎叆妯℃澘.xls", "閿�鍞嚭搴撳崟鍒楄〃", MesWmProductSalesImportExcelVO.class, list);
+ ExcelUtils.writeTemplate(response, "閿�鍞嚭搴撳崟瀵煎叆妯℃澘.xls", "閿�鍞嚭搴撳崟鍒楄〃", MesWmProductSalesImportExcelVO.class, list);
}
@PostMapping("/import")
@@ -209,4 +206,4 @@
});
}
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3