企微语料ai解析开发
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.volvo.ai.analytic.center.dto;
|
||||
/**
|
||||
* @ClassName PageDto
|
||||
* @Description
|
||||
* @Author renzhen
|
||||
* @Date 2025-03-11 10:37
|
||||
* @Version 1.0
|
||||
**/
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
|
||||
@Data
|
||||
public class PageDto {
|
||||
|
||||
// 每页大小
|
||||
private static int currentPage = 1; // 当前页码
|
||||
public static int getTotalPages(int totalCount,int pageSize) {
|
||||
return (int) Math.ceil((double) totalCount / pageSize);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user