예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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
            });
        }