Dead store to cq in

com.jeecg.demo.controller.JeecgListDemoController.logrpDatagrid(HttpServletResponse,
JeecgLogReport, DataGrid)
Bug type DLS_DEAD_LOCAL_STORE (click for details) 
In class com.jeecg.demo.controller.JeecgListDemoController
In method
com.jeecg.demo.controller.JeecgListDemoController.logrpDatagrid(HttpServletResponse,
JeecgLogReport, DataGrid)
Local variable named cq
At JeecgListDemoController.java:[line 555]
master
jiasudu 2019-05-28 16:03:18 +08:00
parent 390eaa60da
commit a5f9849ff0
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ public class JeecgListDemoController extends BaseController {
@RequestMapping(params = "addTab")
public ModelAndView addTab(HttpServletRequest request) {
String type = oConvertUtils.getString(request.getParameter("type"));
//String type = oConvertUtils.getString(request.getParameter("type"));
return new ModelAndView("com/jeecg/demo/demoTab");
}
@ -552,7 +552,7 @@ public class JeecgListDemoController extends BaseController {
@RequestMapping(params = "logrpDatagrid")
public void logrpDatagrid(HttpServletResponse response,JeecgLogReport log, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(JeecgLogReport.class, dataGrid);
//CriteriaQuery cq = new CriteriaQuery(JeecgLogReport.class, dataGrid);
List<JeecgLogReport> list=this.jeecgMinidaoDao.getLogReportData(log);
dataGrid.setResults(list);
TagUtil.datagrid(response, dataGrid);