Commit c7ccb8286ac01238a28334bcfa966df357c4c190

Authored by puhui999
1 parent 7288e6c9

【代码优化】MALL: 售后订单增加 userId 检索条件

yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/admin/aftersale/vo/AfterSalePageReqVO.java
@@ -24,6 +24,9 @@ public class AfterSalePageReqVO extends PageParam { @@ -24,6 +24,9 @@ public class AfterSalePageReqVO extends PageParam {
24 @Schema(description = "售后流水号", example = "202211190847450020500077") 24 @Schema(description = "售后流水号", example = "202211190847450020500077")
25 private String no; 25 private String no;
26 26
  27 + @Schema(description = "用户编号", example = "1024")
  28 + private Long userId;
  29 +
27 @Schema(description = "售后状态", example = "10") 30 @Schema(description = "售后状态", example = "10")
28 @InEnum(value = AfterSaleStatusEnum.class, message = "售后状态必须是 {value}") 31 @InEnum(value = AfterSaleStatusEnum.class, message = "售后状态必须是 {value}")
29 private Integer status; 32 private Integer status;
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/mysql/aftersale/AfterSaleMapper.java
@@ -17,6 +17,7 @@ public interface AfterSaleMapper extends BaseMapperX<AfterSaleDO> { @@ -17,6 +17,7 @@ public interface AfterSaleMapper extends BaseMapperX<AfterSaleDO> {
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 .likeIfPresent(AfterSaleDO::getNo, reqVO.getNo()) 19 .likeIfPresent(AfterSaleDO::getNo, reqVO.getNo())
  20 + .eqIfPresent(AfterSaleDO::getUserId, reqVO.getUserId())
20 .eqIfPresent(AfterSaleDO::getStatus, reqVO.getStatus()) 21 .eqIfPresent(AfterSaleDO::getStatus, reqVO.getStatus())
21 .eqIfPresent(AfterSaleDO::getType, reqVO.getType()) 22 .eqIfPresent(AfterSaleDO::getType, reqVO.getType())
22 .eqIfPresent(AfterSaleDO::getWay, reqVO.getWay()) 23 .eqIfPresent(AfterSaleDO::getWay, reqVO.getWay())