| | |
| | | } |
| | | |
| | | @ApiOperation(value = "获取所有产线列表", notes = "获取所有产线列表") |
| | | @GetMapping(value = "/queryProductionLineList") |
| | | public Result<List<FactoryModel>> queryProductionLineList() { |
| | | List<Factory> factoryList = factoryService.queryProductionLineList(); |
| | | @GetMapping(value = "/queryUserProductionLineList") |
| | | public Result<List<FactoryModel>> queryUserProductionLineList() { |
| | | List<Factory> factoryList = factoryService.queryUserProductionLineList(); |
| | | List<FactoryModel> factoryModels = factoryList.stream() |
| | | .map(factory -> new FactoryModel(factory.getId(), factory.getFactoryName())) |
| | | .collect(Collectors.toList()); |