yangle
2024-04-26 1549aca4567113f86f3bc62ee6e9f08b2ed19afd
WebAPI/Controllers/XSGL/Xs_CusRatingChangeBillController.cs
@@ -817,10 +817,20 @@
        /// </summary>
        [Route("Xs_CusRatingChangeBill/getCustomerBalance")]
        [HttpGet]
        public object getCustomerBalance(Int64 HCusID)
        public object getCustomerBalance(Int64 HCusID, string CurUserName)
        {
            try
            {
                //查看权限
                if (!DBUtility.ClsPub.Security_Log("Gy_Customer_Balance", 1, false, CurUserName))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无客户余额查看权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                string sql = "exec h_p_Gy_Customer_CrediControl " + HCusID;
                ds = oCN.RunProcReturn(sql, "h_p_Gy_Customer_CrediControl");
                if(ds == null || ds.Tables[0].Rows.Count == 0)