Commit d2c7ec24459d25382aa61726e02f3ad007792173
1 parent
973ff1bb
【功能新增】商城:售后分页查询,支持 userId 过滤
Showing
2 changed files
with
4 additions
and
0 deletions
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/AfterSalePageReqVO.java
| @@ -21,6 +21,9 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -21,6 +21,9 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 21 | @ToString(callSuper = true) | 21 | @ToString(callSuper = true) |
| 22 | public class AfterSalePageReqVO extends PageParam { | 22 | public class AfterSalePageReqVO extends PageParam { |
| 23 | 23 | ||
| 24 | + @Schema(description = "用户编号", example = "1024") | ||
| 25 | + private Long userId; | ||
| 26 | + | ||
| 24 | @Schema(description = "售后流水号", example = "202211190847450020500077") | 27 | @Schema(description = "售后流水号", example = "202211190847450020500077") |
| 25 | private String no; | 28 | private String no; |
| 26 | 29 |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/mysql/aftersale/AfterSaleMapper.java
| @@ -16,6 +16,7 @@ public interface AfterSaleMapper extends BaseMapperX<AfterSaleDO> { | @@ -16,6 +16,7 @@ public interface AfterSaleMapper extends BaseMapperX<AfterSaleDO> { | ||
| 16 | 16 | ||
| 17 | default PageResult<AfterSaleDO> selectPage(AfterSalePageReqVO reqVO) { | 17 | default PageResult<AfterSaleDO> selectPage(AfterSalePageReqVO reqVO) { |
| 18 | return selectPage(reqVO, new LambdaQueryWrapperX<AfterSaleDO>() | 18 | return selectPage(reqVO, new LambdaQueryWrapperX<AfterSaleDO>() |
| 19 | + .eqIfPresent(AfterSaleDO::getUserId, reqVO.getUserId()) | ||
| 19 | .likeIfPresent(AfterSaleDO::getNo, reqVO.getNo()) | 20 | .likeIfPresent(AfterSaleDO::getNo, reqVO.getNo()) |
| 20 | .eqIfPresent(AfterSaleDO::getStatus, reqVO.getStatus()) | 21 | .eqIfPresent(AfterSaleDO::getStatus, reqVO.getStatus()) |
| 21 | .eqIfPresent(AfterSaleDO::getType, reqVO.getType()) | 22 | .eqIfPresent(AfterSaleDO::getType, reqVO.getType()) |