Selaa lähdekoodia

feat: 无关紧要的优化

WANGKANG 9 kuukautta sitten
vanhempi
sitoutus
807e9b20eb

+ 4 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/service/impl/AlgorithmModelTrackServiceImpl.java

@@ -91,6 +91,10 @@ public class AlgorithmModelTrackServiceImpl extends BaseServiceImpl<AlgorithmMod
     public AlgorithmModelTrackVo selectById(Long id) {
         AlgorithmModelTrackVo algorithmModelTrackVo = this.getOneAs(query().where(ALGORITHM_MODEL_TRACK.ID.eq(id)), AlgorithmModelTrackVo.class);
 
+        if (algorithmModelTrackVo == null) {
+            return null;
+        }
+
         Long algorithmId = algorithmModelTrackVo.getAlgorithmId();
 
         AlgorithmConfigTrackVo algorithmConfigTrackVo = algorithmConfigTrackService.selectById(algorithmId);