mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 04:25:21 +08:00
查询会员钱包列表
This commit is contained in:
@@ -17,6 +17,7 @@ import com.jsowell.pile.domain.MemberPlateNumberRelation;
|
||||
import com.jsowell.pile.dto.*;
|
||||
import com.jsowell.pile.service.IMemberBasicInfoService;
|
||||
import com.jsowell.pile.service.IMemberPlateNumberRelationService;
|
||||
import com.jsowell.pile.vo.base.MemberWalletVO;
|
||||
import com.jsowell.pile.vo.uniapp.InvoiceTitleVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletInfoVO;
|
||||
@@ -483,4 +484,26 @@ public class MemberController extends BaseController {
|
||||
logger.info("查询会员发票抬头列表 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会员钱包列表
|
||||
* http://localhost:8080/uniapp/member/queryMemberWalletList
|
||||
*/
|
||||
@GetMapping("/queryMemberWalletList")
|
||||
public RestApiResponse<?> queryMemberWalletList(HttpServletRequest request) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String memberId = getMemberIdByAuthorization(request);
|
||||
List<MemberWalletVO> list = memberService.queryMemberWalletList(memberId);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("list", list));
|
||||
} catch (BusinessException e) {
|
||||
logger.error("查询会员钱包列表 error", e);
|
||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("查询会员钱包列表 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("查询会员钱包列表 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ import com.jsowell.pile.dto.*;
|
||||
import com.jsowell.pile.service.*;
|
||||
import com.jsowell.pile.transaction.dto.MemberTransactionDTO;
|
||||
import com.jsowell.pile.transaction.service.TransactionService;
|
||||
import com.jsowell.pile.vo.base.MemberWalletVO;
|
||||
import com.jsowell.pile.vo.uniapp.*;
|
||||
import com.jsowell.wxpay.service.WxAppletRemoteService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
@@ -689,4 +690,8 @@ public class MemberService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<MemberWalletVO> queryMemberWalletList(String memberId) {
|
||||
return memberWalletInfoService.selectByMemberWalletList(memberId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,6 +170,10 @@ public class MemberBasicInfoController extends BaseController {
|
||||
return ajaxResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会员钱包列表
|
||||
*/
|
||||
|
||||
/**
|
||||
* 查询会员钱包流水
|
||||
* http://localhost:8080/member/info/queryMemberBalanceChanges
|
||||
|
||||
Reference in New Issue
Block a user