🐛 oracle limit 查询不正确

This commit is contained in:
YunaiV 2024-01-20 18:46:51 +08:00
parent fea84deca0
commit 16fd1a9639
2 changed files with 2 additions and 3 deletions

View File

@ -151,7 +151,7 @@ public class QueryWrapperX<T> extends QueryWrapper<T> {
switch (SqlConstants.DB_TYPE) {
case ORACLE:
case ORACLE_12C:
super.eq("ROWNUM", n);
super.le("ROWNUM", n);
break;
case SQL_SERVER:
case SQL_SERVER2005:

View File

@ -11,8 +11,7 @@ import jakarta.validation.constraints.Size;
@Data
public class NoticeSaveReqVO {
@Schema(description = "岗位公告编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
@NotNull(message = "岗位公告编号不能为空")
@Schema(description = "岗位公告编号", example = "1024")
private Long id;
@Schema(description = "公告标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主")