修改批量出入库

This commit is contained in:
韩鹏辉 2024-07-08 14:15:59 +08:00
parent c94c6e8611
commit 6629f09f98
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
flow.setShopId(info.getShopId()); flow.setShopId(info.getShopId());
flow.setConName(info.getConName()); flow.setConName(info.getConName());
flow.setAmount(conInfos.getStockNumber()); flow.setAmount(conInfos.getStockNumber());
flow.setBalance(info.getStockNumber()); flow.setBalance(info.getStockNumber().subtract(info.getStockConsume()));
flow.setCreateTime(new Timestamp(System.currentTimeMillis())); flow.setCreateTime(new Timestamp(System.currentTimeMillis()));
tbConsInfoFlowRepository.save(flow); tbConsInfoFlowRepository.save(flow);