From 79196313d767bfb1101d6a9a354977a804432c56 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 10 十月 2024 14:27:38 +0800
Subject: [PATCH] 自行安排

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

diff --git a/cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs b/cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs
index 9523d94..8c9fd2a 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);
 
                 }
 
@@ -206,6 +212,7 @@
                 order.WorkerType = orderDto.WorkerType;
                 order.WorkPrice = orderDto.WorkPrice;
                 order.WorkPriceMax = orderDto.WorkPriceMax;
+                order.Zixinganpai = orderDto.Zixinganpai;
                 order.OrderStatus = 0;
                 order.IsEn = true;
                 order.UpDataBy = NickName;

--
Gitblit v1.9.1