feat(feedback): 添加反馈列表按提交人筛选功能
- 在 FeedbackMapper 中添加按创建者筛选的查询条件 - 在 FeedbackPageReqVO 中添加 creator 字段用于接收提交人用户编号参数 - 支持通过提交人用户编号对反馈列表进行精确匹配筛选 - 保持与其他筛选条件的组合查询兼容性
This commit is contained in:
@@ -19,4 +19,7 @@ public class FeedbackPageReqVO extends PageParam {
|
|||||||
@Schema(description = "标题关键词")
|
@Schema(description = "标题关键词")
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
|
@Schema(description = "提交人用户编号(创建者)", example = "2034588597520314370")
|
||||||
|
private String creator;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ public interface FeedbackMapper extends BaseMapperX<FeedbackDO> {
|
|||||||
return selectPage(reqVO, new LambdaQueryWrapperX<FeedbackDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<FeedbackDO>()
|
||||||
.eqIfPresent(FeedbackDO::getType, reqVO.getType())
|
.eqIfPresent(FeedbackDO::getType, reqVO.getType())
|
||||||
.eqIfPresent(FeedbackDO::getStatus, reqVO.getStatus())
|
.eqIfPresent(FeedbackDO::getStatus, reqVO.getStatus())
|
||||||
|
.eqIfPresent(FeedbackDO::getCreator, reqVO.getCreator())
|
||||||
.likeIfPresent(FeedbackDO::getTitle, reqVO.getTitle())
|
.likeIfPresent(FeedbackDO::getTitle, reqVO.getTitle())
|
||||||
.orderByDesc(FeedbackDO::getId));
|
.orderByDesc(FeedbackDO::getId));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user