|
@@ -237,6 +237,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
public R<Boolean> mercDeviceAuth(DeviceInfoDto.MercDeviceAuthDto auth) {
|
|
|
Long mercId = auth.getMercId();
|
|
|
String mercCode = auth.getMercCode();
|
|
|
+ Long algorithmId = auth.getAlgorithmId();
|
|
|
//商户最终设备列表
|
|
|
List<Long> deviceIds = auth.getDeviceIds();
|
|
|
List<DeviceInfo> devices = getDevicesByMercId(mercId);
|
|
@@ -251,7 +252,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
List<DeviceInfo> deviceInfos = this.listByIds(deviceIds);
|
|
|
deviceInfos.forEach(deviceInfo -> {
|
|
|
//绑定关系
|
|
|
- deviceInfo.setMercId(mercId).setMercCode(mercCode);
|
|
|
+ deviceInfo.setMercId(mercId).setMercCode(mercCode).setAlgorithmId(algorithmId);
|
|
|
});
|
|
|
updateBatchById(deviceInfos);
|
|
|
//原来存在的设备关系,不在最终设备列表中的移除
|