* 父级DEMO下拉菜单
*/
@RequestMapping(params = "pDemoList")
@ResponseBody
public List<ComboTree> pDemoList(HttpServletRequest request, ComboTree comboTree) {
CriteriaQuery cq = new CriteriaQuery(TSDemo.class);
if (comboTree.getId() != null) {
cq.eq("TSDemo.id", comboTree.getId());
}
if (comboTree.getId() == null) {
cq.isNull("TSDemo");
}
cq.add();
List<TSDemo> demoList = systemService.getListByCriteriaQuery(cq, false);
List<ComboTree> comboTrees = new ArrayList<ComboTree>();
ComboTreeModel comboTreeModel = new ComboTreeModel("id", "demotitle", "tsDemos", "demourl");
comboTrees = systemService.ComboTree(demoList, comboTreeModel, null);
return comboTrees;