Commit d2c7ec24459d25382aa61726e02f3ad007792173

Authored by YunaiV
1 parent 973ff1bb

【功能新增】商城:售后分页查询,支持 userId 过滤

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 21 @ToString(callSuper = true)
22 22 public class AfterSalePageReqVO extends PageParam {
23 23  
  24 + @Schema(description = "用户编号", example = "1024")
  25 + private Long userId;
  26 +
24 27 @Schema(description = "售后流水号", example = "202211190847450020500077")
25 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 16  
17 17 default PageResult<AfterSaleDO> selectPage(AfterSalePageReqVO reqVO) {
18 18 return selectPage(reqVO, new LambdaQueryWrapperX<AfterSaleDO>()
  19 + .eqIfPresent(AfterSaleDO::getUserId, reqVO.getUserId())
19 20 .likeIfPresent(AfterSaleDO::getNo, reqVO.getNo())
20 21 .eqIfPresent(AfterSaleDO::getStatus, reqVO.getStatus())
21 22 .eqIfPresent(AfterSaleDO::getType, reqVO.getType())
... ...