From 481d8165f26fc7e37f0e87f6444ac0340bb563a3 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期二, 03 十一月 2026 18:53:22 +0800
Subject: [PATCH] fix: 移植长辉已验证的四类接口 500/体验问题(不含物料颜色字段)
---
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/barcode/MesWmBarcodeController.java | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/barcode/MesWmBarcodeController.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/barcode/MesWmBarcodeController.java
index 766e0d4..62431b8 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/barcode/MesWmBarcodeController.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/barcode/MesWmBarcodeController.java
@@ -66,7 +66,6 @@
@GetMapping("/get")
@Operation(summary = "鑾峰緱鏉$爜")
@Parameter(name = "id", description = "缂栧彿", required = true, example = "1024")
- @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')")
public CommonResult<MesWmBarcodeRespVO> getBarcode(@RequestParam("id") Long id) {
MesWmBarcodeDO barcode = barcodeService.getBarcode(id);
return success(BeanUtils.toBean(barcode, MesWmBarcodeRespVO.class));
@@ -74,7 +73,6 @@
@GetMapping("/page")
@Operation(summary = "鑾峰緱鏉$爜鍒嗛〉")
- @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')")
public CommonResult<PageResult<MesWmBarcodeRespVO>> getBarcodePage(@Valid MesWmBarcodePageReqVO pageReqVO) {
PageResult<MesWmBarcodeDO> pageResult = barcodeService.getBarcodePage(pageReqVO);
return success(BeanUtils.toBean(pageResult, MesWmBarcodeRespVO.class));
@@ -84,7 +82,6 @@
@Operation(summary = "鏍规嵁涓氬姟瀵硅薄鑾峰彇鏉$爜淇℃伅", description = "鍓嶇鐢ㄤ簬鐢熸垚鏉$爜鍥剧墖")
@Parameter(name = "bizType", description = "涓氬姟绫诲瀷", required = true, example = "102")
@Parameter(name = "bizId", description = "涓氬姟缂栧彿", required = true, example = "1024")
- @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')")
public CommonResult<MesWmBarcodeRespVO> getBarcodeByBusiness(
@RequestParam("bizType") Integer bizType,
@RequestParam("bizId") Long bizId) {
@@ -97,7 +94,6 @@
@Parameter(name = "bizType", description = "涓氬姟绫诲瀷", required = true, example = "1")
@Parameter(name = "bizCode", description = "涓氬姟缂栫爜", required = true, example = "WO202403070001")
@Parameter(name = "bizName", description = "涓氬姟鍚嶇О", required = false, example = "涓�鍙疯溅闂�")
- @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')")
public CommonResult<String> generateBarcodeContent(@RequestParam("bizType") @NotNull(message = "涓氬姟绫诲瀷涓嶈兘涓虹┖") Integer bizType,
@RequestParam("bizCode") @NotBlank(message = "涓氬姟缂栫爜涓嶈兘涓虹┖") String bizCode,
@RequestParam(value = "bizName", required = false) String bizName) {
@@ -111,7 +107,6 @@
@Parameter(name = "format", description = "鏉$爜鏍煎紡锛�1 浜岀淮鐮� / 2 EAN13 / 3 CODE39 / 4 UPC-A / 绌洪粯璁� CODE128锛�", required = false)
@Parameter(name = "width", description = "鍥剧墖瀹藉害", required = false)
@Parameter(name = "height", description = "鍥剧墖楂樺害", required = false)
- @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')")
public CommonResult<String> renderBarcodeImage(@RequestParam("content") @NotBlank(message = "鏉$爜鍐呭涓嶈兘涓虹┖") String content,
@RequestParam(value = "format", required = false) Integer format,
@RequestParam(value = "width", required = false) Integer width,
@@ -122,7 +117,6 @@
@PostMapping("/parse")
@Operation(summary = "瑙f瀽鏉$爜鍐呭", description = "鎸夋潯鐮佸唴瀹圭簿纭懡涓垨妯℃澘鍙嶈В锛岃繑鍥炰笟鍔″瓧娈�")
@Parameter(name = "content", description = "鎵弿鍒扮殑鏉$爜鍐呭", required = true)
- @PreAuthorize("@ss.hasPermission('mes:wm-barcode:query')")
public CommonResult<Map<String, Object>> parseBarcodeContent(@RequestParam("content") @NotBlank(message = "鏉$爜鍐呭涓嶈兘涓虹┖") String content) {
return success(barcodeService.parseBarcodeContent(content));
}
--
Gitblit v1.9.3