SourceCode/RFrameGenerate.BLL/AgentWithdrawManage.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using RFrameGenerate.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Wechat.Model;
using RFramework.SQLQuery;
using weixinopen;
using Wechat;
using RFramework.SQLServer;
using RFramework.SQLQuery.SQLExpands;
using RFrameGenerate.Common;
using RFrameGenerate.Model.PageModel;
using System.Text.RegularExpressions;

namespace RFrameGenerate.BLL
{
    public class AgentWithdrawManage
    {

        #region 获取代理申请提现-分页数据
        /// <summary>
        /// 获取代理申请提现-分页数据 
        /// </summary>
        /// <param name="gridModel"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public static List<T_BAS_FactorageWithdrawal> GetPageList(GridModel gridModel, int? TradingType, string TradingCode, DateTime? beginTime, DateTime? endTime, DateTime? beginTimeSe, DateTime? endTimeSe)
        {
            using (var query = Factory.CreateT_BAS_FactorageWithdrawal())
            {
                endTime = endTime != null ? endTime.Value.AddDays(1) : endTime;
                endTimeSe = endTimeSe != null ? endTimeSe.Value.AddDays(1) : endTimeSe;
                var list = query.GetPageList(gridModel, c => c.MerchantGuid == Common.CurrentManage.MerchantGuid && c.TradingType == TradingType && c.TradingCode.SqlLike(TradingCode) && c.ApplyTime >= beginTime && c.ApplyTime <= endTime && c.DealWithTime >= beginTimeSe && c.DealWithTime <= endTimeSe, true, c => c.ApplyTime, DAL.Enums.OrderMethods.DESC, RFramework.SQLServer.Enums.LockType.Default);
                return list;
            }
        }
        #endregion


        #region 提现申请
        public static object AddAgentWithdraw(T_BAS_FactorageWithdrawal entity)
        {
            //if (entity.AccountType != FactorageWithdrawalConst.AccountType.ElementAt(0).Key && new Regex("").IsMatch(entity.AccountCode))
            //{
            //    return new Result(false);
            //}
            if (AgentAccountManage.IsCountFsBalance)
            {
                return new Result(false, "系统繁忙,请稍后重试");
            }

            var available = 0m;
            var freeze = 0m;
            AgentCommissionManage.GetAvailableAndFreeze(Common.CurrentManage.MerchantGuid, ref available, ref freeze);
            if (entity.TradingAmount > available)
            {
                return new Result(false, "提现金额不能超过可用余额");
            }
后面还有 59 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。