Commit 16fd1a96392c3f298fbc6ba9459423233749e327
1 parent
fea84dec
🐛 oracle limit 查询不正确
Showing
2 changed files
with
2 additions
and
3 deletions
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/core/query/QueryWrapperX.java
| ... | ... | @@ -151,7 +151,7 @@ public class QueryWrapperX<T> extends QueryWrapper<T> { |
| 151 | 151 | switch (SqlConstants.DB_TYPE) { |
| 152 | 152 | case ORACLE: |
| 153 | 153 | case ORACLE_12C: |
| 154 | - super.eq("ROWNUM", n); | |
| 154 | + super.le("ROWNUM", n); | |
| 155 | 155 | break; |
| 156 | 156 | case SQL_SERVER: |
| 157 | 157 | case SQL_SERVER2005: | ... | ... |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notice/vo/NoticeSaveReqVO.java
| ... | ... | @@ -11,8 +11,7 @@ import jakarta.validation.constraints.Size; |
| 11 | 11 | @Data |
| 12 | 12 | public class NoticeSaveReqVO { |
| 13 | 13 | |
| 14 | - @Schema(description = "岗位公告编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") | |
| 15 | - @NotNull(message = "岗位公告编号不能为空") | |
| 14 | + @Schema(description = "岗位公告编号", example = "1024") | |
| 16 | 15 | private Long id; |
| 17 | 16 | |
| 18 | 17 | @Schema(description = "公告标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "小博主") | ... | ... |