From 2fd658134344c18e9f2a2eb2c2099d0b0edf205a Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期三, 25 三月 2026 16:08:10 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
---
WebAPI/Controllers/MJGL/Sc_MouldProdBackBillController.cs | 25 ++-----------------------
1 files changed, 2 insertions(+), 23 deletions(-)
diff --git a/WebAPI/Controllers/MJGL/Sc_MouldProdBackBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldProdBackBillController.cs
index c5f9787..b428abf 100644
--- a/WebAPI/Controllers/MJGL/Sc_MouldProdBackBillController.cs
+++ b/WebAPI/Controllers/MJGL/Sc_MouldProdBackBillController.cs
@@ -410,32 +410,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_MouldStockBillMain
- 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 = $@"
UPDATE Sc_MouldStockBillMain
SET HPackQtys = {newPallet}
--
Gitblit v1.9.1