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/Dtos/OrderDto.cs | 10 ++++++++++ cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs | 10 ++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs b/cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs index 830710c..1ddcab4 100644 --- a/cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs +++ b/cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs @@ -151,6 +151,16 @@ public int WorderCounted { get; set; } /// <summary> + /// 鎶ュ悕浜烘暟 + /// </summary> + public int BaoMingCount { get; set; } + + /// <summary> + /// 寰呭鏍镐汉鏁� + /// </summary> + public int WorkerDaiCount { get; set; } + + /// <summary> /// 宸ヤ綔鍦扮偣 /// </summary> public string WorderAddress { get; set; } 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