修改入库单据其他两个表同步修改

This commit is contained in:
2026-04-13 10:50:21 +08:00
parent a52754d76b
commit 75449e04ba

View File

@@ -226,6 +226,7 @@ public class RkRecordServiceImpl implements IRkRecordService
info.setXmNo(rkRecord.getXmNo()); info.setXmNo(rkRecord.getXmNo());
info.setXmMs(rkRecord.getXmMs()); info.setXmMs(rkRecord.getXmMs());
info.setGysNo(rkRecord.getGysNo()); info.setGysNo(rkRecord.getGysNo());
info.setSapNo(rkRecord.getSapNo());
info.setGysMc(rkRecord.getGysMc()); info.setGysMc(rkRecord.getGysMc());
info.setDw(rkRecord.getDw()); info.setDw(rkRecord.getDw());
info.setHtDj(rkRecord.getHtDj()); info.setHtDj(rkRecord.getHtDj());
@@ -516,7 +517,9 @@ public class RkRecordServiceImpl implements IRkRecordService
if (gysJh == null) { if (gysJh == null) {
throw new ServiceException("供应计划不存在ID" + gysJhId); throw new ServiceException("供应计划不存在ID" + gysJhId);
} }
int rows = gysJhMapper.syncGysJhQty(gysJh);
// 重新查(必须)
gysJh = gysJhMapper.selectGysJhById(gysJhId);
BigDecimal planQty = gysJh.getJhQty(); BigDecimal planQty = gysJh.getJhQty();
BigDecimal alreadyQty = gysJh.getRealQty() == null BigDecimal alreadyQty = gysJh.getRealQty() == null
? BigDecimal.ZERO ? BigDecimal.ZERO