|
|
@ -12,6 +12,7 @@ import com.shxy.xymanager_common.model.DyLineTreeListModel;
|
|
|
|
import com.shxy.xymanager_common.model.TerminalPhotosModel;
|
|
|
|
import com.shxy.xymanager_common.model.TerminalPhotosModel;
|
|
|
|
import com.shxy.xymanager_common.page.PageUtils;
|
|
|
|
import com.shxy.xymanager_common.page.PageUtils;
|
|
|
|
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
|
|
|
|
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.vo.DyTreeListVo;
|
|
|
|
import com.shxy.xymanager_common.vo.LastTowerVo;
|
|
|
|
import com.shxy.xymanager_common.vo.LastTowerVo;
|
|
|
|
import com.shxy.xymanager_dao.dao.*;
|
|
|
|
import com.shxy.xymanager_dao.dao.*;
|
|
|
|
import com.shxy.xymanager_service.service.CacheService;
|
|
|
|
import com.shxy.xymanager_service.service.CacheService;
|
|
|
@ -26,7 +27,6 @@ import java.math.BigInteger;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 装置通道实现层
|
|
|
|
* 装置通道实现层
|
|
|
@ -82,7 +82,9 @@ public class DyLevelServiceImpl implements DyLevelService {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<DyLineTreeListModel> getdyTreeList(Integer type) {
|
|
|
|
public ServiceBody<DyLineTreeListModel> getdyTreeList(DyTreeListVo vo) {
|
|
|
|
|
|
|
|
Integer type = vo.getType();
|
|
|
|
|
|
|
|
List<Integer> devtype = vo.getDevtype();
|
|
|
|
PermissionDetail permissionDetail = new PermissionDetail();
|
|
|
|
PermissionDetail permissionDetail = new PermissionDetail();
|
|
|
|
DyLineTreeListModel model = new DyLineTreeListModel();
|
|
|
|
DyLineTreeListModel model = new DyLineTreeListModel();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -110,7 +112,7 @@ public class DyLevelServiceImpl implements DyLevelService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((CollectionUtil.isNotEmpty(dypList) || CollectionUtil.isNotEmpty(linepList) || CollectionUtil.isNotEmpty(towerpList) || CollectionUtil.isNotEmpty(termpList)) || CommonStatus.EFFECTIVE.value().equals(aSuper)) {
|
|
|
|
if ((CollectionUtil.isNotEmpty(dypList) || CollectionUtil.isNotEmpty(linepList) || CollectionUtil.isNotEmpty(towerpList) || CollectionUtil.isNotEmpty(termpList)) || CommonStatus.EFFECTIVE.value().equals(aSuper)) {
|
|
|
|
list = dyLevelDao.selectTreeList(CommonStatus.EFFECTIVE.value(), dypList, linepList, towerpList, termpList, aSuper);
|
|
|
|
list = dyLevelDao.selectTreeList(CommonStatus.EFFECTIVE.value(), dypList, linepList, towerpList, termpList, devtype, aSuper);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
if (empty) {
|
|
|
|
if (empty) {
|
|
|
@ -144,21 +146,22 @@ public class DyLevelServiceImpl implements DyLevelService {
|
|
|
|
towers.setIsfavor(CommonStatus.DELETE.value());
|
|
|
|
towers.setIsfavor(CommonStatus.DELETE.value());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Integer onlinestatus = towers.getOnlinestatus();
|
|
|
|
Integer onlinestatus = towers.getOnlinestatus();
|
|
|
|
|
|
|
|
|
|
|
|
if (type == null || type.intValue() == -1) {//查询全部
|
|
|
|
if (type == null || type.intValue() == -1) {//查询全部
|
|
|
|
if (CommonStatus.EFFECTIVE.value().equals(onlinestatus)) {
|
|
|
|
if (onlinestatus != null && CommonStatus.EFFECTIVE.value().equals(onlinestatus)) {
|
|
|
|
onlinenum++;
|
|
|
|
onlinenum++;
|
|
|
|
line_onlinenum++;
|
|
|
|
line_onlinenum++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tt.add(towers);
|
|
|
|
tt.add(towers);
|
|
|
|
} else if (type.intValue() == 0) {
|
|
|
|
} else if (type.intValue() == 0) {
|
|
|
|
if (CommonStatus.EFFECTIVE.value().equals(onlinestatus)) {
|
|
|
|
if (onlinestatus != null && CommonStatus.EFFECTIVE.value().equals(onlinestatus)) {
|
|
|
|
onlinenum++;
|
|
|
|
onlinenum++;
|
|
|
|
line_onlinenum++;
|
|
|
|
line_onlinenum++;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
tt.add(towers);
|
|
|
|
tt.add(towers);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (type.intValue() == 1) {
|
|
|
|
} else if (type.intValue() == 1) {
|
|
|
|
if (CommonStatus.EFFECTIVE.value().equals(onlinestatus)) {
|
|
|
|
if (onlinestatus != null && CommonStatus.EFFECTIVE.value().equals(onlinestatus)) {
|
|
|
|
onlinenum++;
|
|
|
|
onlinenum++;
|
|
|
|
line_onlinenum++;
|
|
|
|
line_onlinenum++;
|
|
|
|
tt.add(towers);
|
|
|
|
tt.add(towers);
|
|
|
|