| | |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.service.QC; |
| | | using NewPdaSqlServer.util; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | namespace NewPdaSqlServer.Controllers.QC; |
| | | |
| | |
| | | [ApiController] |
| | | public class OAJyController : ControllerBase |
| | | { |
| | | OaApiService m = new OaApiService(); |
| | | private readonly OaApiService m = new(); |
| | | |
| | | [HttpPost("SumbitIQCToOA")] |
| | | public ResponseResult SumbitIQCToOA(dynamic queryObj) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = m.SubmitIQCToOA(queryObj); |
| | | var resultInfos = m.SubmitIQCToOA(queryObj); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = (resultInfos.code?.ToString().ToUpper() == "SUCCESS") ? 0 : 1, |
| | | message = (resultInfos.code?.ToString().ToUpper() == "SUCCESS") |
| | | status = resultInfos.code?.ToString().ToUpper() == "SUCCESS" |
| | | ? 0 |
| | | : 1, |
| | | message = resultInfos.code?.ToString().ToUpper() == "SUCCESS" |
| | | ? "OK" |
| | | : resultInfos.errMsg?.ToString() ?? "未知错误", |
| | | data = resultInfos |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | } |