From e853dd2fecef3a0c446d161248d0498a5a081e66 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期三, 17 十二月 2025 18:49:49 +0800
Subject: [PATCH] SJ,XJ,RKJ优化修改
---
StandardInterface/MESApplication/Controllers/QC/SJController.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/StandardInterface/MESApplication/Controllers/QC/SJController.cs b/StandardInterface/MESApplication/Controllers/QC/SJController.cs
index 7591679..3fb8e09 100644
--- a/StandardInterface/MESApplication/Controllers/QC/SJController.cs
+++ b/StandardInterface/MESApplication/Controllers/QC/SJController.cs
@@ -577,7 +577,7 @@
/// <summary>
/// 鍒犻櫎妫�楠岄」鐩殑鍥剧墖
/// </summary>
- /// <param name="data">鍖呭惈妫�楠岄」鐩甀D鐨凧SON鏁版嵁</param>
+ /// <param name="data">鍖呭惈妫�楠岄」鐩甀D鍜屽彲閫夌殑鍥剧墖ID鐨凧SON鏁版嵁</param>
/// <returns>鍒犻櫎缁撴灉</returns>
[HttpPost("DeleteImageFromPicture")]
public ResponseResult DeleteImageFromPicture([FromBody] JObject data)
@@ -595,10 +595,17 @@
}
var id = Convert.ToDecimal(data["id"].ToString());
+
+ // 鑾峰彇鍙�夌殑鍥剧墖ID锛岀敤浜庡垹闄ゅ崟寮犲浘鐗�
+ decimal? imageId = null;
+ if (data["imageId"] != null)
+ {
+ imageId = Convert.ToDecimal(data["imageId"].ToString());
+ }
// 璋冪敤鏈嶅姟鏂规硶鍒犻櫎鍥剧墖
var service = new SJService();
- var (status, message) = service.DeleteImageFromPicture(id);
+ var (status, message) = service.DeleteImageFromPicture(id, imageId);
return new ResponseResult
{
--
Gitblit v1.9.3