Commit 4d420786 authored by jichao's avatar jichao

更改bug

parent 56a572f3
...@@ -17,7 +17,7 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -17,7 +17,7 @@ import org.springframework.web.multipart.MultipartFile;
* Created by on 2018-6-5 9:01:15. * Created by on 2018-6-5 9:01:15.
*/ */
@RestController @RestController
@RequestMapping("manage/topologynode") @RequestMapping("manage/topologiesnode")
public class TopologyNodeController extends PaginationController<TopologyNode> { public class TopologyNodeController extends PaginationController<TopologyNode> {
@Autowired @Autowired
......
...@@ -2,8 +2,7 @@ package org.rcisoft.business.manage.service.impl; ...@@ -2,8 +2,7 @@ package org.rcisoft.business.manage.service.impl;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.beust.jcommander.internal.Lists;
import com.beust.jcommander.internal.Maps;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFRow;
...@@ -446,7 +445,7 @@ public class BusProjectServiceImpl implements BusProjectService { ...@@ -446,7 +445,7 @@ public class BusProjectServiceImpl implements BusProjectService {
* @return * @return
*/ */
private Map<String, String> getNm(Integer type, String proId) { private Map<String, String> getNm(Integer type, String proId) {
Map<String, String> resultMap = Maps.newHashMap(); Map<String, String> resultMap = new HashMap<>();
List<Map<String, Object>> list = null; List<Map<String, Object>> list = null;
if (type == 1) { if (type == 1) {
list = busDeviceMeterRepository.queryNm(proId); list = busDeviceMeterRepository.queryNm(proId);
......
...@@ -157,13 +157,13 @@ public class SystemServiceImpl implements SystemService { ...@@ -157,13 +157,13 @@ public class SystemServiceImpl implements SystemService {
// 电量的键 // 电量的键
String devParam = ""; String devParam = "";
// proId // proId
String proId = ""; String proId = devNum.split("_")[0];
// 根据devNum查询 // 根据devNum查询
Map<String, String> deviceMap = deviceParamRepository.selectPower(devNum); Map<String, String> deviceMap = deviceParamRepository.selectPower(devNum);
if (deviceMap != null) { if (deviceMap != null) {
devCode = deviceMap.get("devCode"); devCode = deviceMap.get("devCode");
devParam = deviceMap.get("devParam"); devParam = deviceMap.get("devParam");
proId = deviceMap.get("proId"); // proId = deviceMap.get("proId");
} }
List<BusFixedParam> fixedList = busFixedParamServiceImpl.queryBusFixedParamList(devNum, proId); List<BusFixedParam> fixedList = busFixedParamServiceImpl.queryBusFixedParamList(devNum, proId);
List<DeviceParam> list = deviceParamRepository.selectDeviceParamList(devNum, proId); List<DeviceParam> list = deviceParamRepository.selectDeviceParamList(devNum, proId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment