| | |
| | | /// </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) |