一些BUG的修改
This commit is contained in:
parent
c4da06e591
commit
f61004114d
@ -242,7 +242,8 @@ public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepai
|
|||||||
sois.stream().filter(i -> i.getGoodsId().equals(item.getWaresId())).findFirst().ifPresent(repairSoiByTwItem -> {
|
sois.stream().filter(i -> i.getGoodsId().equals(item.getWaresId())).findFirst().ifPresent(repairSoiByTwItem -> {
|
||||||
if (so.getSoType().equals("02")){
|
if (so.getSoType().equals("02")){
|
||||||
dlTwItem.setWaresAlreadyCount(item.getWaresAlreadyCount() - repairSoiByTwItem.getGoodsCount());
|
dlTwItem.setWaresAlreadyCount(item.getWaresAlreadyCount() - repairSoiByTwItem.getGoodsCount());
|
||||||
dlTwItem.setWaresStatus("02");
|
// 不操作配件申请表子表的状态
|
||||||
|
// dlTwItem.setWaresStatus("02");
|
||||||
}else {
|
}else {
|
||||||
dlTwItem.setWaresAlreadyCount(item.getWaresAlreadyCount() + repairSoiByTwItem.getGoodsCount());
|
dlTwItem.setWaresAlreadyCount(item.getWaresAlreadyCount() + repairSoiByTwItem.getGoodsCount());
|
||||||
}
|
}
|
||||||
@ -325,13 +326,13 @@ public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepai
|
|||||||
// 查最新的子表信息
|
// 查最新的子表信息
|
||||||
DlRepairSo so = baseMapper.selectById(id);
|
DlRepairSo so = baseMapper.selectById(id);
|
||||||
List<DlTwItem> list = twItemService.list(new LambdaQueryWrapper<DlTwItem>().eq(DlTwItem::getTwId, so.getTwId()));
|
List<DlTwItem> list = twItemService.list(new LambdaQueryWrapper<DlTwItem>().eq(DlTwItem::getTwId, so.getTwId()));
|
||||||
// 判断是部分完成还是全部完成
|
// 判断是部分完成还是全部完成----不需要判断了
|
||||||
DlTicketWares dlTicketWares = new DlTicketWares();
|
// DlTicketWares dlTicketWares = new DlTicketWares();
|
||||||
dlTicketWares.setId(so.getTwId());
|
// dlTicketWares.setId(so.getTwId());
|
||||||
List<DlTwItem> flag = list.stream().filter(item -> !item.getWaresStatus().equals("01")).collect(Collectors.toList());
|
// List<DlTwItem> flag = list.stream().filter(item -> !item.getWaresStatus().equals("01")).collect(Collectors.toList());
|
||||||
dlTicketWares.setStatus(CollectionUtil.isEmpty(flag) ? "03" : "04");
|
// dlTicketWares.setStatus(CollectionUtil.isEmpty(flag) ? "03" : "04");
|
||||||
// 更新主表的状态
|
// 更新主表的状态
|
||||||
ticketWaresService.updateById(dlTicketWares);
|
// ticketWaresService.updateById(dlTicketWares);
|
||||||
|
|
||||||
// 通知仓库
|
// 通知仓库
|
||||||
repairWorkerService.sentMessage(Long.valueOf(so.getCreator()), so.getUserName() + "已确认领料单:" + so.getSoNo());
|
repairWorkerService.sentMessage(Long.valueOf(so.getCreator()), so.getUserName() + "已确认领料单:" + so.getSoNo());
|
||||||
@ -447,8 +448,8 @@ public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepai
|
|||||||
//入库数量
|
//入库数量
|
||||||
inWares.setInCount(filterSoi.getInCount());
|
inWares.setInCount(filterSoi.getInCount());
|
||||||
inWares.setId(null);
|
inWares.setId(null);
|
||||||
//采购品中入库数量字段累加
|
//采购品中入库数量字段累加---这里item.getInCount 是null的时候,应该是filterSoi的inCount而不是0
|
||||||
item.setInCount(item.getInCount() == null ? 0 : item.getInCount() + filterSoi.getInCount());
|
item.setInCount(item.getInCount() == null ? filterSoi.getInCount() : item.getInCount() + filterSoi.getInCount());
|
||||||
inWaresList.add(inWares);
|
inWaresList.add(inWares);
|
||||||
});
|
});
|
||||||
//更新采购品
|
//更新采购品
|
||||||
|
Loading…
Reference in New Issue
Block a user