From 94d0b18fa47a92a1cb4d1fef4520d35ef2c2c322 Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期二, 16 十二月 2025 21:56:49 +0800
Subject: [PATCH] 产能排产相关后端更新
---
WebApi/Gs.Wom/Service/WompbaManager.cs | 39 +++++++++++++++------------------------
1 files changed, 15 insertions(+), 24 deletions(-)
diff --git a/WebApi/Gs.Wom/Service/WompbaManager.cs b/WebApi/Gs.Wom/Service/WompbaManager.cs
index 5110a82..1a0f410 100644
--- a/WebApi/Gs.Wom/Service/WompbaManager.cs
+++ b/WebApi/Gs.Wom/Service/WompbaManager.cs
@@ -19,7 +19,6 @@
private readonly IHttpContextAccessor _http;
private readonly string _userCode, _userGuid, _orgFids;
-
public WompbaManager(IHttpContextAccessor httpContextAccessor)
{
_http = httpContextAccessor;
@@ -82,7 +81,7 @@
{
LogHelper.Debug(ToString(), ex.Message);
return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
- ReturnCode.Exception, ex.Message);
+ ReturnCode.Exception, ex.Message);
}
return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
@@ -112,8 +111,7 @@
var dset = new DataSet();
try
{
- dset = DbHelperSQL.RunProcedure("[prc_wom_pba_mx]", parameters,
- "0");
+ dset = DbHelperSQL.RunProcedure("[prc_wom_pba_mx]", parameters, "0");
if (dset != null && dset.Tables.Count > 0 &&
dset.Tables[0].Rows.Count > 0)
{
@@ -153,18 +151,18 @@
var _line = m.AboutGuid + _split
+ m.LineId + _split
+ m.Yjkgsj + _split
- + m.Hxsj + _split //鐢熶骇绫诲瀷
+ + m.Hxsj + _split//鐢熶骇绫诲瀷
+ m.Bz + _split
+ m.Pcsl + _split
+ m.Yjwgsj + _split
- + (CheckGuid(_guid)
- ? _guid
- : Guid.Empty.ToString());
+ + (CheckGuid(_guid)? _guid: Guid.Empty.ToString()) + _split
+ + m.IsZddb + _split
+ + m.DepotId + _split
+ + m.DepotSections;
if (_sb.Length > 0)
_sb.Append("~");
_sb.Append(_line);
}
-
dynamic mObj = new ExpandoObject();
mObj.outMsg = "";
mObj.outSum = -1;
@@ -184,8 +182,7 @@
new("@outSum", SqlDbType.Int),
new("@outGuid", SqlDbType.UniqueIdentifier),
new("@outNo", SqlDbType.NVarChar, 300),
- new("@inOrderGuid",
- CheckGuid(guid) ? guid : DBNull.Value),
+ new("@inOrderGuid", CheckGuid(guid) ? guid : DBNull.Value),
new("@inBz", bz),
new("@inCjId", cjId),
new("@inEdtUserGuid", _userGuid),
@@ -216,12 +213,9 @@
}
}
}
-
if (mObj.outSum <= 0)
- return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Exception,
- mObj.outMsg);
- return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Success,
- mObj.outMsg);
+ return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Exception, mObj.outMsg);
+ return ReturnDto<dynamic>.QuickReturn(mObj, ReturnCode.Success, mObj.outMsg);
}
@@ -271,10 +265,8 @@
}
catch (Exception ex)
{
- LogHelper.Debug(ToString(),
- "prc_wom_pba_select error锛�" + ex.Message);
- return ReturnDto<PageList<dynamic>>.QuickReturn(
- default(PageList<dynamic>), ReturnCode.Exception, "璇诲彇澶辫触");
+ LogHelper.Debug(ToString(), "prc_wom_pba_select error锛�" + ex.Message);
+ return ReturnDto<PageList<dynamic>>.QuickReturn( default(PageList<dynamic>), ReturnCode.Exception, "璇诲彇澶辫触");
}
var _pglist = new PageList<dynamic>
@@ -427,7 +419,7 @@
/// <summary>
- /// 瀹℃牳
+ /// 瀹℃牳
/// </summary>
/// <param name="mode"></param>
/// <returns></returns>
@@ -483,7 +475,7 @@
}
/// <summary>
- /// 鍙嶅鏍�
+ /// 鍙嶅鏍�
/// </summary>
/// <param name="mode"></param>
/// <returns></returns>
@@ -508,7 +500,7 @@
new("@outMsg", SqlDbType.NVarChar, 300),
new("@outSum", SqlDbType.Int),
new("@inEdtUserGuid", _userGuid),
- new("@PI_ID", _guid)
+ new("@PI_ID", _guid),
//new("@inFieldValue", 1),
//new("@in1", ""),
//new("@in2", "")
@@ -535,7 +527,6 @@
}
}
}
-
return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "鎿嶄綔鎴愬姛锛�");
}
}
\ No newline at end of file
--
Gitblit v1.9.3