修改了分页查询等接口
This commit is contained in:
parent
45d0bfa3e2
commit
e3d5b39b3e
|
|
@ -42,6 +42,7 @@ public class PageResult<T> extends Result<Collection<T>> {
|
||||||
@JsonView(ForJsonView.PageView.class)
|
@JsonView(ForJsonView.PageView.class)
|
||||||
String relation;
|
String relation;
|
||||||
|
|
||||||
|
|
||||||
public PageResult(Page<T> page) {
|
public PageResult(Page<T> page) {
|
||||||
super();
|
super();
|
||||||
total = page.getTotalElements();
|
total = page.getTotalElements();
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ public interface PagingAndSortingSpecificationRepository<T> {
|
||||||
*/
|
*/
|
||||||
long count(@Nullable Specification<T> specification);
|
long count(@Nullable Specification<T> specification);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 带实体图的列表查询,可提高查询性能 (实体图的作用是可以管理,查询需要的属性和实体,而不是默认的字段属性)
|
* 带实体图的列表查询,可提高查询性能 (实体图的作用是可以管理,查询需要的属性和实体,而不是默认的字段属性)
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ public class FtpService {
|
||||||
private final AwsConfig awsConfig;
|
private final AwsConfig awsConfig;
|
||||||
private final AwsS3Service awsS3Service;
|
private final AwsS3Service awsS3Service;
|
||||||
|
|
||||||
|
|
||||||
public FtpService(AwsConfig awsConfig, AwsS3Service awsS3Service) {
|
public FtpService(AwsConfig awsConfig, AwsS3Service awsS3Service) {
|
||||||
this.awsConfig = awsConfig;
|
this.awsConfig = awsConfig;
|
||||||
this.awsS3Service = awsS3Service;
|
this.awsS3Service = awsS3Service;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.aisino.iles.core.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当前用户标记,用于帮助标记参数,方便用户属性注入
|
* 当前用户标记,用于帮助标记参数,方便用户属性注入
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue