|
|
|
@ -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());
|
|
|
|
|