解决代码生成页面实体查询条件无效问题
This commit is contained in:
parent
37fcc5cbe7
commit
af4f52a25f
@ -23,6 +23,9 @@ public class CodegenTablePageReqVO extends PageParam {
|
|||||||
@Schema(description = "表描述,模糊匹配", example = "芋道")
|
@Schema(description = "表描述,模糊匹配", example = "芋道")
|
||||||
private String tableComment;
|
private String tableComment;
|
||||||
|
|
||||||
|
@Schema(description = "实体,模糊匹配", example = "Yudao")
|
||||||
|
private String className;
|
||||||
|
|
||||||
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
private LocalDateTime[] createTime;
|
private LocalDateTime[] createTime;
|
||||||
|
@ -21,6 +21,7 @@ public interface CodegenTableMapper extends BaseMapperX<CodegenTableDO> {
|
|||||||
return selectPage(pageReqVO, new LambdaQueryWrapperX<CodegenTableDO>()
|
return selectPage(pageReqVO, new LambdaQueryWrapperX<CodegenTableDO>()
|
||||||
.likeIfPresent(CodegenTableDO::getTableName, pageReqVO.getTableName())
|
.likeIfPresent(CodegenTableDO::getTableName, pageReqVO.getTableName())
|
||||||
.likeIfPresent(CodegenTableDO::getTableComment, pageReqVO.getTableComment())
|
.likeIfPresent(CodegenTableDO::getTableComment, pageReqVO.getTableComment())
|
||||||
|
.likeIfPresent(CodegenTableDO::getClassName, pageReqVO.getClassName())
|
||||||
.betweenIfPresent(CodegenTableDO::getCreateTime, pageReqVO.getCreateTime()));
|
.betweenIfPresent(CodegenTableDO::getCreateTime, pageReqVO.getCreateTime()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user