Explorar o código

保存模型默认为未启用

wangchangsheng %!s(int64=2) %!d(string=hai) anos
pai
achega
f73543b9a8

+ 1 - 1
gyee-sample-impala/src/main/java/com/gyee/impala/service/custom/diagnose/TrainFileModeService.java

@@ -149,7 +149,7 @@ public class TrainFileModeService {
         String body = JSONObject.toJSONString(history);
         Object historys = JSONObject.parse(body);
         Diagnosetrainhistory d = JSONObject.parseObject(historys.toString(), Diagnosetrainhistory.class);
-        d.setEnable(true);
+        d.setEnable(false);
         diagnosetrainhistoryService.insertItem(d);
         Diagnosetrainhistory dbhistory = diagnosetrainhistoryService.getHistoryByCode(d.getCode());
         historyQueue.put(dbhistory);