优化查询功能,

This commit is contained in:
zhangshilin
2018-03-09 14:08:27 +08:00
parent 64a97d974a
commit 3a76a268ca
10 changed files with 70 additions and 33 deletions

View File

@@ -156,7 +156,7 @@ public class ServiceDictInfoController extends BaseController {
for(int i=allList.size()-1;i>=0;i--){
ServiceDictInfo se = allList.get(i);
if(se!=null&&se.getServiceDictId()!=null){
if(tempList.contains(se.getServiceDictId())){
if(tempList.contains(se.getServiceDictId())||se.getParent().getServiceDictId()==0){
allList.remove(se);
}
}
@@ -164,7 +164,7 @@ public class ServiceDictInfoController extends BaseController {
allList.addAll(page.getList());
ServiceDictInfo.sortList(list,allList,0,true);
//serviceDictInfo.setItemType(selectedType);
model.addAttribute("itType", itType);
model.addAttribute("intArr", Arrays.asList(intArr));
model.addAttribute("list", list);