|
|
|
@ -337,10 +337,13 @@ public class PageController { |
|
|
|
// 查询当前用户管理的仓库
|
|
|
|
List<Long> depositoryIdList = roleService.findDepositoryIdForUserHas(userToken); |
|
|
|
mv.addObject("depositoryCount", depositoryIdList.size()); |
|
|
|
Integer inventoryCountByDepository = materialService.findInventoryCountByDepository(depositoryIdList); |
|
|
|
if (inventoryCountByDepository == null) { |
|
|
|
inventoryCountByDepository = 0; |
|
|
|
Integer inventoryCountByDepository = 0; |
|
|
|
if(depositoryIdList.size()!=0){ |
|
|
|
inventoryCountByDepository = materialService.findInventoryCountByDepository(depositoryIdList); |
|
|
|
} |
|
|
|
/*if (inventoryCountByDepository == null) { |
|
|
|
inventoryCountByDepository = 0; |
|
|
|
}*/ |
|
|
|
mv.addObject("allPrice", (int) (inventoryCountByDepository / 100)); |
|
|
|
mv.addObject("allMaterial", materialService.findMaterialCount(new HashMap<>())); |
|
|
|
|
|
|
|
|