From 5a7936034ead831cdf69cdae3e46f8170516efc6 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期一, 22 十二月 2025 18:13:06 +0800
Subject: [PATCH] 1.组织架构增加是否末道工序报工字段:islastreport 2.报工调整增加工序编码查询字段:stepcode 3.报工调整增加批量改价接口 4.SOP上传增加文件大小校验
---
VueWebCoreApi/DLL/DAL/SopManageMentDAL.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/VueWebCoreApi/DLL/DAL/SopManageMentDAL.cs b/VueWebCoreApi/DLL/DAL/SopManageMentDAL.cs
index f2233ab..bea0bc9 100644
--- a/VueWebCoreApi/DLL/DAL/SopManageMentDAL.cs
+++ b/VueWebCoreApi/DLL/DAL/SopManageMentDAL.cs
@@ -347,6 +347,13 @@
}
else
{
+ //鍒ゆ柇涓婁紶鏂囦欢澶у皬鏄惁瓒呰繃10M
+ if (file.Length > 1024 * 1024 * 10)
+ {
+ mes.code = "300";
+ mes.message = "鏂囦欢澶у皬涓嶈兘瓒呰繃10MB锛�";
+ return mes;
+ }
//鑾峰彇涓婁紶鏂囦欢,缁勫悎瀛樺偍璺緞
string FileName = "SOP" + DateTime.Now.ToString("yyyyMMddhhmmss");
string filePath = "wwwroot/ProcessSopFile/" + FileName + file.FileName; //閫氳繃姝ゅ璞¤幏鍙栨枃浠跺悕(瀛樻枃浠跺湴鍧�)
--
Gitblit v1.9.3