Compare commits
2 Commits
2907fbe6f9
...
95586f0c74
| Author | SHA1 | Date |
|---|---|---|
|
|
95586f0c74 | |
|
|
ee8b919d73 |
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue