代码调整

This commit is contained in:
2025-01-07 20:18:44 +08:00
parent bf11f4c820
commit a5227c372f
14 changed files with 295 additions and 245 deletions

View File

@@ -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)){