From 4d7047f93580a2a7dd36b915ef05a2ea292e8108 Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期四, 20 三月 2025 20:20:56 +0800 Subject: [PATCH] 异常处置单 --- MESApplication/Controllers/BasicData/ProductionOrderController.cs | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/MESApplication/Controllers/BasicData/ProductionOrderController.cs b/MESApplication/Controllers/BasicData/ProductionOrderController.cs index c3d65cf..ead2d1d 100644 --- a/MESApplication/Controllers/BasicData/ProductionOrderController.cs +++ b/MESApplication/Controllers/BasicData/ProductionOrderController.cs @@ -1,10 +1,13 @@ 锘縰sing MES.Service.Dto.webApi; using MES.Service.Dto.webApi.DeliveryNote; using MES.Service.Modes; +using MES.Service.Modes.QcIssueResult; using MES.Service.service; using MES.Service.util; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System.Diagnostics; using System.Dynamic; namespace MESApplication.Controllers.BasicData; @@ -131,5 +134,36 @@ return ResponseResult.ResponseError(ex); } } + + [HttpPost("GetFileUrl")] + public IActionResult StartGetUrl() { + + try + { + // 璋冪敤 QcIssueResultManager 涓殑 GetProcessNo 鏂规硶鏉ュ惎鍔ㄩ拤閽夊伐浣滄祦瀹炰緥 + string result = m.GetFileUrl(); + + //string jsonPart = result.Substring(result.IndexOf("{")); + //Debug.WriteLine(jsonPart); + //JObject jsonObject = JObject.Parse(jsonPart); + + //// 鎻愬彇instanceId鐨勫�� + //string instanceId = jsonObject["InstanceId"].ToString(); + + //dynamic resultInfos = new ExpandoObject(); + //string ProcessNo = instanceId; + ////var save = m.SaveProcessNo(ReleaseNo, instanceId); + ////resultInfos.tbBillList = save; + + return Ok(result); + } + catch (Exception ex) + { + // 鎹曡幏寮傚父骞惰繑鍥為敊璇俊鎭� + return StatusCode(500, $"鍚姩閽夐拤宸ヤ綔娴佸疄渚嬪け璐�: {ex.Message}"); + } + + } + } -- Gitblit v1.9.3