From cc0c486c83e857c6ee3943ebc5a830c941faa411 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期五, 19 十二月 2025 16:11:46 +0800
Subject: [PATCH] 供应商信息:负责人名称编码转ID逻辑修正
---
MESApplication/Controllers/WomcaaController.cs | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/MESApplication/Controllers/WomcaaController.cs b/MESApplication/Controllers/WomcaaController.cs
index 398bb75..3447579 100644
--- a/MESApplication/Controllers/WomcaaController.cs
+++ b/MESApplication/Controllers/WomcaaController.cs
@@ -258,4 +258,55 @@
return ResponseResult.ResponseError(ex);
}
}
+
+ /// <summary>
+ /// 鏁村崟鍒犻櫎
+ /// </summary>
+ /// <returns></returns>
+ [HttpPost("Delete")]
+ public ResponseResult Delete([FromBody] DeleteRequestDto data)
+ {
+ var entity = new MessageCenter();
+ entity.TableName = TableName;
+ entity.Url = URL + "Delete";
+ entity.Method = METHOD;
+ entity.Data = JsonConvert.SerializeObject(data);
+ entity.Status = 1;
+ entity.CreateBy = "PL017";
+ entity.Route = data.FBillNo;
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ // 璋冪敤鍒犻櫎锛岃幏鍙栧瓨鍌ㄨ繃绋嬭繑鍥炵殑鐘舵�佸拰娑堟伅
+ var (outSum, outMsg) = m.Delete(data.FBillNo, data.FBillTypeID);
+ resultInfos.OutSum = outSum;
+ resultInfos.OutMsg = outMsg;
+
+ entity.Result = 0;
+ if (resultInfos.OutSum == 1) entity.Result = 1;
+
+ entity.DealWith = 1;
+ _manager.save(entity);
+
+ entity.ResultData = outMsg;
+ return new ResponseResult
+ {
+ //status = outSum,
+ status = 0,
+ message = outMsg,
+ };
+ }
+ catch (Exception ex)
+ {
+ entity.Result = 0;
+
+ entity.DealWith = 0;
+
+ entity.ResultData = ex.Message;
+
+ _manager.save(entity);
+
+ return ResponseResult.ResponseError(ex);
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3