| | |
| | | .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, |
| | | List<Womcab> mesWomcabs) |
| | | { |
| | | //throw new NotImplementedException("存在下有单据,不允许反审"); |
| | | |
| | | var decimals = mesWomcabs.Select(s => s.Guid).ToArray(); |
| | | var update = base.DeleteById(mesWomcaa.Guid); |
| | | var insertOrUpdate = db |