| | |
| | | param.setDeptId(authUser.getDeptId()); |
| | | } |
| | | //获取所有筒仓及浅圆仓 |
| | | List<Depot> depotList = depotService.getCacheDepotList(param.getDeptId()); |
| | | List<Depot> depotList = depotService.getCacheDepotList(ContextUtil.getCompanyId(), param.getDeptId()); |
| | | if (null == depotList || depotList.isEmpty()) { |
| | | return PhoneRespUtil.error(RespCodeEnum.CODE_1111, "未查到信息!!"); |
| | | } |
| | |
| | | quantity.setDepotId(depot.getId()); |
| | | } else { |
| | | BeanUtils.copyProperties(quantityList.get(0),quantity); |
| | | } |
| | | |
| | | dept = deptService.getCacheDept(depot.getCompanyId(),depot.getDeptId()); |
| | | quantity.setDepotData(depot); |
| | | quantity.setDeptName(dept.getDeptName()); |
| | | list.add(quantity); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | return PhoneRespUtil.success(list, req); |