采购订单同步问题

dev
anthonywj 2 years ago
parent b4243db10c
commit 694e560243

@ -800,11 +800,13 @@ public class SpsSyncDownloadController {
if (CollUtil.isNotEmpty(spsSyncBusOrderResponse.getPurOrderDetailEntities())) { if (CollUtil.isNotEmpty(spsSyncBusOrderResponse.getPurOrderDetailEntities())) {
List<PurOrderDetailEntity> purOrderDetailEntities = spsSyncBusOrderResponse.getPurOrderDetailEntities(); List<PurOrderDetailEntity> purOrderDetailEntities = spsSyncBusOrderResponse.getPurOrderDetailEntities();
for (PurOrderDetailEntity purOrderDetailEntity : purOrderDetailEntities) { for (PurOrderDetailEntity purOrderDetailEntity : purOrderDetailEntities) {
PurOrderDetailEntity codeTempEntity = new PurOrderDetailEntity(); if(purOrderDetailEntity.getOrderIdFk().equals(orderEntity.getId()+"")){
BeanUtils.copyProperties(purOrderDetailEntity, codeTempEntity); PurOrderDetailEntity codeTempEntity = new PurOrderDetailEntity();
codeTempEntity.setId(null); BeanUtils.copyProperties(purOrderDetailEntity, codeTempEntity);
codeTempEntity.setOrderIdFk(orderEntity.getId() + ""); codeTempEntity.setId(null);
purOrderDetailService.insert(codeTempEntity); purOrderDetailService.insert(codeTempEntity);
}
} }
} }

Loading…
Cancel
Save