@Override
protected void list(HttpServletRequest request, HttpServletResponse response) {
String pj = request.getParameter("pj");
String res = request.getParameter("res");
PjAuth entity = (PjAuth) request.getAttribute("entity");
if(entity == null){
entity = new PjAuth();
entity.setPj(pj);
request.setAttribute("entity", entity);
}
if(StringUtils.isBlank(res)){
String path = request.getParameter("path");//从rep 树点击进来,传递的是path
if(StringUtils.isNotBlank(path)){
res = this.pjAuthService.formatRes(pj, path);
}
}else{
res = entity.getRes();
}
entity.setRes(res);
List<PjAuth> list = pjAuthService.list(pj,res);
request.setAttribute("list", list);
}