|
|
@@ -1,5 +1,6 @@
|
|
|
package com.crm.manager.controller;
|
|
|
|
|
|
+import com.crm.login.rely.backend.controller.BaseLoginController;
|
|
|
import com.crm.manager.dto.export.*;
|
|
|
import com.crm.manager.entity.excel.CardNumberExcelEntity;
|
|
|
import com.crm.manager.service.CommonService;
|
|
|
@@ -39,7 +40,7 @@ import java.util.stream.Collectors;
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@RequestMapping("/wasabi")
|
|
|
-public class WasabiCardController {
|
|
|
+public class WasabiCardController extends BaseLoginController {
|
|
|
|
|
|
@Autowired
|
|
|
private WasabiCardFeignService wasabiCardFeignService;
|
|
|
@@ -75,7 +76,8 @@ public class WasabiCardController {
|
|
|
* 商户用户分页列表
|
|
|
*/
|
|
|
@PostMapping("/merchant/user/page")
|
|
|
- public ResultWithPagerDto<MerchantUserDto> getMerchantUserPageList(@RequestBody MerchantUserPageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<MerchantUserDto> getMerchantUserPageList(@RequestBody MerchantUserPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getMerchantUserPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -83,7 +85,8 @@ public class WasabiCardController {
|
|
|
* 商户用户注册
|
|
|
*/
|
|
|
@PostMapping("/merchant/user/register")
|
|
|
- public BaseResultDto registerMerchantUser(@RequestBody @Validated CardMerchantUserEntity request) throws ServiceException {
|
|
|
+ public BaseResultDto registerMerchantUser(@RequestBody @Validated CardMerchantUserEntity request,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ request.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.registerMerchantUser(request);
|
|
|
}
|
|
|
|
|
|
@@ -115,7 +118,8 @@ public class WasabiCardController {
|
|
|
* 获取kyc认证分页列表
|
|
|
*/
|
|
|
@PostMapping("/merchant/kyc/page")
|
|
|
- ResultWithPagerDto<CardKycStatusDto> getKycPageList(@RequestBody CardKycStatusPageEntity entity) throws ServiceException {
|
|
|
+ ResultWithPagerDto<CardKycStatusDto> getKycPageList(@RequestBody CardKycStatusPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getKycPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -155,7 +159,8 @@ public class WasabiCardController {
|
|
|
* 获取卡片申请列表
|
|
|
*/
|
|
|
@PostMapping("/card/apply/page")
|
|
|
- public ResultWithPagerDto<CardApplyDto> getCardApplyPageList(@RequestBody CardApplyPageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardApplyDto> getCardApplyPageList(@RequestBody CardApplyPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getCardApplyPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -171,7 +176,8 @@ public class WasabiCardController {
|
|
|
* 获取卡片列表
|
|
|
*/
|
|
|
@PostMapping("/card/page")
|
|
|
- public ResultWithPagerDto<UcardCardDto> getCardPageList(@RequestBody CardPageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<UcardCardDto> getCardPageList(@RequestBody CardPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getCardPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -211,7 +217,8 @@ public class WasabiCardController {
|
|
|
* 获取用户钱包记录列表
|
|
|
*/
|
|
|
@PostMapping("/card/wallet/record/page")
|
|
|
- public ResultWithPagerDto<CardWalletRecordDto> getCardWalletRecordPageList(@RequestBody CardWalletRecordPageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardWalletRecordDto> getCardWalletRecordPageList(@RequestBody CardWalletRecordPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getCardWalletRecordPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -267,7 +274,8 @@ public class WasabiCardController {
|
|
|
* 查询交易记录分页列表
|
|
|
*/
|
|
|
@PostMapping("/card/transac/page")
|
|
|
- public ResultWithPagerDto<CardTransacOrderDto> getTransactionPageList(@RequestBody CardTransacOrderPageEntity request) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardTransacOrderDto> getTransactionPageList(@RequestBody CardTransacOrderPageEntity request,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ request.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getTransactionPageList(request);
|
|
|
}
|
|
|
|
|
|
@@ -345,7 +353,8 @@ public class WasabiCardController {
|
|
|
* 卡权限分页列表
|
|
|
*/
|
|
|
@PostMapping("/card/permission/page")
|
|
|
- public ResultWithPagerDto<CardPermissionDto> queryPermissionPageList(@RequestBody CardPermissionPageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardPermissionDto> queryPermissionPageList(@RequestBody CardPermissionPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.queryPermissionPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -377,7 +386,8 @@ public class WasabiCardController {
|
|
|
* 操作记录分页列表
|
|
|
*/
|
|
|
@PostMapping("/card/operate/page")
|
|
|
- public ResultWithPagerDto<CardOperateDto> queryOperatePageList(@RequestBody CardOperatePageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardOperateDto> queryOperatePageList(@RequestBody CardOperatePageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.queryOperatePageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -437,7 +447,8 @@ public class WasabiCardController {
|
|
|
* 证件类型配置列表
|
|
|
*/
|
|
|
@PostMapping("/card/id/type/config/list")
|
|
|
- public ResultWithPagerDto<CardIdTypeConfigDto> getCardIdTypeConfigList(@RequestBody CardIdTypeConfigPageEntity entity) throws ServiceException {
|
|
|
+ public ResultWithPagerDto<CardIdTypeConfigDto> getCardIdTypeConfigList(@RequestBody CardIdTypeConfigPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getCardIdTypeConfigList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -526,7 +537,8 @@ public class WasabiCardController {
|
|
|
* 卡号列表
|
|
|
*/
|
|
|
@PostMapping("/card/number/list")
|
|
|
- ResultWithPagerDto<CardNumberDto> queryCardNumberList(@RequestBody CardNumberPageEntity entity) throws ServiceException {
|
|
|
+ ResultWithPagerDto<CardNumberDto> queryCardNumberList(@RequestBody CardNumberPageEntity entity,InfoEntity infoEntity) throws ServiceException {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.queryCardNumberList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -930,7 +942,8 @@ public class WasabiCardController {
|
|
|
* 币种分页列表
|
|
|
*/
|
|
|
@PostMapping("/global/currencies/list")
|
|
|
- ResultWithPagerDto<WasabiAvailableCurrenciesListDto> getCurrenciesPageList(@RequestBody GlobalCurrenciesPageListEntity entity) throws ServiceException{
|
|
|
+ ResultWithPagerDto<WasabiAvailableCurrenciesListDto> getCurrenciesPageList(@RequestBody GlobalCurrenciesPageListEntity entity,InfoEntity infoEntity) throws ServiceException{
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getCurrenciesPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -970,7 +983,8 @@ public class WasabiCardController {
|
|
|
* 速汇订单分页列表
|
|
|
*/
|
|
|
@PostMapping("/global/order/page/list")
|
|
|
- public ResultWithPagerDto<GlobalOrderDto> globalOrderPageList(@RequestBody GlobalOrderPageEntity entity) throws Exception {
|
|
|
+ public ResultWithPagerDto<GlobalOrderDto> globalOrderPageList(@RequestBody GlobalOrderPageEntity entity,InfoEntity infoEntity) throws Exception {
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.globalOrderPageList(entity);
|
|
|
}
|
|
|
|
|
|
@@ -1162,7 +1176,8 @@ public class WasabiCardController {
|
|
|
* 加密货币交易分页列表
|
|
|
*/
|
|
|
@PostMapping("/encrypted/wallet/transaction/page")
|
|
|
- ResultWithPagerDto<EncryptedWalletTransactionDto> getEncryptedWalletTransactionPage(@RequestBody EncryptedWalletTransactionPageEntity entity) throws ServiceException{
|
|
|
+ ResultWithPagerDto<EncryptedWalletTransactionDto> getEncryptedWalletTransactionPage(@RequestBody EncryptedWalletTransactionPageEntity entity,InfoEntity infoEntity) throws ServiceException{
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.getEncryptedWalletTransactionPage(entity);
|
|
|
}
|
|
|
|
|
|
@@ -1178,7 +1193,8 @@ public class WasabiCardController {
|
|
|
* 卡3ds分页列表
|
|
|
*/
|
|
|
@PostMapping("/card/3ds/transaction/page")
|
|
|
- ResultWithPagerDto<Card3dsTransactionDto> queryCard3dsTransactionPage(@RequestBody Card3dsTransactionPageEntity entity) throws ServiceException{
|
|
|
+ ResultWithPagerDto<Card3dsTransactionDto> queryCard3dsTransactionPage(@RequestBody Card3dsTransactionPageEntity entity,InfoEntity infoEntity) throws ServiceException{
|
|
|
+ entity.setMerchantId(infoEntity.getIbInfo().getMerchantId());
|
|
|
return wasabiCardFeignService.queryCard3dsTransactionPage(entity);
|
|
|
}
|
|
|
|