|
|
|
@ -100,6 +100,8 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
@Resource
|
|
|
|
|
IoOrderDetailResultService ioOrderDetailResultService;
|
|
|
|
|
@Resource
|
|
|
|
|
IoOrderDetailBizService orderDetailBizService;
|
|
|
|
|
@Resource
|
|
|
|
|
private SyncUploadDataBustypeService syncUploadDataBustypeService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ThrSystemBusApiDao thrSystemBusApiDao;
|
|
|
|
@ -326,18 +328,24 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
ioCodeEntity.setReCount(ioCodeEntity.getMyReCount() - reCount);
|
|
|
|
|
codeService.updateById(ioCodeEntity); //更新码详情
|
|
|
|
|
|
|
|
|
|
//更新业务详情
|
|
|
|
|
IoOrderDetailBizEntity orderDetailBizEntity = orderDetailBizService.findByUnique(ioCodeEntity.getOrderId(), ioCodeEntity.getRelId(), ioCodeEntity.getBatchNo(), null, null);
|
|
|
|
|
if (orderDetailBizEntity != null) {
|
|
|
|
|
orderDetailBizEntity.setCount(IntUtil.value(orderDetailBizEntity.getCount()) - reCount);
|
|
|
|
|
orderDetailBizService.update(orderDetailBizEntity);
|
|
|
|
|
}
|
|
|
|
|
//更新扫码单据详情
|
|
|
|
|
IoOrderDetailCodeEntity ioOrderDetailCodeEntity = ioOrderDetailCodeService.findByUnique(ioCodeEntity.getOrderId(), ioCodeEntity.getRelId(), ioCodeEntity.getBatchNo());
|
|
|
|
|
|
|
|
|
|
if (ioOrderDetailCodeEntity != null) {
|
|
|
|
|
ioOrderDetailCodeEntity.setReCount(ioOrderDetailCodeEntity.getReCount() - reCount);
|
|
|
|
|
ioOrderDetailCodeEntity.setReCount(IntUtil.value(ioOrderDetailCodeEntity.getReCount()) - reCount);
|
|
|
|
|
ioOrderDetailCodeEntity.setCount(IntUtil.value(ioOrderDetailCodeEntity.getCount()) - reCount);
|
|
|
|
|
ioOrderDetailCodeService.update(ioOrderDetailCodeEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//更新结果详情
|
|
|
|
|
IoOrderDetailResultEntity ioOrderDetailResultEntity = ioOrderDetailResultService.findByUnique(ioCodeEntity.getOrderId(), ioCodeEntity.getRelId(), ioCodeEntity.getBatchNo());
|
|
|
|
|
if (ioOrderDetailResultEntity != null) {
|
|
|
|
|
ioOrderDetailResultEntity.setReCount(ioOrderDetailResultEntity.getReCount() - reCount);
|
|
|
|
|
ioOrderDetailResultEntity.setCount(ioOrderDetailResultEntity.getCount() - reCount);
|
|
|
|
|
ioOrderDetailResultService.update(ioOrderDetailResultEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|