yzh
2022-06-30 3bf021ed05b7ae7a50b4287b2831588495bb06e6
优化金额或条数的长度处理。
21个文件已修改
66 ■■■■ 已修改文件
web/.vs/Web/v16/.suo 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/GwClientDao.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/GwOrderDao.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/GwSpDao.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Common.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Common.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Dao.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Dao.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Model.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Model.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/Model/Model/GwOrder.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/App_Code.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/App_Code.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Common.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Common.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Dao.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Dao.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Model.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Model.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/UMCLib.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/GwOrder.ashx 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/.vs/Web/v16/.suo
Binary files differ
web/Dao/GwClientDao.cs
@@ -303,7 +303,7 @@
         * clientId:客户ID
         * 
         */
        public bool UpdateClientAmount(int AddBalance, int payAmount, string clientId )
        public bool UpdateClientAmount(Int64 AddBalance, Int64 payAmount, string clientId )
        {
            return OracleHelper.ExecuteSql("UPDATE GW_CLIENT SET BALANCE=(BALANCE + :BALANCE), TOP_UP_AMOUNT_TOTAL=(TOP_UP_AMOUNT_TOTAL + :TOP_UP_AMOUNT_TOTAL) WHERE CLIENT_ID=:CLIENT_ID", OracleHelper.Connection, new OracleParameter(":BALANCE", (object)AddBalance), new OracleParameter(":TOP_UP_AMOUNT_TOTAL", (object)payAmount), new OracleParameter(":CLIENT_ID", (object)clientId)) > 0;
        }
web/Dao/GwOrderDao.cs
@@ -224,7 +224,7 @@
        }
        //更新订单修改前余额
        public bool UpdateBalanceAndStatus(int basicNum, int givingNum, int orderNumTotal, int orderAmountTotal, int payAmount , int beforeGivingNum, int orderStatus, string orderId )
        public bool UpdateBalanceAndStatus(Int64 basicNum, Int64 givingNum, Int64 orderNumTotal, Int64 orderAmountTotal, Int64 payAmount , Int64 beforeGivingNum, int orderStatus, string orderId )
        {
            if (string.IsNullOrEmpty(orderId))
                return false;
web/Dao/GwSpDao.cs
@@ -467,7 +467,7 @@
         * spid:账号
         * 
         */
        public bool UpdateBalanceByOrder(int AddBalance,int AddBasicNum, int AddGivingNum, string spid)
        public bool UpdateBalanceByOrder(Int64 AddBalance,Int64 AddBasicNum, Int64 AddGivingNum, string spid)
        {
            return OracleHelper.ExecuteSql("UPDATE GW_SP SET BALANCE=(BALANCE + :BALANCE), BASIC_NUM=(BASIC_NUM + :BASIC_NUM), GIVING_NUM= (GIVING_NUM + :GIVING_NUM) WHERE SP_ID=:SP_ID", OracleHelper.Connection
                , new OracleParameter(":BALANCE", (object)AddBalance)
web/Lib/Common.dll
Binary files differ
web/Lib/Common.pdb
Binary files differ
web/Lib/Dao.dll
Binary files differ
web/Lib/Dao.pdb
Binary files differ
web/Lib/Model.dll
Binary files differ
web/Lib/Model.pdb
Binary files differ
web/Model/Model/GwOrder.cs
@@ -23,19 +23,19 @@
        public string ComboId { get; set; }
        public int BasicNum { get; set; }
        public Int64 BasicNum { get; set; }
        public int GivingNum { get; set; }
        public Int64 GivingNum { get; set; }
        public int Price { get; set; }
        public int OrderNumTotal { get; set; }
        public Int64 OrderNumTotal { get; set; }
        public int OrderAmountTotal { get; set; }
        public Int64 OrderAmountTotal { get; set; }
        public int PayAmount { get; set; }
        public Int64 PayAmount { get; set; }
        public int BeforeBalanceNum { get; set; }
        public Int64 BeforeBalanceNum { get; set; }
        public string Creator { get; set; }
web/web/Bin/App_Code.dll
Binary files differ
web/web/Bin/App_Code.pdb
Binary files differ
web/web/Bin/Common.dll
Binary files differ
web/web/Bin/Common.pdb
Binary files differ
web/web/Bin/Dao.dll
Binary files differ
web/web/Bin/Dao.pdb
Binary files differ
web/web/Bin/Model.dll
Binary files differ
web/web/Bin/Model.pdb
Binary files differ
web/web/Bin/UMCLib.pdb
Binary files differ
web/web/GwOrder.ashx
@@ -313,11 +313,11 @@
    {
        string spId = context.GetString("spId");
        string orderId = context.GetString("orderId");
        int basicNum = context.GetInt("basicNum");
        int givingNum = context.GetInt("givingNum");
        Int64 basicNum = context.GetInt64("basicNum");
        Int64 givingNum = context.GetInt64("givingNum");
        string clientId = "";
        int payAmount = 0;
        int tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        Int64 payAmount = 0;
        Int64 tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        payAmount = tmpPayAmount;
        //double price = context.GetDecimal(price);
        int num = Math.Max((int) (context.GetDecimal("price", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
@@ -455,10 +455,10 @@
        }
        else if(status==1)
        {
            int beforeBasicNum = 0;
            int beforeGivingNum = 0;
            int balance = 0;
            int topUpAmountTotal = 0;
            Int64 beforeBasicNum = 0;
            Int64 beforeGivingNum = 0;
            Int64 balance = 0;
            Int64 topUpAmountTotal = 0;
            if (string.IsNullOrEmpty(nextFlowCode))
            {
                orderStatus = 2;                    
@@ -472,8 +472,8 @@
                //获取客户信息
                GwClient gwClient = _GwClientDao.Get(gwSp.ClientID);
                balance =  int.Parse(gwClient.Balance.ToString() );
                topUpAmountTotal = int.Parse(gwClient.Top_up_Amount_Total.ToString() );
                balance =  Int64.Parse(gwClient.Balance.ToString() );
                topUpAmountTotal = Int64.Parse(gwClient.Top_up_Amount_Total.ToString() );
                //为1-预付费
                //if (gwSp.ChargeType==1 && (balance + payAmount) < num * basicNum)
@@ -544,21 +544,21 @@
        string clientId = context.GetString("clientId");
        string productId = context.GetString("productId");
        //string comboId = context.GetString("comboId");
        int basicNum = context.GetInt("basicNum", 0);
        int givingNum = context.GetInt("givingNum", 0);
        Int64 basicNum = context.GetInt("basicNum", 0);
        Int64 givingNum = context.GetInt("givingNum", 0);
        int price = 0;
        int orderNumTotal = context.GetInt("orderNumTotal", 0);
        int orderAmountTotal = context.GetInt("orderAmountTotal", 0);
        int payAmount = 0;
        int beforeBalanceNum = context.GetInt("beforeBalanceNum", 0);
        Int64 orderNumTotal = context.GetInt("orderNumTotal", 0);
        Int64 orderAmountTotal = context.GetInt("orderAmountTotal", 0);
        Int64 payAmount = 0;
        Int64 beforeBalanceNum = context.GetInt("beforeBalanceNum", 0);
        //客服人员提交订单时的状态为1-审核中。
        int status = 1; //0-待审核(已提交);1-审核中;2-审核通过;3-审核不通过;4-取消;申请订单在未审核情况下可以取消。
        string remark = context.GetString("remark");
        DateTime createTime = DateTime.Now;
        string creator = context.OperatorID;
        int tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        Int64 tmpPayAmount = Math.Max((Int64) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        payAmount = tmpPayAmount;
        int num = Math.Max((int) (context.GetDecimal("price", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        price = num;
@@ -727,20 +727,20 @@
        string clientId = context.GetString("clientId");
        string productId = context.GetString("productId");
        string comboId = context.GetString("clientId");
        int basicNum = context.GetInt("basicNum", 0);
        int givingNum = context.GetInt("givingNum", 0);
        Int64 basicNum = context.GetInt("basicNum", 0);
        Int64 givingNum = context.GetInt("givingNum", 0);
        int price = 0;
        int orderNumTotal = context.GetInt("orderNumTotal", 0);
        int orderAmountTotal = context.GetInt("orderAmountTotal", 0);
        int payAmount = 0;
        int beforeBalanceNum = context.GetInt("beforeBalanceNum", 0);
        Int64 orderNumTotal = context.GetInt("orderNumTotal", 0);
        Int64 orderAmountTotal = context.GetInt("orderAmountTotal", 0);
        Int64 payAmount = 0;
        Int64 beforeBalanceNum = context.GetInt("beforeBalanceNum", 0);
        int status = 0;
        string remark = context.GetString("remark");
        DateTime createTime = DateTime.Now;
        string creator = context.OperatorID;
        int tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        Int64 tmpPayAmount = Math.Max((Int64) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);
        payAmount = tmpPayAmount;
        int num = Math.Max((int) (context.GetDecimal("price", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0);