|
|
|
@ -210,8 +210,24 @@ public class IoSplitFifoCodeService extends ServiceImpl<IoSplitFifoCodeMapper, I
|
|
|
|
|
IoSplitFifoInvRequest ioSplitFifoInvRequest = new IoSplitFifoInvRequest();
|
|
|
|
|
ioSplitFifoInvRequest.setWorkPlaceCode(workPlaceCode);
|
|
|
|
|
List<IoSplitInvResponse> ioSplitInvResponses = splitFifoInvService.filterList(ioSplitFifoInvRequest);
|
|
|
|
|
if (CollUtil.isEmpty(ioSplitInvResponses)) return false;
|
|
|
|
|
Map<Long, List<IoSplitInvResponse>> splitInvMap = ioSplitInvResponses.stream().collect(Collectors.groupingBy(IoSplitInvResponse::getRelId));
|
|
|
|
|
if (CollUtil.isEmpty(ioSplitInvResponses)){
|
|
|
|
|
collectOrderMapper.updateInvAlert(order.getId(), 2);
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(bizList)) {
|
|
|
|
|
for (int i = 0; i < bizList.size(); i++) {
|
|
|
|
|
CollectOrderBizResponse collectOrderBizResponse = bizList.get(i);
|
|
|
|
|
Integer count = 0;
|
|
|
|
|
if (IntUtil.value(collectOrderBizResponse.getAutoResCount()) < 0) {
|
|
|
|
|
count = 0 - IntUtil.value(collectOrderBizResponse.getAutoResCount());
|
|
|
|
|
} else {
|
|
|
|
|
count = collectOrderBizResponse.getCount();
|
|
|
|
|
}
|
|
|
|
|
collectOrderBizMapper.updateAutoResCount(collectOrderBizResponse.getId(), -count);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
Map<Long, List<IoSplitInvResponse>> splitInvMap = ioSplitInvResponses.stream().filter(item -> item.getRelId() != null).collect(Collectors.groupingBy(IoSplitInvResponse::getRelId));
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(bizList)) {
|
|
|
|
|
if (lockType == 1) {
|
|
|
|
|