From 039469c9070ffd15b6889d33f56e6af98a6f7739 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 10 十月 2024 12:01:12 +0800
Subject: [PATCH] 报名人数,待审核人数

---
 cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs b/cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs
index 9523d94..6026127 100644
--- a/cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs
+++ b/cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs
@@ -107,8 +107,14 @@
                         default: break;
                     }
 
-                    var orderBiddings = await orderBiddingRepository.CountAsync(x => x.OrderId == orderDto.Id && x.IsSelected == true && x.IsEn == true && x.IsDeleted == false);
-                    orderDto.WorderCounted = orderBiddings;
+                    var orderBidds = await orderBiddingRepository.GetListAsync(x => x.OrderId == orderDto.Id && x.IsEn == true && x.IsDeleted == false);
+
+                    //var orderBiddings = await orderBiddingRepository.CountAsync(x => x.OrderId == orderDto.Id && x.IsSelected == true && x.IsEn == true && x.IsDeleted == false);
+                    orderDto.WorderCounted = orderBidds.Count(x=> x.IsSelected == true);
+                    //var orderBiddingbaomings = await orderBiddingRepository.CountAsync(x => x.OrderId == orderDto.Id && x.IsEn == true && x.IsDeleted == false);
+                    orderDto.BaoMingCount = orderBidds.Count;
+                   // var orderBiddingbaomings = await orderBiddingRepository.CountAsync(x => x.OrderId == orderDto.Id && x.IsEn == true && x.IsDeleted == false);
+                    orderDto.WorkerDaiCount = orderBidds.Count(x => x.IsSelected == null);
 
                 }
 

--
Gitblit v1.9.1