| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.compress.utils.Lists; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | |
| | | return Result.ok(resultList); |
| | | } |
| | | |
| | | /** |
| | | * 根据申请车间查询 |
| | | * @param productionId 车间id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "设备表-异步加载设备列表", notes = "设备表-异步加载设备列表") |
| | | @GetMapping(value = "/asyncLoadEquipmentByProduction") |
| | | public Result<?> asyncLoadEquipmentByProduction(@RequestParam(name="productionId",required = false) String productionId) { |
| | | List<String> equipmentIds = Lists.newArrayList(); |
| | | if (StringUtils.isNotBlank(productionId)) { |
| | | equipmentIds = mdcEquipmentService.getEquipmentIdsProduction(productionId); |
| | | } |
| | | |
| | | List<EquipmentSearchResult> resultList = eamEquipmentService.asyncLoadEquipmentByProduction(equipmentIds); |
| | | return Result.ok(resultList); |
| | | } |
| | | |
| | | } |