/// <summary> /// 获取用户借款详情 /// </summary> /// <param name="MemberID"></param> /// <returns></returns> public AppayLoan GetMemberLoanDetail(int MemberID) { string sqlstr = $"select AlreadyUsedAmount,AvailableAmount from MemberLoan where MemberID={MemberID}"; AppayLoan appayLoan = DbHelper.QuerySingle <AppayLoan>(sqlstr); return(appayLoan); }
/// <summary> /// 申请借款 /// </summary> /// <param name="MemberID"></param> /// <returns></returns> public JsonResult <AppayLoan> GetApplyloan(int MemberID) { AppayLoan appayLoan = _loanMemberService.GetMemberLoanDetail(MemberID); return(new JsonResult <AppayLoan> { status = true, Message = "获取成功", Data = appayLoan }); }