update 修改推送服务 和其他

This commit is contained in:
路 范
2021-10-09 14:51:07 +08:00
parent 9218cee300
commit ea98c1ea73
20 changed files with 346 additions and 8 deletions

View File

@@ -160,6 +160,16 @@ namespace Ewide.Nbzs.BackWorkerService
insert_result = db_Zlb_Conn.Insertable(db_Product_Conn.Queryable<Projects>().Where(p => p.ID == projectId).ToList()).ExecuteCommand();
list_result.Add(new PushResult { Action = "Insert", TableName = "Projects", IsSuccess = insert_result > 0 });
//}
//ProjectsStep
delete_result = db_Zlb_Conn.Deleteable<ProjectsStep>().Where(p => p.ProjectID == projectId).ExecuteCommandHasChange();
list_result.Add(new PushResult { Action = "Delete", TableName = "ProjectsStep", IsSuccess = delete_result });
//if (delete_result)
//{
insert_result = db_Zlb_Conn.Insertable(db_Product_Conn.Queryable<ProjectsStep>().Where(p => p.ProjectID == projectId).ToList()).ExecuteCommand();
list_result.Add(new PushResult { Action = "Insert", TableName = "ProjectsStep", IsSuccess = insert_result > 0 });
//}
}
StringBuilder push_error_reason = new();
//if (list_result.Any(r => !r.IsSuccess))