cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
cylsg/cylsg.Application/Orders/OrderWorkerAppService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs
@@ -18,6 +18,12 @@ /// </summary> public int Id { get; set; } /// <summary> /// 招工OldId /// </summary> public int OldId { get; set; } /// <summary> /// 招工用户id /// </summary> cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs
@@ -226,6 +226,14 @@ } else { if (orderDto.OldId > 0) { //删除旧的下架订单 var order1 = await orderRes.GetByIdAsync(orderDto.OldId); order1.IsDeleted = true; res = await orderRes.UpdateAsync(order1); } var order = _mapper.Map<Order>(orderDto); order.UpDataBy = NickName; order.UpDataTime = DateTime.Now; cylsg/cylsg.Application/Orders/OrderWorkerAppService.cs
@@ -263,6 +263,10 @@ var orderBiddingWorkPriceRepository = new BaseRepository<OrderBiddingWorkPrice>(); var userRes = new BaseRepository<User>(); var order = await orderRes.GetByIdAsync(orderid); if (order.IsDeleted == true) { throw Oops.Oh("订单已经删除无法查看!"); } orderDto = _mapper.Map<OrderDto>(order); switch (orderDto.OrderStatus) {