|
|
|
@ -900,14 +900,14 @@ public class InterfaceServiceImpl implements InterfaceService {
|
|
|
|
|
String resourceBo = HandleEnum.RESOURCE.getHandle(site, resource);
|
|
|
|
|
Resrce resourceModel = resrceService.getById(resourceBo);
|
|
|
|
|
if (resourceModel == null) {
|
|
|
|
|
throw BusinessException.build("资源【" +resource+ "】不存在!");
|
|
|
|
|
throw BusinessException.build("设备【" +resource+ "】不存在!");
|
|
|
|
|
}
|
|
|
|
|
String operationBo = HandleEnum.OPERATION.getHandle(site, operation, revision);
|
|
|
|
|
|
|
|
|
|
//查询设备所属类型以及对应工序
|
|
|
|
|
List<Map<String, Object>> mapList = resrceService.getResourceOperation(resourceBo);
|
|
|
|
|
if (mapList == null || mapList.size() <= 0) {
|
|
|
|
|
throw BusinessException.build("资源【" +resource+ "】不存在!");
|
|
|
|
|
throw BusinessException.build("设备【" +resource+ "】不存在!");
|
|
|
|
|
}
|
|
|
|
|
Map<String, Object> map = mapList.get(0);
|
|
|
|
|
String _operationBo = (String) map.get("OPERATION_BO");
|
|
|
|
|