|
@@ -438,14 +438,20 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
}
|
|
}
|
|
//修正算法名称
|
|
//修正算法名称
|
|
{
|
|
{
|
|
- String algorithmName = null;
|
|
|
|
- String algorithmDescription = null;
|
|
|
|
|
|
+ String algorithmName;
|
|
|
|
+ String algorithmDescription;
|
|
{
|
|
{
|
|
if (DictConstants.ALGORITHM_UPLOAD_MODE_PLATFORM.equals(algorithmType)) {
|
|
if (DictConstants.ALGORITHM_UPLOAD_MODE_PLATFORM.equals(algorithmType)) {
|
|
|
|
+ log.info("使用外部算法平台的算法{}", algorithmId);
|
|
List<AlgorithmVO> select = algorithmExpandMapper.select(AlgorithmParameter.builder().algorithmId(algorithmId).build());
|
|
List<AlgorithmVO> select = algorithmExpandMapper.select(AlgorithmParameter.builder().algorithmId(algorithmId).build());
|
|
AlgorithmVO algorithmVO = select.get(0);
|
|
AlgorithmVO algorithmVO = select.get(0);
|
|
algorithmName = algorithmVO.getAlgorithmName() + "-" + algorithmVO.getAlgorithmVersion();
|
|
algorithmName = algorithmVO.getAlgorithmName() + "-" + algorithmVO.getAlgorithmVersion();
|
|
algorithmDescription = select.get(0).getDescription();
|
|
algorithmDescription = select.get(0).getDescription();
|
|
|
|
+ } else {
|
|
|
|
+ log.info("使用内部上传的算法{}", algorithmId);
|
|
|
|
+ AlgorithmPO algorithmPO = algorithmMapper.selectDetailsById(algorithmId);
|
|
|
|
+ algorithmName = algorithmPO.getAlgorithmName();
|
|
|
|
+ algorithmDescription = algorithmPO.getDescription();
|
|
}
|
|
}
|
|
// 暂时不处理非算法平台的算法
|
|
// 暂时不处理非算法平台的算法
|
|
projectDetailsVO.setAlgorithmName(algorithmName);
|
|
projectDetailsVO.setAlgorithmName(algorithmName);
|