小飞侠
2026-04-07 4c87e40a3ca38b3fc2dab600cb033946e80bcbbd
cylsg/cylsg.Application/Transfer/UserTransfer.cs
@@ -1,4 +1,5 @@
using cylsg.Core;
using cylsg.Model.OrderModel;
using cylsg.Model.TransferOrder;
using cylsg.Model.UserModel;
using cylsg.Model.utilityViewModel;
@@ -90,8 +91,25 @@
                    {
                        throw Oops.Oh("该用户没有收入");
                    }
                    if ((uw.TiXianZonge - uw.YiTiXianJine) < Money)
                    bool IsGuDing = false;
                    var bdct = new BaseRepository<OrderBidding>();
                    if (bdct == null)
                    {
                      var userBd=     await bdct.GetFirstAsync(x=>x.WorkerUserId==userid);
                        if(userBd != null)
                        {
                            IsGuDing = userBd.IsGuding??false;
                        }
                    }
                    if ((uw.TiXianZonge - uw.YiTiXianJine-(IsGuDing?300:0)) < Money)
                    {
                        if(IsGuDing)
                        {
                            throw Oops.Oh("用户余额不足,灵活用工宿舍押金300元");
                        }
                        else
                        throw Oops.Oh("用户余额不足");
                    }
@@ -254,7 +272,7 @@
        }
        /// <summary>
        /// 获取为支付列表
        /// 获取为未付列表
        /// </summary>
        [AllowAnonymous]
        [HttpPost]
@@ -571,7 +589,7 @@
        }
        /// <summary>
        /// 重新创建新的支付单
        /// 创建新的支付单
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>