feat(REQ-4418) - 调整查询日期的参数
This commit is contained in:
parent
9dfde7cf88
commit
59addaa671
@ -20,6 +20,7 @@ import cn.axzo.workflow.server.common.util.ShellUtil;
|
||||
import cn.axzo.workflow.server.xxljob.EsIndexOperationJobHandler;
|
||||
import cn.axzo.workflow.server.xxljob.SpecifyProcessInstanceSyncEsJobHandler;
|
||||
import cn.azxo.framework.common.model.CommonResponse;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.flowable.bpmn.model.FlowElement;
|
||||
@ -290,7 +291,7 @@ public class TestController {
|
||||
}*/
|
||||
|
||||
@GetMapping("log")
|
||||
public String log(@RequestParam String keyword, @RequestParam(required = false) Date date, @RequestParam(required = false) String grepKeyword) throws Exception {
|
||||
public String log(@RequestParam String keyword, @RequestParam(required = false) String date, @RequestParam(required = false) String grepKeyword) throws Exception {
|
||||
if (!StringUtils.hasText(keyword)) {
|
||||
return "命令不能为空";
|
||||
}
|
||||
@ -298,7 +299,7 @@ public class TestController {
|
||||
if (StringUtils.hasText(s)) {
|
||||
return s;
|
||||
}
|
||||
return ShellUtil.grepLog(profile, keyword, Objects.isNull(date) ? new Date() : date, grepKeyword);
|
||||
return ShellUtil.grepLog(profile, keyword, StringUtils.hasText(date) ? DateUtil.parseDate(date) : new Date(), grepKeyword);
|
||||
}
|
||||
|
||||
@GetMapping("form")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user