|
|
@@ -3,6 +3,7 @@ package com.mrxu.framework.boot.entity;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.mrxu.framework.boot.MrxuConst;
|
|
|
import com.mrxu.framework.boot.util.MrxuAssert;
|
|
|
+import com.mrxu.framework.common.util.StrFunc;
|
|
|
|
|
|
public class PageParam<T> extends Page<T> {
|
|
|
|
|
|
@@ -30,4 +31,16 @@ public class PageParam<T> extends Page<T> {
|
|
|
this.setSize(limit);
|
|
|
}
|
|
|
|
|
|
+ private String startTime;
|
|
|
+
|
|
|
+ private String endTime;
|
|
|
+
|
|
|
+ public void setTimeRange(String timeRange) {
|
|
|
+ if(StrFunc.isNotEmpty(timeRange)) {
|
|
|
+ String[] arr = timeRange.split("~");
|
|
|
+ this.startTime = arr[0].trim();
|
|
|
+ this.endTime = arr[1].trim();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|