Merge pull request '修改安装和维保单无法更新问题' (#2) from 修改安装和维保单无法更新问题 into main

Reviewed-on: http://118.195.165.218:3000/panda/fycore/pulls/2
main
panda 11 months ago
commit 83513ec5f8

@ -7,6 +7,6 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Default": "Data Source=124.71.176.44;database=lsdb;User Id=root;Pwd=root;charset=utf8;pooling=true;"
"Default": "Data Source=mysql;database=lsdb;User Id=root;Pwd=root;charset=utf8;pooling=true;"
}
}

@ -143,7 +143,7 @@ namespace ZhongLianService
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)
{
@ -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))
{
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
{
@ -266,7 +266,7 @@ namespace ZhongLianService
Id = id,
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();
}

@ -75,7 +75,7 @@ namespace ZhongLianService
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;
}
@ -113,7 +113,7 @@ namespace ZhongLianService
Id = id,
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();
}

Loading…
Cancel
Save