分页插件修改
parent
c541b1f5e3
commit
0874923be8
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue