增加分割删除nginx access.log的脚本 志总量,登陆用户名密码提示国际化文件修改 张微's avatar 修改proxy帮助文档,配置操作日志,增加音视频样例剪切工具下载 修正特定服务ajax动态新增的时候没有将编译ID获取的bug
40 lines
1.5 KiB
Java
40 lines
1.5 KiB
Java
package com.nis.web.controller.configuration;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
|
|
import com.nis.domain.log.BaseLogEntity;
|
|
import com.nis.web.controller.BaseController;
|
|
|
|
@Controller
|
|
@RequestMapping("${adminPath}/toLogSearch")
|
|
public class LogSearchController extends BaseController{
|
|
|
|
@RequestMapping(value = {"list",""})
|
|
public String LogSearch(BaseLogEntity<Object> entity, RedirectAttributes attr, HttpServletRequest request,
|
|
HttpServletResponse response) {
|
|
/**
|
|
* url: logUrl
|
|
* searchCfgId: compileId
|
|
* searchService: serviceId
|
|
*/
|
|
// 获取相应日志检索菜单URL
|
|
if(entity.getFunctionId()!=null && entity.getFunctionId().equals(635)){
|
|
entity.setFunctionId(8);//关键字配置的日志查询定位至http日志
|
|
}
|
|
String logUrl = menuService.getLogUrl(entity.getFunctionId());
|
|
// Integer serviceId = menuService.getServiceId(entity.getFunctionId(),entity.getAction());
|
|
|
|
attr.addAttribute("service", entity.getService().intValue());
|
|
attr.addAttribute("cfgId", entity.getCfgId());
|
|
attr.addAttribute("functionId", entity.getFunctionId());
|
|
attr.addAttribute("date", entity.getDate());
|
|
attr.addAttribute("isLogTotalSearch", entity.getIsLogTotalSearch());
|
|
return "redirect:"+adminPath+logUrl;
|
|
}
|
|
}
|