From cabbae559dcce428781a3951ab42bf4a458fc66c Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期二, 29 七月 2025 18:48:26 +0800 Subject: [PATCH] 11 --- MESApplication/Controllers/SpotCheck/MesEqMaintainController.cs | 107 +++++++++++++++++++++++------------------------------ 1 files changed, 47 insertions(+), 60 deletions(-) diff --git a/MESApplication/Controllers/SpotCheck/MesEqMaintainController.cs b/MESApplication/Controllers/SpotCheck/MesEqMaintainController.cs index 5b9e842..5d74946 100644 --- a/MESApplication/Controllers/SpotCheck/MesEqMaintainController.cs +++ b/MESApplication/Controllers/SpotCheck/MesEqMaintainController.cs @@ -1,72 +1,59 @@ -锘縰sing Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using SqlSugar; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Dynamic; +锘縰sing System.Dynamic; using MES.Service.Dto.service; -using MES.Service.Modes; -using MES.Service.service; -using MES.Service.service.QC; using MES.Service.service.SpotCheck; using MES.Service.util; -using Newtonsoft.Json.Linq; +using Microsoft.AspNetCore.Mvc; -namespace MESApplication.Controllers.SpotCheck +namespace MESApplication.Controllers.SpotCheck; + +[ApiController] +[Route("api/[controller]")] +public class MesEqMaintainController : ControllerBase { - [ApiController] - [Route("api/[controller]")] - public class MesEqMaintainController : ControllerBase + [HttpPost("getDjDetail")] + public ResponseResult getDjDetail([FromBody] DJPageResultDto queryObj) { - - [HttpPost("getDjDetail")] - public ResponseResult getDjDetail([FromBody] DJPageResultDto queryObj) + // var releaseNo = data["releaseNo"].ToString(); + try { - // var releaseNo = data["releaseNo"].ToString(); - try + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new SpotCheckService().GetDjDetail(queryObj); + resultInfos.tbBillList = tbBillList; + return new ResponseResult { - dynamic resultInfos = new ExpandoObject(); - var tbBillList = - new SpotCheckService().GetDjDetail(queryObj); - resultInfos.tbBillList = tbBillList; - return new ResponseResult - { - status = 0, - message = "OK", - data = resultInfos - }; - } - catch (Exception ex) - { - return ResponseResult.ResponseError(ex); - } + status = 0, + message = "OK", + data = resultInfos + }; } - - - // 涔嬪墠鐨� UpDateDjDetail 鏂规硶 - [HttpPost("UpDateDjDetail")] - public ResponseResult UpDateDjDetail([FromBody] DJPageResultDto updateObj) + catch (Exception ex) { - try - { - dynamic resultInfos = new ExpandoObject(); - // 璋冪敤 SpotCheckService 涓殑 UpdateDjDetail 鏂规硶杩涜鏇存柊鎿嶄綔 - var updateResult = new SpotCheckService().UpdateDjDetail(updateObj); - resultInfos.updateResult = updateResult; - return new ResponseResult - { - status = 0, - message = "OK", - data = resultInfos - }; - } - catch (Exception ex) - { - return ResponseResult.ResponseError(ex); - } + return ResponseResult.ResponseError(ex); } - } -} + + + // 涔嬪墠鐨� UpDateDjDetail 鏂规硶 + [HttpPost("UpDateDjDetail")] + public ResponseResult UpDateDjDetail([FromBody] DJPageResultDto updateObj) + { + try + { + dynamic resultInfos = new ExpandoObject(); + // 璋冪敤 SpotCheckService 涓殑 UpdateDjDetail 鏂规硶杩涜鏇存柊鎿嶄綔 + var updateResult = new SpotCheckService().UpdateDjDetail(updateObj); + resultInfos.updateResult = updateResult; + 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