feat:钱包表格统计
This commit is contained in:
1 parent
0b43f24a20
commit
daee494a44
2 files changed
+11
-1
No files matched your search
+9
@@ -5,6 +5,7 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
@@ -19,6 +20,14 @@ public enum WalletBizEnum {
|
||||
|
||||
private final String desc;
|
||||
|
||||
public static List<String> getTopUpCodes() {
|
||||
return List.of(
|
||||
WalletBizEnum.UPDATE.getCode(),
|
||||
WalletBizEnum.BATCH.getCode(),
|
||||
WalletBizEnum.RECHARGE.getCode()
|
||||
);
|
||||
}
|
||||
|
||||
public static WalletBizEnum descOf(String description) {
|
||||
return Arrays.stream(WalletBizEnum.values())
|
||||
.filter(v -> ObjectUtil.equal(v.getDesc(), description))
|
||||
|
||||
+2
-1
@@ -95,7 +95,8 @@ public class WalletTransactionController {
|
||||
@Operation(summary = "后台充值分页", description = "后台充值分页")
|
||||
@GetMapping("/page-cz")
|
||||
public R pageCz(@ParameterObject Page page, @ParameterObject WalletTransactionDto dto) {
|
||||
dto.setBizTypes(List.of(WalletBizEnum.RECHARGE.getCode()));
|
||||
dto.setBizTypes(WalletBizEnum.getTopUpCodes());
|
||||
dto.setType(WalletTransactionDto.TYPE_INCOME);
|
||||
DataScope dataScope = new DataScope();
|
||||
return R.ok(walletTransactionService.scopePageList(page, dto, dataScope));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user