修改入库单据其他两个表同步修改
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user