|
|
@ -1,7 +1,6 @@
|
|
|
|
package com.shxy.xymanager_service.impl;
|
|
|
|
package com.shxy.xymanager_service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.core.bean.copier.CopyOptions;
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceBody;
|
|
|
|
import com.shxy.xymanager_common.bean.ServiceBody;
|
|
|
@ -13,7 +12,6 @@ import com.shxy.xymanager_common.model.DyLineTreeListModel;
|
|
|
|
import com.shxy.xymanager_common.model.DyListModel;
|
|
|
|
import com.shxy.xymanager_common.model.DyListModel;
|
|
|
|
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.MyDateUtils;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
|
|
|
|
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
|
|
|
|
import com.shxy.xymanager_common.vo.LastTowerVo;
|
|
|
|
import com.shxy.xymanager_common.vo.LastTowerVo;
|
|
|
|
import com.shxy.xymanager_dao.dao.DyLevelDao;
|
|
|
|
import com.shxy.xymanager_dao.dao.DyLevelDao;
|
|
|
@ -27,7 +25,6 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.math.BigInteger;
|
|
|
|
import java.math.BigInteger;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
@ -56,9 +53,9 @@ public class DyLevelServiceImpl implements DyLevelService {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ServiceBody<DyLineTreeListModel> getdyTreeList(Integer type) {
|
|
|
|
public ServiceBody<DyLineTreeListModel> getdyTreeList(Integer type, Integer lineid) {
|
|
|
|
DyLineTreeListModel model = new DyLineTreeListModel();
|
|
|
|
DyLineTreeListModel model = new DyLineTreeListModel();
|
|
|
|
List<DyLineAndTerminalWithHeartDto> list = dyLevelDao.selectTreeList(CommonStatus.EFFECTIVE.value());
|
|
|
|
List<DyLineAndTerminalWithHeartDto> list = dyLevelDao.selectTreeList(CommonStatus.EFFECTIVE.value(),lineid);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
boolean empty = CollectionUtil.isEmpty(list);
|
|
|
|
if (empty) {
|
|
|
|
if (empty) {
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
|
model.setList(new ArrayList<>());
|
|
|
@ -89,7 +86,7 @@ public class DyLevelServiceImpl implements DyLevelService {
|
|
|
|
lineBean.setBsManufacturer(lineDto.getBsManufacturer());
|
|
|
|
lineBean.setBsManufacturer(lineDto.getBsManufacturer());
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<DyLineTreeListModel.TerminalBean> beanlist = new ArrayList<>();
|
|
|
|
ArrayList<DyLineTreeListModel.TerminalBean> beanlist = new ArrayList<>();
|
|
|
|
for (int k = 0; k < termlist.size(); k++){
|
|
|
|
for (int k = 0; k < termlist.size(); k++) {
|
|
|
|
totalnum++;
|
|
|
|
totalnum++;
|
|
|
|
TerminalsWithHeart terminalsWithHeart = termlist.get(k);
|
|
|
|
TerminalsWithHeart terminalsWithHeart = termlist.get(k);
|
|
|
|
|
|
|
|
|
|
|
|