From 6d3eca191a75ab2f4229e4514b36f04ec79bc0fe Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期三, 09 七月 2025 13:58:46 +0800 Subject: [PATCH] llj排序 --- StandardInterface/MESApplication/Controllers/QC/LljController.cs | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/StandardInterface/MESApplication/Controllers/QC/LljController.cs b/StandardInterface/MESApplication/Controllers/QC/LljController.cs index 529ba55..8112f51 100644 --- a/StandardInterface/MESApplication/Controllers/QC/LljController.cs +++ b/StandardInterface/MESApplication/Controllers/QC/LljController.cs @@ -39,7 +39,7 @@ [HttpPost("setJYItem")] public ResponseResult setJYItem([FromBody] JObject data) { - var itemNo = data["itemNo"].ToString(); + var itemNo = Convert.ToDecimal(data["itemNo"].ToString()); var quantity = Convert.ToDecimal(data["quantity"].ToString()); var releaseNo = data["releaseNo"].ToString(); try @@ -273,4 +273,47 @@ return ResponseResult.ResponseError(ex); } } + [HttpPost("EmergencyRelease")] + public ResponseResult EmergencyRelease([FromBody] JObject data) + { + var id = Convert.ToInt32(data["id"].ToString()); + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = new LljService().EmergencyRelease(id); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("WithdrawEmergencyRelease")] + public ResponseResult WithdrawEmergencyRelease([FromBody] JObject data) + { + var id = Convert.ToInt32(data["id"].ToString()); + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = new LljService().WithdrawEmergencyRelease(id); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3