feat(feedback): 添加反馈列表按提交人筛选功能

- 在 FeedbackMapper 中添加按创建者筛选的查询条件
- 在 FeedbackPageReqVO 中添加 creator 字段用于接收提交人用户编号参数
- 支持通过提交人用户编号对反馈列表进行精确匹配筛选
- 保持与其他筛选条件的组合查询兼容性
This commit is contained in:
2026-06-29 09:46:09 +08:00
parent e5b08e4728
commit 9f265c6dd1
2 changed files with 4 additions and 0 deletions

View File

@@ -19,4 +19,7 @@ public class FeedbackPageReqVO extends PageParam {
@Schema(description = "标题关键词")
private String title;
@Schema(description = "提交人用户编号(创建者)", example = "2034588597520314370")
private String creator;
}

View File

@@ -14,6 +14,7 @@ public interface FeedbackMapper extends BaseMapperX<FeedbackDO> {
return selectPage(reqVO, new LambdaQueryWrapperX<FeedbackDO>()
.eqIfPresent(FeedbackDO::getType, reqVO.getType())
.eqIfPresent(FeedbackDO::getStatus, reqVO.getStatus())
.eqIfPresent(FeedbackDO::getCreator, reqVO.getCreator())
.likeIfPresent(FeedbackDO::getTitle, reqVO.getTitle())
.orderByDesc(FeedbackDO::getId));
}