From c19bcccbe4f091b4286a3ff40ee4a97c4e9848d6 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 19 三月 2026 10:22:37 +0800
Subject: [PATCH] 修改bom产品信息,如果有关联生成订单完成数量>0,则不许改;否则修改关联的产品结构,订单产品信息,工艺路线产品信息

---
 src/main/java/com/ruoyi/other/controller/TempFileController.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/other/controller/TempFileController.java b/src/main/java/com/ruoyi/other/controller/TempFileController.java
index 810c532..1175eb0 100644
--- a/src/main/java/com/ruoyi/other/controller/TempFileController.java
+++ b/src/main/java/com/ruoyi/other/controller/TempFileController.java
@@ -33,6 +33,15 @@
         }
     }
 
+    @PostMapping("/uploadByCommon")
+    public AjaxResult uploadByCommon(MultipartFile file, Integer type, Long id) {
+        try {
+            return AjaxResult.success(tempFileService.uploadByCommon(file, type,id));
+        } catch (Exception e) {
+            return AjaxResult.error(e.getMessage());
+        }
+    }
+
     @PostMapping("uploadFile")
     public AjaxResult uploadFile(@RequestBody ProductRecordDto productRecordDto) {
         try {

--
Gitblit v1.9.3