按标签查询摄像头接口优化
This commit is contained in:
parent
8122e35574
commit
bac2105efb
|
@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.sql.Array;
|
||||||
import java.time.Clock;
|
import java.time.Clock;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -180,9 +181,17 @@ public class Controller {
|
||||||
|
|
||||||
List<ChannelLabelDto> channelLabelDtos = cameraChannelMapper.selectLabel(labelCode);
|
List<ChannelLabelDto> channelLabelDtos = cameraChannelMapper.selectLabel(labelCode);
|
||||||
|
|
||||||
Result success = Result.success(channelLabelDtos);
|
for (ChannelLabelDto channelLabelDto :channelLabelDtos) {
|
||||||
|
String nodeName = channelLabelDto.getNodeName();
|
||||||
|
String[] splits = nodeName.split("->");
|
||||||
|
String split = splits[1];
|
||||||
|
channelLabelDto.setNodeName(split);
|
||||||
|
|
||||||
return success;
|
Result success = Result.success(channelLabelDto);
|
||||||
|
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
return Result.error("");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue