日志趋势添加servicID查询条件
This commit is contained in:
@@ -57,7 +57,7 @@ public class LogSearchController extends BaseController{
|
||||
|
||||
|
||||
@RequestMapping(value = {"logTrend",""})
|
||||
public String logTrend(Model model,BaseLogEntity<Object> entity,String cfgId,RedirectAttributes attr, HttpServletRequest request,
|
||||
public String logTrend(Model model,BaseLogEntity<Object> entity,String cfgId,String serviceId,RedirectAttributes attr, HttpServletRequest request,
|
||||
HttpServletResponse response) {
|
||||
Calendar cal = Calendar. getInstance ();
|
||||
cal.setTime(new Date());
|
||||
@@ -67,16 +67,20 @@ public class LogSearchController extends BaseController{
|
||||
model.addAttribute("beginDate", oneHoursAgo);
|
||||
model.addAttribute("endDate", now);
|
||||
model.addAttribute("cfgId", cfgId);
|
||||
model.addAttribute("serviceId", serviceId);
|
||||
return "/cfg/logCfgTrendList";
|
||||
}
|
||||
|
||||
@RequestMapping(value="actionLogTrend")
|
||||
@ResponseBody
|
||||
public List actionTrans(String cfgId,String beginDate,String endDate){
|
||||
public List actionTrans(String cfgId,String beginDate,String endDate,String serviceId){
|
||||
Map<String, Object> fromJsonList = new HashMap<String, Object>();
|
||||
List resultList = new ArrayList();
|
||||
String url = Constants.LOG_BASE_URL+Constants.NTC_PZ_REPORT;
|
||||
url=url+"?searchBusinessType=2&searchCfgId="+cfgId;
|
||||
if(!StringUtil.isEmpty(serviceId)){
|
||||
url=url+"&searchService="+serviceId;
|
||||
}
|
||||
try {
|
||||
//String url="http://192.168.10.204:9999/galaxy-service/service/log/v1/ntcPzReport?searchBusinessType=2&searchReportStartTime=2018-12-29%2000:00:00&searchReportEndTime=2018-12-30%2000:00:00";
|
||||
url = urlAddDate(url,beginDate,endDate);
|
||||
|
||||
Reference in New Issue
Block a user