|
@@ -1,9 +1,14 @@
|
|
|
package com.fdkankan.manage.vo.request;
|
|
|
|
|
|
+import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.manage.util.Dateutils;
|
|
|
+import com.fdkankan.manage.util.FiledUtil;
|
|
|
import com.fdkankan.manage.vo.request.RequestBase;
|
|
|
+import jodd.util.StringUtil;
|
|
|
import lombok.Data;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
+import java.security.GeneralSecurityException;
|
|
|
import java.util.List;
|
|
|
@Data
|
|
|
public class SceneParam extends RequestBase {
|
|
@@ -21,6 +26,10 @@ public class SceneParam extends RequestBase {
|
|
|
private String startTime;
|
|
|
private String endTime;
|
|
|
|
|
|
+ private String filed;
|
|
|
+
|
|
|
+ private String order;
|
|
|
+
|
|
|
public String getStartTime() {
|
|
|
if(timeList != null && timeList.size() >1){
|
|
|
return Dateutils.getStartTime(timeList.get(0));
|
|
@@ -34,4 +43,20 @@ public class SceneParam extends RequestBase {
|
|
|
}
|
|
|
return Dateutils.getEndTime(endTime);
|
|
|
}
|
|
|
+
|
|
|
+ public String getFiled() {
|
|
|
+ if(StringUtil.isNotBlank(filed)){
|
|
|
+ return FiledUtil.upperCharToUnderLine(filed);
|
|
|
+ }
|
|
|
+ return "crate_time";
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getOrder() {
|
|
|
+ if(StringUtil.isNotBlank(order) && order.contains("end")){
|
|
|
+ return order.split("end")[0];
|
|
|
+ }
|
|
|
+ return "DESC";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|