修改同步出库数据为有就更新没有新增

main
daiweihong 1 year ago
parent b6e5ce793b
commit c9ac9dbab4
  1. 2
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java

@ -179,7 +179,7 @@ public class BaseBarcodesOutServiceImpl extends ServiceImpl<BaseBarcodesOutMappe
}
}
if (barcodesOutList.size() > 0) {
if (this.saveBatch(barcodesOutList)) {
if (this.saveOrUpdateBatch(barcodesOutList)) {
for (BaseBarcodesOut baseBarcodesOut : barcodesOutList) {
redisTemplate.opsForValue().set(RedisConstant.redisVin + baseBarcodesOut.getVin(), baseBarcodesOut);
}

Loading…
Cancel
Save