Commit b8f630d3 by yinyong

修复同步wms数据

parent 3528d28b
...@@ -101,9 +101,9 @@ public class SyncCostFirstJob extends PointJob { ...@@ -101,9 +101,9 @@ public class SyncCostFirstJob extends PointJob {
throw new RuntimeException("BeanUtils.copyProperties失败, ChannelId是" + costFirstData.getChannelId()); throw new RuntimeException("BeanUtils.copyProperties失败, ChannelId是" + costFirstData.getChannelId());
} }
if(StringUtils.isNotBlank(dcBaseCostFirst.getBailunSku())) { if(StringUtils.isNotBlank(dcBaseCostFirst.getBailunSku())) {
int i = baseCostFirstMapper.updateByExampleSelective(dcBaseCostFirst, DcBaseCostFirstExample.newAndCreateCriteria().andBailunSkuEqualTo(dcBaseCostFirst.getBailunSku()).andChannelIdEqualTo(dcBaseCostFirst.getChannelId()).example()); int i = baseCostFirstMapper.updateByExampleSelective(dcBaseCostFirst, DcBaseCostFirstExample.newAndCreateCriteria().andBailunSkuEqualTo(dcBaseCostFirst.getBailunSku()).andChannelOrderIdEqualTo(dcBaseCostFirst.getChannelOrderId()).andBoxIdEqualTo(dcBaseCostFirst.getBoxId()).andTransferOrderIdEqualTo(dcBaseCostFirst.getTransferOrderId()).andWarehouseCodeEqualTo(dcBaseCostFirst.getWarehouseCode()).example());
if (i == 0) { if (i == 0) {
baseCostFirstMapper.insertSelective(dcBaseCostFirst); baseCostFirstMapper.upsertSelective(dcBaseCostFirst);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment