Commit eddc897cd8253b0824abbacd75657a9d19e147b3
1 parent
637ae8ce
分佣: 提现记录
Showing
3 changed files
with
30 additions
and
4 deletions
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/brokerage/AppBrokerageWithdrawController.java
| ... | ... | @@ -4,8 +4,8 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | 5 | import cn.iocoder.yudao.framework.security.core.annotations.PreAuthenticated; |
| 6 | 6 | import cn.iocoder.yudao.module.system.api.dict.DictDataApi; |
| 7 | -import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawPageReqVO; | |
| 8 | 7 | import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw.AppBrokerageWithdrawCreateReqVO; |
| 8 | +import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw.AppBrokerageWithdrawPageReqVO; | |
| 9 | 9 | import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw.AppBrokerageWithdrawRespVO; |
| 10 | 10 | import cn.iocoder.yudao.module.trade.convert.brokerage.BrokerageWithdrawConvert; |
| 11 | 11 | import cn.iocoder.yudao.module.trade.dal.dataobject.brokerage.BrokerageWithdrawDO; |
| ... | ... | @@ -39,10 +39,10 @@ public class AppBrokerageWithdrawController { |
| 39 | 39 | @GetMapping("/page") |
| 40 | 40 | @Operation(summary = "获得分销提现分页") |
| 41 | 41 | @PreAuthenticated |
| 42 | - public CommonResult<PageResult<AppBrokerageWithdrawRespVO>> getBrokerageWithdrawPage(BrokerageWithdrawPageReqVO pageReqVO) { | |
| 42 | + public CommonResult<PageResult<AppBrokerageWithdrawRespVO>> getBrokerageWithdrawPage(AppBrokerageWithdrawPageReqVO pageReqVO) { | |
| 43 | 43 | // 分页查询 |
| 44 | - pageReqVO.setUserId(getLoginUserId()); | |
| 45 | - PageResult<BrokerageWithdrawDO> pageResult = brokerageWithdrawService.getBrokerageWithdrawPage(pageReqVO); | |
| 44 | + PageResult<BrokerageWithdrawDO> pageResult = brokerageWithdrawService.getBrokerageWithdrawPage( | |
| 45 | + BrokerageWithdrawConvert.INSTANCE.convert(pageReqVO, getLoginUserId())); | |
| 46 | 46 | // 拼接信息 |
| 47 | 47 | Map<String, String> statusNameMap = dictDataApi.getDictDataLabelMap(BrokerageWithdrawStatusEnum.DICT_TYPE); |
| 48 | 48 | return success(BrokerageWithdrawConvert.INSTANCE.convertPage02(pageResult, statusNameMap)); | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/brokerage/vo/withdraw/AppBrokerageWithdrawPageReqVO.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw; | |
| 2 | + | |
| 3 | +import cn.iocoder.yudao.framework.common.pojo.PageParam; | |
| 4 | +import cn.iocoder.yudao.framework.common.validation.InEnum; | |
| 5 | +import cn.iocoder.yudao.module.trade.enums.brokerage.BrokerageWithdrawStatusEnum; | |
| 6 | +import cn.iocoder.yudao.module.trade.enums.brokerage.BrokerageWithdrawTypeEnum; | |
| 7 | +import io.swagger.v3.oas.annotations.media.Schema; | |
| 8 | +import lombok.Data; | |
| 9 | + | |
| 10 | +@Schema(description = "应用 App - 分销提现分页 Request VO") | |
| 11 | +@Data | |
| 12 | +public class AppBrokerageWithdrawPageReqVO extends PageParam { | |
| 13 | + | |
| 14 | + @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") | |
| 15 | + @InEnum(value = BrokerageWithdrawTypeEnum.class, message = "类型必须是 {value}") | |
| 16 | + private Integer type; | |
| 17 | + | |
| 18 | + @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") | |
| 19 | + @InEnum(value = BrokerageWithdrawStatusEnum.class, message = "状态必须是 {value}") | |
| 20 | + private Integer status; | |
| 21 | + | |
| 22 | +} | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/brokerage/BrokerageWithdrawConvert.java
| ... | ... | @@ -3,8 +3,10 @@ package cn.iocoder.yudao.module.trade.convert.brokerage; |
| 3 | 3 | import cn.hutool.core.map.MapUtil; |
| 4 | 4 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | 5 | import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO; |
| 6 | +import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawPageReqVO; | |
| 6 | 7 | import cn.iocoder.yudao.module.trade.controller.admin.brokerage.vo.withdraw.BrokerageWithdrawRespVO; |
| 7 | 8 | import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw.AppBrokerageWithdrawCreateReqVO; |
| 9 | +import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw.AppBrokerageWithdrawPageReqVO; | |
| 8 | 10 | import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.withdraw.AppBrokerageWithdrawRespVO; |
| 9 | 11 | import cn.iocoder.yudao.module.trade.dal.dataobject.brokerage.BrokerageWithdrawDO; |
| 10 | 12 | import org.mapstruct.Mapper; |
| ... | ... | @@ -49,4 +51,6 @@ public interface BrokerageWithdrawConvert { |
| 49 | 51 | } |
| 50 | 52 | return result; |
| 51 | 53 | } |
| 54 | + | |
| 55 | + BrokerageWithdrawPageReqVO convert(AppBrokerageWithdrawPageReqVO pageReqVO, Long userId); | |
| 52 | 56 | } | ... | ... |