SourceCode/RFrameGenerate.BLL/AgentAccountManage.cs

(开头部分) 6KB

这里只显示每个文件的开头 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;

namespace RFrameGenerate.BLL
{
    public class AgentAccountManage
    {
        public static bool IsCountPrestore { get; set; }
        public static bool IsCountFsBalance { get; set; }

        #region 新增预存代理账户流水 -充值
        /// <summary>
        /// 新增预存代理账户流水 - 充值
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public static Result AddAgentAccount(Guid guid, decimal TradingAmountTe, string RemarkTe)
        {
            using (var tran = new SqlRTransaction())
            {
                var query = Factory.CreateT_BAS_AdvanceAgentAccount(tran);
                var queryMer = Factory.CreateT_BAS_Merchants(tran);
                try
                {
                    if (AgentAccountManage.IsCountPrestore)
                    {
                        return new Result(false, "系统繁忙,请稍后重试");
                    }
                    //lock (CrowdPeriodLock.GetLock(guid.ToString() + "A3"))//备用 
                    //{

                    var currMoney = GetAgentAccount(guid);
                    var pre = TradingAmountTe + currMoney;
                    queryMer.Update(c => new object[]{
                             c. Prestore==pre   
                             }, c => c.MerchantGuid == guid, isFilterMerchant: false);

                    query.Add(new T_BAS_AdvanceAgentAccount()
                    {
                        AdvanceAgentAccountGuid = Guid.NewGuid(),
                        MerchantGuid = guid,
                        FlagshipOrdersGuid = null,
                        TradingCode = DateTime.Now.ToString("yyyyMMddHHmmss") + string.Format("{0:D2}", AdvanceAgentAccountConst.TradingType.用户充值),
                        TradingType = AdvanceAgentAccountConst.TradingType.用户充值,
                        TradingMain = string.Empty,
                        AvailableBalance = TradingAmountTe + currMoney,
                        TradingAmount = TradingAmountTe,
                        Discount = null,
后面还有 92 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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