|
|
@@ -337,8 +337,8 @@ public class InboundPurchaseService extends BaseService<Inbound> {
|
|
|
//赋值(这里重写了更新方法,数量在更新方法中有数据库院士数量+本次数量)
|
|
|
PurchaseItem purchaseItem = new PurchaseItem();
|
|
|
purchaseItem.setItemId(inboundItemVO.getFromItemId());
|
|
|
- purchaseItem.setIntoingQty(inboundItemVO.getIntoingQty());
|
|
|
- purchaseItem.setIntoingAmt(inboundItemVO.getIntoingAmt());
|
|
|
+ purchaseItem.setIntoingQty(inboundItemVO.getIntoQty().negate());
|
|
|
+ purchaseItem.setIntoingAmt(inboundItemVO.getIntoAmt().negate());
|
|
|
purchaseItem.setIntoQty(inboundItemVO.getIntoQty());
|
|
|
purchaseItem.setIntoAmt(inboundItemVO.getIntoAmt());
|
|
|
//根据id查询
|