根据场景id获取总指挥的行为树的原数据
This commit is contained in:
@@ -3,6 +3,7 @@ package com.solution.system.service;
|
||||
import java.util.List;
|
||||
|
||||
import com.solution.system.domain.Behaviortree;
|
||||
import com.solution.system.domain.PlatformChiefCommander;
|
||||
|
||||
/**
|
||||
* 行为树主Service接口
|
||||
@@ -69,4 +70,11 @@ public interface IBehaviortreeService
|
||||
* @return
|
||||
*/
|
||||
List<String> getUnderling(Integer treeId);
|
||||
|
||||
/**
|
||||
* 根据场景id获取总指挥的行为树的原数据
|
||||
* @param scenarioId
|
||||
* @return
|
||||
*/
|
||||
List<PlatformChiefCommander> getCommander(Integer scenarioId);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.solution.common.constant.ExceptionConstants;
|
||||
import com.solution.system.domain.PlatformChiefCommander;
|
||||
import com.solution.system.domain.PlatformTree;
|
||||
import com.solution.system.mapper.PlatformCommunicationMapper;
|
||||
import com.solution.system.mapper.PlatformMapper;
|
||||
@@ -135,4 +136,14 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService
|
||||
}
|
||||
return underlingChineseName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据场景id获取总指挥的行为树的原数据
|
||||
* @param scenarioId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<PlatformChiefCommander> getCommander(Integer scenarioId) {
|
||||
return behaviortreeMapper.getCommander(scenarioId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user