代码调整
This commit is contained in:
@@ -405,6 +405,10 @@ public class PqDevServiceImpl extends ServiceImpl<PqDevMapper, PqDev> implements
|
||||
@Override
|
||||
public List<PreDetection> getDevInfo(List<String> devIds) {
|
||||
List<PreDetection> preDetections = this.baseMapper.selectDevInfo(devIds);
|
||||
if(devIds.size() != preDetections.size()){
|
||||
throw new BusinessException("返回装置数量与查询装置数量不一致");
|
||||
}
|
||||
|
||||
for (PreDetection preDetection : preDetections) {
|
||||
List<PreDetection.MonitorListDTO> monitorList = preDetection.getMonitorList();
|
||||
if(CollUtil.isEmpty(monitorList)){
|
||||
|
||||
Reference in New Issue
Block a user