|
@@ -1,6 +1,8 @@
|
|
|
package com.taais.biz.service.impl;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
@@ -137,4 +139,21 @@ public class AlgorithmConfigTrackServiceImpl extends BaseServiceImpl<AlgorithmCo
|
|
|
return this.removeByIds(Arrays.asList(ids));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<Object> getEnums() {
|
|
|
+ algorithmConfigTrackMapper.selectAll();
|
|
|
+
|
|
|
+ List<Object> result = new ArrayList<>();
|
|
|
+
|
|
|
+ for (AlgorithmConfigTrack algorithmConfigTrack : algorithmConfigTrackMapper.selectAll()) {
|
|
|
+ HashMap<String, Object> map = new HashMap<>();
|
|
|
+ map.put("label",algorithmConfigTrack.getAlgorithmName());
|
|
|
+ map.put("value",algorithmConfigTrack.getId());
|
|
|
+
|
|
|
+ result.add(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
}
|