|
|
@ -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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|