|
@@ -1,5 +1,6 @@
|
|
|
package com.crm.ucard.controller;
|
|
package com.crm.ucard.controller;
|
|
|
|
|
|
|
|
|
|
+import com.crm.login.rely.backend.controller.BaseLoginController;
|
|
|
import com.crm.rely.backend.core.constant.FeignClientAnnotation;
|
|
import com.crm.rely.backend.core.constant.FeignClientAnnotation;
|
|
|
import com.crm.rely.backend.core.dto.base.*;
|
|
import com.crm.rely.backend.core.dto.base.*;
|
|
|
import com.crm.rely.backend.core.dto.ucard.*;
|
|
import com.crm.rely.backend.core.dto.ucard.*;
|
|
@@ -14,6 +15,7 @@ import com.crm.rely.backend.core.entity.ucard.crypto.currency.vaultody.VaultodyR
|
|
|
import com.crm.rely.backend.core.entity.wasabi.*;
|
|
import com.crm.rely.backend.core.entity.wasabi.*;
|
|
|
import com.crm.rely.backend.exception.ServiceException;
|
|
import com.crm.rely.backend.exception.ServiceException;
|
|
|
import com.crm.rely.backend.util.GetIpAndMac;
|
|
import com.crm.rely.backend.util.GetIpAndMac;
|
|
|
|
|
+import com.crm.rely.backend.util.HttpServletRequestUtil;
|
|
|
import com.crm.ucard.service.*;
|
|
import com.crm.ucard.service.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -31,7 +33,7 @@ import java.util.List;
|
|
|
@Slf4j
|
|
@Slf4j
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/wasabi/manager")
|
|
@RequestMapping("/wasabi/manager")
|
|
|
-public class WasabiCardController {
|
|
|
|
|
|
|
+public class WasabiCardController extends BaseLoginController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private UcardService ucardService;
|
|
private UcardService ucardService;
|
|
@@ -81,7 +83,12 @@ public class WasabiCardController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/merchant/user/page")
|
|
@PostMapping("/merchant/user/page")
|
|
|
@FeignClientAnnotation
|
|
@FeignClientAnnotation
|
|
|
- public ResultWithPagerDto<MerchantUserDto> getMerchantUserPageList(@RequestBody MerchantUserPageEntity entity) throws ServiceException {
|
|
|
|
|
|
|
+ public ResultWithPagerDto<MerchantUserDto> getMerchantUserPageList(@RequestBody MerchantUserPageEntity entity,HttpServletRequest request) throws ServiceException {
|
|
|
|
|
+ InfoEntity infoEntity = HttpServletRequestUtil.getLoginInfo(InfoEntity.class, request, redisService
|
|
|
|
|
+ , true);
|
|
|
|
|
+ if(infoEntity.getIbInfo().getIsMerchant() != null && infoEntity.getIbInfo().getIsMerchant() == 0){
|
|
|
|
|
+ entity.setMerId(infoEntity.getId());
|
|
|
|
|
+ }
|
|
|
return ucardService.getMerchantUserPageList(entity);
|
|
return ucardService.getMerchantUserPageList(entity);
|
|
|
}
|
|
}
|
|
|
|
|
|