|
|
@@ -331,7 +331,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
targetPid.setPd_outqty(sourcePid.getPd_inqty()-sourcePid.getPd_yqty());
|
|
|
prodIODetailMapper.insertSelective(targetPid);
|
|
|
//更新已转数
|
|
|
- sourcePid.setPd_yqty(sourcePid.getPd_inqty());
|
|
|
+ // sourcePid.setPd_yqty(sourcePid.getPd_inqty());
|
|
|
prodIODetailMapper.updateByPrimaryKeySelective(sourcePid);
|
|
|
}
|
|
|
}
|
|
|
@@ -344,7 +344,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
}
|
|
|
Integer count = "0".equals(String.valueOf(id)) ? purchaseMapper.validateCodeWhenInsert(code) :
|
|
|
purchaseMapper.validateCodeWhenUpdate(code, id);
|
|
|
- return maxnumberService.pushMaxnubmer(count, code, "Purchase");
|
|
|
+ return maxnumberService.pushMaxnubmer(count, code, "Purchase").getData();
|
|
|
}
|
|
|
|
|
|
|