仓库添加负责人字段
This commit is contained in:
@@ -16,6 +16,7 @@ public class Constants {
|
||||
public final static String SEARCH = "search";
|
||||
public final static String DEVICE_ID = "deviceId";
|
||||
public final static String OFFSET = "offset";
|
||||
public final static String ROWS = "rows";
|
||||
public final static String IS_RECURSION = "isRecursion";
|
||||
public final static String IS_RECURSION_VALUE = "1";
|
||||
public final static String IS_QUERYBYNODEID = "isquerybyid";
|
||||
|
||||
@@ -9,14 +9,14 @@ import java.util.List;
|
||||
*/
|
||||
public class PageQueryInfo {
|
||||
|
||||
private Integer total;
|
||||
private Long total;
|
||||
private List<?> rows;
|
||||
|
||||
public Integer getTotal() {
|
||||
public Long getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(Integer total) {
|
||||
public void setTotal(Long total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,10 +12,32 @@ public class ParamUtils {
|
||||
public static String getPageOffset(Integer currentPage, Integer pageSize) {
|
||||
if (currentPage != null && pageSize != null) {
|
||||
int offset = (currentPage - 1) * pageSize;
|
||||
if (offset < 0) {
|
||||
return 0 + "";
|
||||
if (offset <= 0) {
|
||||
return "0";
|
||||
} else {
|
||||
return offset + "";
|
||||
return new StringBuffer().append(offset).toString();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static Integer getNumberPageOffset(Integer currentPage, Integer pageSize) {
|
||||
if (currentPage != null && pageSize != null) {
|
||||
int offset = (currentPage - 1) * pageSize;
|
||||
if (offset <= 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return offset;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static Integer getNumberPageRows(Integer currentPage, Integer pageSize) {
|
||||
if (currentPage != null && pageSize != null) {
|
||||
int rows = (currentPage) * pageSize;
|
||||
if (rows <= 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return rows;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user