| | |
| | | resourceStoreDto.setShType(""); |
| | | resourceStoreDto.setShObjIds(new String[]{reqJson.getString("communityId"), reqJson.getString("storeId")}); |
| | | } else if (StorehouseDto.SH_TYPE_COMMUNITY.equals(resourceStoreDto.getShType()) || privileges.size() == 0) { |
| | | resourceStoreDto.setShType(StorehouseDto.SH_TYPE_COMMUNITY); |
| | | //add by wuxw 这里 修改为 小区仓库也能采购 模式 所以这里不限制 |
| | | //resourceStoreDto.setShType(StorehouseDto.SH_TYPE_COMMUNITY); |
| | | resourceStoreDto.setShObjId(reqJson.getString("communityId")); |
| | | } |
| | | BasePrivilegeDto basePrivilegeDto1 = new BasePrivilegeDto(); |
| | | basePrivilegeDto1.setResource("/viewHiddenWarehouse"); |
| | | basePrivilegeDto1.setUserId(userId); |
| | | List<Map> viewHiddenWarehousePrivileges = menuInnerServiceSMOImpl.checkUserHasResource(basePrivilegeDto1); |
| | | if (viewHiddenWarehousePrivileges.size() == 0) { |
| | | resourceStoreDto.setIsShow("true"); |
| | | } |
| | | int count = resourceStoreInnerServiceSMOImpl.queryResourceStoresCount(resourceStoreDto); |
| | | List<ApiResourceStoreDataVo> resourceStores = new ArrayList<>(); |
| | |
| | | if (count > 0) { |
| | | resourceStores = BeanConvertUtil.covertBeanList(resourceStoreInnerServiceSMOImpl.queryResourceStores(resourceStoreDto), ApiResourceStoreDataVo.class); |
| | | //查询总价 |
| | | resourceStoreDto.setPage(Integer.valueOf(reqJson.getString("page"))); |
| | | subTotalPrice = new BigDecimal(resourceStoreInnerServiceSMOImpl.queryResourceStoresTotalPrice(resourceStoreDto)); |
| | | resourceStoreDto.setPage(PageDto.DEFAULT_PAGE); |
| | | totalPrice = new BigDecimal(resourceStoreInnerServiceSMOImpl.queryResourceStoresTotalPrice(resourceStoreDto)); |