username@email.com
2024-10-14 571ccea5b3dc11ca107aac9ce88e46e2b2b809c2
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;
@@ -558,6 +565,7 @@
                          WorkPrice = a.WorkPrice,
                          TodaySalary = c.TodaySalary,
                          IsShenPi = c.IsShenPi,
                          ShenPitime = c.ShenPitime,
                          WorkCount = c.WorkCount,
                          WorkerUserId = b.WorkerUserId,
                          WorkerUserName = d.name,
@@ -716,6 +724,14 @@
            //{
            //    throw Oops.Oh("该招工状态已无法打卡确认!");
            //}
            if (orderBiddingDetail.IsShenPi.HasValue && orderBiddingDetail.IsShenPi == (int)IsShenPis.yishenpi && orderBiddingDetail.ShenPitime.HasValue && orderBiddingDetail.ShenPitime <= DateTime.Now.AddMinutes(-5))
            {
                throw Oops.Oh("审批时间已经超过5分钟,无法重新审批!");
            }
            var res = false;
            try
            {