|
@@ -320,7 +320,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
//绑定关系
|
|
//绑定关系
|
|
deviceInfo.setMercId(mercId).setMercCode(mercCode).setAlgorithmId(algorithmId).setMercName(mercName);
|
|
deviceInfo.setMercId(mercId).setMercCode(mercCode).setAlgorithmId(algorithmId).setMercName(mercName);
|
|
}
|
|
}
|
|
- updateBatchById(deviceInfos);
|
|
|
|
|
|
+ saveOrUpdateBatch(deviceInfos);
|
|
//原来存在的设备关系,不在最终设备列表中的移除
|
|
//原来存在的设备关系,不在最终设备列表中的移除
|
|
if (CollUtil.isNotEmpty(devices)) {
|
|
if (CollUtil.isNotEmpty(devices)) {
|
|
List<Long> oldIds = new ArrayList<>();
|
|
List<Long> oldIds = new ArrayList<>();
|