From 4fa007df2dd1b9666f414954464db1d4e8a7e1e0 Mon Sep 17 00:00:00 2001
From: 小飞侠 <8277136+liaoxujun@user.noreply.gitee.com>
Date: 星期二, 07 四月 2026 15:09:40 +0800
Subject: [PATCH] no message
---
cylsg/cylsg.Application/Users/UserAppService.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cylsg/cylsg.Application/Users/UserAppService.cs b/cylsg/cylsg.Application/Users/UserAppService.cs
index 8e1a009..f6ce862 100644
--- a/cylsg/cylsg.Application/Users/UserAppService.cs
+++ b/cylsg/cylsg.Application/Users/UserAppService.cs
@@ -65,12 +65,12 @@
}
bool IsGuDing = false;
var bdct = new BaseRepository<OrderBidding>();
- if (bdct == null)
+ if (bdct != null)
{
- var userBd = await bdct.GetFirstAsync(x => x.WorkerUserId == userid);
+ var userBd = await bdct.GetFirstAsync(x => x.WorkerUserId == userid&& x.IsGuding==true);
if (userBd != null)
{
- IsGuDing = userBd.IsGuding ?? false;
+ IsGuDing = true;
}
}
userDto.userWorker.IsLingHuoYongGong = IsGuDing;
@@ -325,10 +325,10 @@
var bdct = new BaseRepository<OrderBidding>();
if (bdct == null)
{
- var userBd = await bdct.GetFirstAsync(x => x.WorkerUserId == userid);
+ var userBd = await bdct.GetFirstAsync(x => x.WorkerUserId == userid && x.IsGuding == true);
if (userBd != null)
{
- IsGuDing = userBd.IsGuding ?? false;
+ IsGuDing = true;
}
}
userDto.userWorker.IsLingHuoYongGong = IsGuDing;
--
Gitblit v1.9.1