| | |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.util; |
| | | using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; |
| | | using SqlSugar; |
| | | using SqlSugar.Extensions; |
| | | |
| | |
| | | .ExecuteCommand(); |
| | | }); |
| | | |
| | | var P_NO = new SugarParameter("P_NO", dto.releaseNo); |
| | | |
| | | var db = SqlSugarHelper.GetInstance(); |
| | | var FRes = new SugarParameter("c_result", null, true); // 输出参数 |
| | | var FMsg = new SugarParameter("c_msg", null, true); |
| | | |
| | | // 执行存储过程 |
| | | db.Ado.UseStoredProcedure().GetDataTable("PRC_RKJ_UPDATE_RESU_JK",P_NO,FRes, FMsg); |
| | | |
| | | // 获取输出结果 |
| | | var Res = Convert.ToInt32(FRes.Value); |
| | | var Msg = FMsg.Value?.ToString(); |
| | | |
| | | Console.WriteLine($"结果: {Res}, 返回消息: {Msg}"); |
| | | |
| | | if ( Res == 1 ) |
| | | { |
| | | throw new Exception(Msg); |
| | | } |
| | | |
| | | if (useTransactionWithOracle > 0) |
| | | { |
| | | var db = SqlSugarHelper.GetInstance(); |
| | | |
| | | // 成功提交后推送钉钉消息 |
| | | var qaRkj = db.Queryable<QaRkj>() |
| | | .Where(s => s.ReleaseNo == dto.releaseNo) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | return useTransactionWithOracle; |
| | | } |
| | | |