username@email.com
2024-10-29 5a72c00dca19dd6dd9be9db9e14f00f512f93f02
小修改
3个文件已修改
18 ■■■■■ 已修改文件
cylsg/cylsg.Application/Orders/Dtos/OrderDto.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Application/Orders/OrderCompanyAppService.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Application/Orders/OrderWorkerAppService.cs 4 ●●●● 补丁 | 查看 | 原始文档 | 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)
            {