| | |
| | | List<DepotConf> data = getCacheDepotConf(companyId); |
| | | if (null == data) return null; |
| | | |
| | | return data.stream().filter(item -> item.getGrainSer().equals(serId)) |
| | | return data.stream().filter(item -> (serId.equals(item.getGrainSer()) || serId.equals(item.getGasSer()) || serId.equals(item.getEsSer()) )) |
| | | .findAny().orElse(null); |
| | | } |
| | | |
| | |
| | | List<DepotSerData> listAll = (List<DepotSerData>) redisUtil.get(key); |
| | | if (null == listAll || listAll.isEmpty()) { |
| | | log.error("没有获取到仓库与分机的关系数据,请联系管理员!"); |
| | | return null; |
| | | } |
| | | |
| | | Map<String, DepotSerData> tempMap = new HashMap<>(); |
| | |
| | | param.setCompanyId(store.getCompanyId()); |
| | | param.setDepotId(store.getDepotId()); |
| | | param.setWeight(store.getStorageReal()); |
| | | param.setDepotStatus(store.getDepotStatus()); |
| | | |
| | | commonMapper.updateDepotStorage(param); |
| | | } |