微调
This commit is contained in:
@@ -151,7 +151,7 @@ public class EquipmentDeliveryController extends BaseController {
|
|||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "deviceId", value = "装置id", required = true),
|
@ApiImplicitParam(name = "deviceId", value = "装置id", required = true),
|
||||||
@ApiImplicitParam(name = "type", value = "类型", required = true),
|
@ApiImplicitParam(name = "type", value = "类型", required = true),
|
||||||
@ApiImplicitParam(name = "lineId", value = "监测点id", required = true)
|
@ApiImplicitParam(name = "lineId", value = "监测点id", required = false)
|
||||||
})
|
})
|
||||||
public HttpResult<DeviceManagerVO> getDeviceData(@RequestParam String deviceId,@RequestParam String type,@RequestParam String lineId){
|
public HttpResult<DeviceManagerVO> getDeviceData(@RequestParam String deviceId,@RequestParam String type,@RequestParam String lineId){
|
||||||
String methodDescribe = getMethodDescribe("getDeviceData");
|
String methodDescribe = getMethodDescribe("getDeviceData");
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ public class CsDataArrayServiceImpl extends ServiceImpl<CsDataArrayMapper, CsDat
|
|||||||
if (Objects.isNull(item.getStatMethod())){
|
if (Objects.isNull(item.getStatMethod())){
|
||||||
DataArrayTreeVO vo4 = new DataArrayTreeVO();
|
DataArrayTreeVO vo4 = new DataArrayTreeVO();
|
||||||
vo4.setId(item.getDataSetId() + item.getDataArrayName()+item2+"M");
|
vo4.setId(item.getDataSetId() + item.getDataArrayName()+item2+"M");
|
||||||
vo4.setName("无数据类型");
|
vo4.setName("M");
|
||||||
vo4.setShowName("无数据类型");
|
vo4.setShowName("无数据类型");
|
||||||
list4.add(vo4);
|
list4.add(vo4);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -72,6 +72,10 @@ public class LineTargetServiceImpl implements ILineTargetService {
|
|||||||
List<String> setList = new ArrayList<>();
|
List<String> setList = new ArrayList<>();
|
||||||
String devId = csLedgerFeignClient.findDevByLineId(lineId).getData();
|
String devId = csLedgerFeignClient.findDevByLineId(lineId).getData();
|
||||||
//1.获取监测点的安装位置
|
//1.获取监测点的安装位置
|
||||||
|
List<CsLinePO> lineList = csLineFeignClient.queryLineById(Collections.singletonList(lineId)).getData();
|
||||||
|
if (CollectionUtils.isEmpty(lineList)){
|
||||||
|
return new ArrayList<DataArrayTreeVO>();
|
||||||
|
}
|
||||||
CsLinePO line = csLineFeignClient.queryLineById(Collections.singletonList(lineId)).getData().get(0);
|
CsLinePO line = csLineFeignClient.queryLineById(Collections.singletonList(lineId)).getData().get(0);
|
||||||
String code = dicDataFeignClient.getDicDataById(line.getPosition()).getData().getCode();
|
String code = dicDataFeignClient.getDicDataById(line.getPosition()).getData().getCode();
|
||||||
String modelId = null;
|
String modelId = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user