Browse Source

算法名称问题

martin 2 years ago
parent
commit
b871a31073

+ 5 - 5
simulation-resource-server/src/main/java/com/css/simulation/resource/project/impl/SimulationProjectServiceImpl.java

@@ -1415,9 +1415,9 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
     }
 
     /**
-     * 获取第三方算法信息
+     * 获取第三方算法平台的算法信息
      *
-     * @return
+     * @return 第三方算法平台的算法信息
      */
     private List<DropDownVo> getOtherAlgorithmInfo(String query) {
 
@@ -1461,11 +1461,11 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
             List<ConfigSensorPO> configSensorVos = simulationProjectMapper.selectConfigSensor(v.getId());
             String sensor = "";
             if (!isEmpty(configSensorVos) && configSensorVos.get(0) != null) {
-                StringBuffer stringBuffer = new StringBuffer();
+                StringBuilder stringBuilder = new StringBuilder();
                 for (ConfigSensorPO cv : configSensorVos) {
-                    stringBuffer.append(cv.getSensorType() + ",");
+                    stringBuilder.append(cv.getSensorType()).append(",");
                 }
-                sensor = stringBuffer.substring(0, stringBuffer.lastIndexOf(","));
+                sensor = stringBuilder.substring(0, stringBuilder.lastIndexOf(","));
 
             }
             dropDownVo.setSensor(sensor);