|
|
@ -339,18 +339,19 @@ public class CashCollectionController { |
|
|
|
|
|
|
|
|
UserWalletRecord queryCondition = page.getUserWalletRecord(); |
|
|
UserWalletRecord queryCondition = page.getUserWalletRecord(); |
|
|
if (queryCondition == null || |
|
|
if (queryCondition == null || |
|
|
(queryCondition.getJwcode() == null && queryCondition.getWalletId() == null)) { |
|
|
|
|
|
return Result.error("精网号和钱包 ID 不能同时为空"); |
|
|
|
|
|
|
|
|
(queryCondition.getJwcode() == null && queryCondition.getWalletId() == null && |
|
|
|
|
|
(queryCondition.getMarket() == null || queryCondition.getMarket().isEmpty()))) { |
|
|
|
|
|
return Result.error("精网号、钱包 ID 和地区不能同时为空"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Result result = Result.success(cashCollectionService.selectWalletRecordsByJwcodeAndWalletId( |
|
|
Result result = Result.success(cashCollectionService.selectWalletRecordsByJwcodeAndWalletId( |
|
|
page.getPageNum(), |
|
|
page.getPageNum(), |
|
|
page.getPageSize(), |
|
|
page.getPageSize(), |
|
|
queryCondition.getJwcode(), |
|
|
queryCondition.getJwcode(), |
|
|
queryCondition.getWalletId() |
|
|
|
|
|
|
|
|
queryCondition.getWalletId(), |
|
|
|
|
|
queryCondition.getMarket() |
|
|
)); |
|
|
)); |
|
|
|
|
|
|
|
|
// 对返回结果进行多语言转换 |
|
|
|
|
|
if (result.getCode() == 200 && result.getData() instanceof PageInfo) { |
|
|
if (result.getCode() == 200 && result.getData() instanceof PageInfo) { |
|
|
PageInfo<UserWalletRecordVO> pageInfo = (PageInfo<UserWalletRecordVO>) result.getData(); |
|
|
PageInfo<UserWalletRecordVO> pageInfo = (PageInfo<UserWalletRecordVO>) result.getData(); |
|
|
translateWalletRecordVOs(pageInfo, lang); |
|
|
translateWalletRecordVOs(pageInfo, lang); |
|
|
|