| | |
| | | .IgnoreColumnsNull() |
| | | .ExecuteCommand() > 0; |
| | | |
| | | if (orUpdate && baOrUpdate) return true; |
| | | // if (orUpdate && baOrUpdate) |
| | | // throw new NotImplementedException("插入或更新失败"); |
| | | |
| | | if (orUpdate && baOrUpdate) |
| | | { |
| | | // 调用存储过程更新用料清单 |
| | | db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid", |
| | | new { |
| | | outMsg = (string)null, // 输出参数 |
| | | outSum = (int?)null, // 输出参数 |
| | | inEdtUserGuid = new Guid("11111111-1111-1111-1111-111111111111"), |
| | | inCaaGuid = new Guid(mesWomcaa.Guid.ToString()) |
| | | }); |
| | | return true; |
| | | } |
| | | throw new NotImplementedException("插入或更新失败"); |
| | | |
| | | |
| | | } |
| | | |
| | | private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa, |
| | |
| | | "TestErpUrl": "http://192.168.0.208:8066/WebService1.asmx/MesToErpinfoTest", |
| | | "ProductionErpUrl": "http://192.168.0.208:8066/WebService1.asmx/MesToErpinfoTest", |
| | | "DataBaseConn": "Data Source=192.168.1.146;Initial Catalog=GS_MES;User ID=mesUser;Password =mesUser123;Encrypt=True;TrustServerCertificate=True;" |
| | | //"DataBaseConn": "Data Source=192.168.1.146;Initial Catalog=TEST_MES;User ID=testUser;Password =testUser123;Encrypt=True;TrustServerCertificate=True;" |
| | | } |
| | | } |