分页插件修改

master
Xusan 2024-05-20 16:22:41 +08:00
parent c541b1f5e3
commit 0874923be8
2 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class MyBatisPlusConfig {
@Bean @Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() { public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); // 分页插件 interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.DM)); // 分页插件
return interceptor; return interceptor;
} }
} }

View File

@ -65,6 +65,10 @@ public class AddressBook extends Model<AddressBook> implements Serializable {
@ApiModelProperty(value = "职务") @ApiModelProperty(value = "职务")
private String position; private String position;
@TableField("RESPONSIBILITY")
@ApiModelProperty(value = "职责")
private String responsibility;
@TableField("COMMENTS") @TableField("COMMENTS")
@ApiModelProperty(value = "备注") @ApiModelProperty(value = "备注")
private String comments; private String comments;