From 381e02b9eccbe953b31d09f2af1c2ce77c816140 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期六, 07 十一月 2026 14:51:05 +0800
Subject: [PATCH] fix(mes): 隔离设备物料并支持销售产品映射
---
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/cal/plan/MesCalPlanController.java | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/cal/plan/MesCalPlanController.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/cal/plan/MesCalPlanController.java
index 4498020..73355e2 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/cal/plan/MesCalPlanController.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/cal/plan/MesCalPlanController.java
@@ -78,7 +78,6 @@
@GetMapping("/get")
@Operation(summary = "鑾峰緱鎺掔彮璁″垝")
@Parameter(name = "id", description = "缂栧彿", required = true, example = "1024")
- @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')")
public CommonResult<MesCalPlanRespVO> getPlan(@RequestParam("id") Long id) {
MesCalPlanDO plan = planService.getPlan(id);
return success(BeanUtils.toBean(plan, MesCalPlanRespVO.class));
@@ -86,7 +85,6 @@
@GetMapping("/page")
@Operation(summary = "鑾峰緱鎺掔彮璁″垝鍒嗛〉")
- @PreAuthorize("@ss.hasPermission('mes:cal-plan:query')")
public CommonResult<PageResult<MesCalPlanRespVO>> getPlanPage(@Valid MesCalPlanPageReqVO pageReqVO) {
PageResult<MesCalPlanDO> pageResult = planService.getPlanPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, MesCalPlanRespVO.class));
@@ -121,7 +119,7 @@
.remark("").build()
);
// 杈撳嚭
- ExcelUtils.write(response, "鎺掔彮璁″垝瀵煎叆妯℃澘.xls", "鎺掔彮璁″垝鍒楄〃", MesCalPlanImportExcelVO.class, list);
+ ExcelUtils.writeTemplate(response, "鎺掔彮璁″垝瀵煎叆妯℃澘.xls", "鎺掔彮璁″垝鍒楄〃", MesCalPlanImportExcelVO.class, list);
}
@PostMapping("/import")
--
Gitblit v1.9.3