From e289ca4fcb8442c5b04954389cfea0092024958d Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期五, 27 三月 2026 17:08:45 +0800
Subject: [PATCH] 上模单、下模单、模具保养记录单、模具点检记录单、 模具故障登记单、模具维修派工单、模具维修记录单、模具维修验收单 增加系统参数 判断是否自动审核
---
WebAPI/Controllers/MJGL/Sc_MouldInRequestBillController.cs | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/WebAPI/Controllers/MJGL/Sc_MouldInRequestBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldInRequestBillController.cs
index d877a7d..2c1d421 100644
--- a/WebAPI/Controllers/MJGL/Sc_MouldInRequestBillController.cs
+++ b/WebAPI/Controllers/MJGL/Sc_MouldInRequestBillController.cs
@@ -350,30 +350,11 @@
if (hmainid <= 0)
return new { code = "0", count = 0, Message = "鍗曟嵁ID涓嶈兘涓虹┖锛�" };
- if (newPallet <= 0)
- return new { code = "0", count = 0, Message = "鎵樻暟蹇呴』澶т簬0锛�" };
+ if (newPallet < 0)
+ return new { code = "0", count = 0, Message = "鎵樻暟涓嶈兘涓鸿礋鏁帮紒" };
-
- string checkAuditSql = $@"
- SELECT HBillStatus
- FROM Sc_MouldInRequestBillMain
- WHERE HInterID = {hmainid}";
- DataSet dsAudit = oCn.RunProcReturn(checkAuditSql, "CheckAudit");
- if (dsAudit != null && dsAudit.Tables[0].Rows.Count > 0)
- {
- int hBillStatus = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HBillStatus"]);
-
- if (hBillStatus == 2)
- {
- return new { code = "0", count = 0, Message = "鍗曟嵁宸插鏍革紝涓嶈兘淇敼鎵樻暟锛�" };
- }
- }
- else
- {
- return new { code = "0", count = 0, Message = "鍗曟嵁涓嶅瓨鍦紒" };
- }
// 鐩存帴鏇存柊鎵樻暟
string updateSql = $@"
--
Gitblit v1.9.1