Commit e78d5f76 by yinyong

处理调拨单数据sku为null问题

parent eec6eb31
......@@ -100,6 +100,7 @@ public class SyncCostFirstJob extends PointJob {
} catch (Exception e) {
throw new RuntimeException("BeanUtils.copyProperties失败, ChannelId是" + costFirstData.getChannelId());
}
if(StringUtils.isNotBlank(dcBaseCostFirst.getBailunSku())) {
int i = baseCostFirstMapper.updateByExampleSelective(dcBaseCostFirst, DcBaseCostFirstExample.newAndCreateCriteria().andBailunSkuEqualTo(dcBaseCostFirst.getBailunSku()).andChannelIdEqualTo(dcBaseCostFirst.getChannelId()).example());
if (i == 0) {
baseCostFirstMapper.insertSelective(dcBaseCostFirst);
......@@ -107,6 +108,7 @@ public class SyncCostFirstJob extends PointJob {
}
}
}
}
} catch (RuntimeException e) {
throw new RuntimeException("MYBATIS操作DB更新插入数据失败",e);
} finally {
......
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