xwt
6 天以前 e853dd2fecef3a0c446d161248d0498a5a081e66
StandardInterface/MESApplication/Controllers/QC/RKJController.cs
@@ -144,14 +144,15 @@
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList =
                new RKJService().getPage(queryObj);
            var (tbBillList, totalCount) = new RKJService().getPage(queryObj);
            resultInfos.tbBillList = tbBillList;
            resultInfos.totalCount = totalCount;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
                data = resultInfos,
                TotalCount = totalCount
            };
        }
        catch (Exception ex)
@@ -797,7 +798,7 @@
    /// <summary>
    /// 删除检验项目的图片
    /// </summary>
    /// <param name="data">包含检验项目ID的JSON对象</param>
    /// <param name="data">包含检验项目ID和可选的图片ID的JSON对象</param>
    /// <returns>删除结果</returns>
    [HttpPost("DeleteImageFromPicture")]
    public ResponseResult DeleteImageFromPicture([FromBody] JObject data)
@@ -816,9 +817,16 @@
                };
            }
            // 获取可选的图片ID,用于删除单张图片
            decimal? imageId = null;
            if (data["imageId"] != null)
            {
                imageId = Convert.ToDecimal(data["imageId"].ToString());
            }
            // 调用服务方法删除图片
            var service = new RKJService();
            var (status, message) = service.DeleteImageFromPicture(Convert.ToDecimal(id));
            var (status, message) = service.DeleteImageFromPicture(Convert.ToDecimal(id), imageId);
            return new ResponseResult
            {