...
|
...
|
@@ -89,8 +89,26 @@ public class JavaAppInfoCtrl { |
|
|
|
|
|
@RequestMapping("/queryhis")
|
|
|
@ResponseBody
|
|
|
public BaseResponse getJavaApiStatusHis() {
|
|
|
public BaseResponse getJavaApiStatusHis(@RequestParam(required = false, defaultValue = "0") int api_id,
|
|
|
@RequestParam(required = false, defaultValue = "0") int mobj_id,
|
|
|
@RequestParam(required = false, defaultValue = "0") long start_time,
|
|
|
@RequestParam(required = false, defaultValue = "0") long end_time,
|
|
|
@RequestParam(required = false, defaultValue = "0") int page) {
|
|
|
BaseResponse rep = new BaseResponse();
|
|
|
if (start_time == 0) {
|
|
|
return getJavaApiStatusHisLatest(api_id, mobj_id);
|
|
|
}
|
|
|
|
|
|
if (end_time == 0)
|
|
|
end_time = System.currentTimeMillis();
|
|
|
|
|
|
try {
|
|
|
List<JavaApiStatusRep> javaApiStatusRepList = javaApiStatusService.getJavaApiStatusHisByTime(api_id, mobj_id, start_time, end_time, page);
|
|
|
rep.setData(javaApiStatusRepList);
|
|
|
} catch (Exception e) {
|
|
|
rep.setCode(400);
|
|
|
rep.setMessage(e.getMessage());
|
|
|
}
|
|
|
|
|
|
return rep;
|
|
|
}
|
...
|
...
|
|