UDI管理系统与UDIMS同步过来数据不进行删除

dev
anthonywj 2 years ago
parent 82d08be38d
commit 5bac5e9dee

@ -303,6 +303,12 @@ public class IoCheckInoutService {
orderService.update(orderEntity);
return;
}
if (orderEntity.getFromType() != ConstantStatus.FROM_COPY
&& orderEntity.getFromType() != ConstantStatus.FROM_CHANGE && orderEntity.getFromType() != ConstantStatus.FROM_UDIMS) {
orderDetailBizService.deleteByOrderId(orderEntity.getBillNo());
}
if (orderEntity.getFromType() != ConstantStatus.FROM_UDISP && orderEntity.getFromType() != ConstantStatus.FROM_UDIMS) {
if (orderEntity.getFromType() != ConstantStatus.FROM_COPY
&& orderEntity.getFromType() != ConstantStatus.FROM_CHANGE) {
orderDetailBizService.deleteByOrderId(orderEntity.getBillNo());
@ -318,7 +324,6 @@ public class IoCheckInoutService {
orderDetailBizEntity.setId(null);
orderDetailBizService.insert(orderDetailBizEntity);
});
}
orderDetailCodeEntities.forEach(orderDetailCodeEntity ->
{
@ -331,6 +336,8 @@ public class IoCheckInoutService {
orderDetailResultService.insert(orderDetailResultEntity);
});
}
//临时表转正式表
List<IoCodeTempEntity> codeTempEntities = codeTempService.findByOrderId(orderEntity.getBillNo());

Loading…
Cancel
Save