| | |
| | | using System.Dynamic; |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | |
| | | [ApiController] |
| | | public class OAJyController : ControllerBase |
| | | { |
| | | OAJyService m = new OAJyService(); |
| | | OaApiService m = new OaApiService(); |
| | | |
| | | [HttpPost("SumbitIQCToOA")] |
| | | public ResponseResult SumbitIQCToOA([FromBody] dynamic queryObj) |
| | | public async Task<ResponseResult> SumbitIQCToOA(dynamic queryObj) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos = m.SubmitIQCToOA(queryObj); |
| | | var tbBillList = resultInfos; |
| | | dynamic resultInfos = await m.SubmitIQCToOA(queryObj); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | status = (resultInfos.code?.ToString().ToUpper() == "SUCCESS") ? 0 : 1, |
| | | message = (resultInfos.code?.ToString().ToUpper() == "SUCCESS") |
| | | ? "OK" |
| | | : resultInfos.errMsg?.ToString() ?? "未知错误", |
| | | data = resultInfos |
| | | }; |
| | | } |