修改更新方式

main
zhangbin 2026-02-07 15:12:36 +08:00
parent 2afb72d766
commit df02e2c557
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@ using NetTopologySuite.Operation.Distance;
using OpenAuth.App.BaseApp.Base;
using OpenAuth.App.Interface;
using OpenAuth.Repository;
using OpenAuth.Repository.Core;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Domain.workflow;
using OpenAuth.WebApi.Controllers.ServerController;
@ -874,7 +875,10 @@ public class WorkflowEngineApp : SqlSugarBaseApp<SysCategoryType, SugarDbContext
Id = flowInstance.BusinessNo,
Status = isAllPass ? "Completed" : "Rejected"
};
_sqlSugar.Updateable(illegalConstructionAssessmentUpdate).IgnoreNullColumns().ExecuteCommand();
//_sqlSugar.Updateable(illegalConstructionAssessmentUpdate).IgnoreNullColumns().ExecuteCommand();
_sqlSugar.Updateable<IllegalConstructionAssessment>()
.SetColumns(t => new IllegalConstructionAssessment() { Status = isAllPass ? "Completed" : "Rejected" })
.Where(t => t.Id == flowInstance.BusinessNo).ExecuteCommand();
}
/// <summary>

View File

@ -7,7 +7,7 @@
"AllowedHosts": "*",
"DataProtection": "temp-keys/",
"ConnectionStrings": {
"OpenAuthDBContext": "PORT=5432;Database=cultivated_land_destruction;HOST=localhost;PASSWORD=123456;USER ID=postgres;"
"OpenAuthDBContext": "PORT=5432;Database=cultivated_land_destruction;HOST=192.168.10.163;PASSWORD=123456;USER ID=postgres;"
},
"AppSetting": {
"IdentityServerUrl": "",