main
潘建东 11 months ago
parent 915ca83e77
commit 3922cbb065

@ -143,7 +143,7 @@ namespace ZhongLianService
Db.Ado.BeginTran(); Db.Ado.BeginTran();
await Db.Updateable<InstallDO>(install).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == install.Id).SplitTable().ExecuteCommandAsync(); await Db.Updateable<InstallDO>(install).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == install.Id).SplitTable(tas => tas).ExecuteCommandAsync();
if (install.Steps != null && install.Steps.Length > 0) if (install.Steps != null && install.Steps.Length > 0)
{ {
@ -152,7 +152,7 @@ namespace ZhongLianService
{ {
if (Db.Queryable<InstallStepDO>().SplitTable(SplitDateId.StartDate, SplitDateId.EndDate).Any(x => x.InstallId == install.Id && x.Key == step.Key)) if (Db.Queryable<InstallStepDO>().SplitTable(SplitDateId.StartDate, SplitDateId.EndDate).Any(x => x.InstallId == install.Id && x.Key == step.Key))
{ {
await Db.Updateable<InstallStepDO>(step).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.InstallId == install.Id && x.Key == step.Key).SplitTable().ExecuteCommandAsync(); await Db.Updateable<InstallStepDO>(step).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.InstallId == install.Id && x.Key == step.Key).SplitTable(tas => tas).ExecuteCommandAsync();
} }
else else
{ {
@ -266,7 +266,7 @@ namespace ZhongLianService
Id = id, Id = id,
State = -1 State = -1
}; };
await Db.Updateable<InstallDO>(InstallDO).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == InstallDO.Id).SplitTable().ExecuteCommandAsync(); await Db.Updateable<InstallDO>(InstallDO).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == InstallDO.Id).SplitTable(tas => tas).ExecuteCommandAsync();
} }
Db.Ado.CommitTran(); Db.Ado.CommitTran();
} }

@ -75,7 +75,7 @@ namespace ZhongLianService
maintenance.ProcessResultPhoto = null; maintenance.ProcessResultPhoto = null;
} }
await Db.Updateable<MaintenanceDO>(maintenance).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == maintenance.Id).SplitTable().ExecuteCommandAsync(); await Db.Updateable<MaintenanceDO>(maintenance).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == maintenance.Id).SplitTable(tas => tas).ExecuteCommandAsync();
return maintenance; return maintenance;
} }
@ -113,7 +113,7 @@ namespace ZhongLianService
Id = id, Id = id,
State = -1 State = -1
}; };
await Db.Updateable<MaintenanceDO>(Maintenance).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == Maintenance.Id).SplitTable().ExecuteCommandAsync(); await Db.Updateable<MaintenanceDO>(Maintenance).IgnoreColumns(ignoreAllNullColumns: true).Where(x => x.Id == Maintenance.Id).SplitTable(tas => tas).ExecuteCommandAsync();
} }
Db.Ado.CommitTran(); Db.Ado.CommitTran();
} }

Loading…
Cancel
Save