Commit a6e9a5e032a912be1a0be219cc6ecfd354e75620

Authored by wangqian
1 parent a482db3e

出入库修改

urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java
... ... @@ -142,7 +142,7 @@ public class MaterialInventoryServiceImpl implements MaterialInventoryService {
142 142 if (outNum == null) {
143 143 throw exception0(BAD_REQUEST.getCode(),"更新库存失败:outNum为空!");
144 144 }
145   - materialInventory.setOutTotalNum(materialInventory.getInventoryTotalNum() + outNum);
  145 + materialInventory.setOutTotalNum(materialInventory.getOutTotalNum() + outNum);
146 146 materialInventory.setCurrentNum(materialInventory.getCurrentNum() - outNum);
147 147 return materialInventoryMapper.updateById(materialInventory);
148 148 }
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java
... ... @@ -119,7 +119,7 @@ public class MaterialInventoryOutServiceImpl implements MaterialInventoryOutServ
119 119  
120 120 //入库记录减扣
121 121 inventory.setCurrentNum(inventory.getCurrentNum() + materialInventoryOut.getOutInventoryNum());
122   - inventory.setInventoryTotalNum(inventory.getInventoryTotalNum() + materialInventoryOut.getOutInventoryNum());
  122 + //inventory.setInventoryTotalNum(inventory.getInventoryTotalNum() + materialInventoryOut.getOutInventoryNum());
123 123 inventory.setOutTotalNum(inventory.getOutTotalNum() - materialInventoryOut.getOutInventoryNum());
124 124 materialInventoryService.updateTdMaterialInventory(inventory);
125 125  
... ...