Commit 11cc1364fb7ce8d5f9d09a4868c65cb6cff8971e
1 parent
12ee5aa5
入库出库删除修改
Showing
2 changed files
with
2 additions
and
2 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryin/MaterialInventoryInServiceImpl.java
| ... | ... | @@ -144,7 +144,7 @@ public class MaterialInventoryInServiceImpl implements MaterialInventoryInServic |
| 144 | 144 | if (null == materialInventoryIn) { |
| 145 | 145 | throw exception(MATERIAL_INVENTORY_IN_NOT_EXISTS); |
| 146 | 146 | } |
| 147 | - MaterialInventoryDO inventory = materialInventoryService.selectMaterialInventoryByMaterialId(materialInventoryIn.getMaterialId(),getCompanyId()); | |
| 147 | + MaterialInventoryDO inventory = materialInventoryService.selectMaterialInventoryByMaterialId(materialInventoryIn.getMaterialId(),materialInventoryIn.getBelongCompanyId()); | |
| 148 | 148 | if(null == inventory){ |
| 149 | 149 | throw exception0(BAD_REQUEST.getCode(),"参数错误"); |
| 150 | 150 | } | ... | ... |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java
| ... | ... | @@ -108,7 +108,7 @@ public class MaterialInventoryOutServiceImpl implements MaterialInventoryOutServ |
| 108 | 108 | throw exception(MATERIAL_INVENTORY_OUT_NOT_EXISTS); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - MaterialInventoryDO inventory = materialInventoryService.selectMaterialInventoryByMaterialId(materialInventoryOut.getMaterialId(),getCompanyId()); | |
| 111 | + MaterialInventoryDO inventory = materialInventoryService.selectMaterialInventoryByMaterialId(materialInventoryOut.getMaterialId(),materialInventoryOut.getBelongCompanyId()); | |
| 112 | 112 | if(null == inventory){ |
| 113 | 113 | throw exception0(BAD_REQUEST.getCode(),"参数错误"); |
| 114 | 114 | } | ... | ... |