Authored by caoyan

UFO建议价

@@ -223,10 +223,12 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService, @@ -223,10 +223,12 @@ public class ChannelSkuCompareServiceImpl implements IChannelSkuCompareService,
223 } 223 }
224 224
225 //更新异常数据状态 225 //更新异常数据状态
226 - channelSkuCompareMapper.updateStatusByIds(abnormalIdList, CHANNEL_SKU_COMPARE_ABNORMAL, 0);//uid=0表示系统操作 226 + if(CollectionUtils.isNotEmpty(abnormalIdList)) {
  227 + channelSkuCompareMapper.updateStatusByIds(abnormalIdList, CHANNEL_SKU_COMPARE_ABNORMAL, 0);//uid=0表示系统操作
  228 + }
227 229
228 //更新正常数据的建议价到storage表 230 //更新正常数据的建议价到storage表
229 - if(CollectionUtils.isEmpty(storageList)){ 231 + if(CollectionUtils.isNotEmpty(storageList)){
230 storageMapper.updateBatchSuggestPrice(storageList); 232 storageMapper.updateBatchSuggestPrice(storageList);
231 } 233 }
232 234