|
@@ -1008,17 +1008,18 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
deviceStatusService.updateBatchById(deviceStatuses);
|
|
|
}
|
|
|
deviceAnnualFee.run(deviceInfos);
|
|
|
+ //复制私库商品到设备
|
|
|
+ copyGoodsToDevice(mercId, deviceIds);
|
|
|
return R.ok(Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 复制私库商品到设备
|
|
|
* @param mercId
|
|
|
- * @param deviceInfos
|
|
|
+ * @param deviceIds
|
|
|
*/
|
|
|
- public void copyGoodsToDevice(Long mercId , List<DeviceInfo> deviceInfos){
|
|
|
-// GoodsDeviceDto.SelectList selectList
|
|
|
-// goodsDeviceService.list(new GoodsDeviceDto.ListDto().setMercId(mercId));
|
|
|
+ public void copyGoodsToDevice(Long mercId , List<Long> deviceIds){
|
|
|
+ R.feignCheck (goodsDeviceService.copyGoodsToDevice(new GoodsDeviceDto.CopyGoodsToDeviceDTO().setDeviceIds(deviceIds).setMercId(mercId)));
|
|
|
}
|
|
|
|
|
|
/**
|