| | |
| | | } |
| | | |
| | | /** |
| | | * 获取缓存站点信息 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R getCacheSites(String type) { |
| | | BasAreas areas = basAreasService.selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", type)); |
| | | if (Objects.isNull(areas)) { |
| | | return R.error("库区不存在!"); |
| | | } |
| | | List<BasStation> stations = basStationService.selectList(new EntityWrapper<BasStation>().eq("area_id", areas.getId())); |
| | | if (Objects.isNull(stations) || stations.isEmpty()) { |
| | | return R.error("站点不存在!"); |
| | | } |
| | | return R.ok("查询成功").add(stations); |
| | | } |
| | | |
| | | /** |
| | | * 生成移库任务 |
| | | * |
| | | * @param result |