Compare commits

...

2 Commits

Author SHA1 Message Date
zhangbin 95586f0c74 删除 2026-01-13 09:50:57 +08:00
zhangbin ee8b919d73 添加专题 2026-01-13 09:41:14 +08:00
1 changed files with 11 additions and 5 deletions

View File

@ -93,7 +93,8 @@ namespace OpenAuth.App.ServiceApp
Url = info.Url,
PlatformName = info.PlatformName,
RoutingKey = info.RoutingKey,
Exchange = info.Exchange
Exchange = info.Exchange,
Topic = info.Topic
}, u => u.Id == info.Id);
// 提交事务
if (db.Commit())
@ -119,7 +120,12 @@ namespace OpenAuth.App.ServiceApp
{
using (var db = UnitWork.CreateContext())
{
await db.LasaPlatform.DeleteByIdAsync(id);
// 编辑
await db.LasaPlatform.UpdateAsync(u => new LasaPlatform
{
IsDelete = true,
}, u => u.Id == id);
//await db.LasaPlatform.DeleteByIdAsync(id);
if (db.Commit())
return new Response<bool>
{
@ -201,9 +207,9 @@ namespace OpenAuth.App.ServiceApp
using (var db = UnitWork.CreateContext())
{
var list = await db.LasaTaskAiLog.AsQueryable()
.LeftJoin<LasaTaskAi>((a,b)=>a.AiTaskId==b.Id)
.WhereIF(!string.IsNullOrEmpty(key), (a,b) => a.Data.Contains(key))
.Select((a,b)=>new LasaTaskAiLogResp()
.LeftJoin<LasaTaskAi>((a, b) => a.AiTaskId == b.Id)
.WhereIF(!string.IsNullOrEmpty(key), (a, b) => a.Data.Contains(key))
.Select((a, b) => new LasaTaskAiLogResp()
{
AiTaskId = a.AiTaskId,
State = a.State,