修改了分页查询等接口

This commit is contained in:
renhao02 2025-03-21 20:27:54 +08:00
parent 45d0bfa3e2
commit e3d5b39b3e
4 changed files with 4 additions and 0 deletions

View File

@ -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();

View File

@ -70,6 +70,7 @@ public interface PagingAndSortingSpecificationRepository<T> {
*/ */
long count(@Nullable Specification<T> specification); long count(@Nullable Specification<T> specification);
/** /**
* 带实体图的列表查询可提高查询性能 实体图的作用是可以管理查询需要的属性和实体而不是默认的字段属性 * 带实体图的列表查询可提高查询性能 实体图的作用是可以管理查询需要的属性和实体而不是默认的字段属性
* *

View File

@ -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;

View File

@ -2,6 +2,7 @@ package com.aisino.iles.core.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* 当前用户标记,用于帮助标记参数,方便用户属性注入 * 当前用户标记,用于帮助标记参数,方便用户属性注入
*/ */