修复模型

This commit is contained in:
limin 2025-01-25 11:20:04 +08:00
parent 16d3bec0f1
commit 3866266b93
2 changed files with 3 additions and 3 deletions

View File

@ -130,11 +130,11 @@ public class AsyncModelServiceService {
if (aigcRespVO.isSuccess()){
updateObj.setStatus(0);
}else {
updateObj.setStatus(3);
// updateObj.setStatus(3);
}
modelServiceMapper.updateById(updateObj);
}catch(Exception e){
updateObj.setStatus(3);
// updateObj.setStatus(3);
modelServiceMapper.updateById(updateObj);
};
}

View File

@ -62,7 +62,7 @@ public class ModelServiceTaskSyncService {
// 使用 TypeReference 解析 JSON 字符串为 List<String>
try {
String query = "?filter={\"model_id\":"+modelServiceDO.getJobId()+"}";
String query = "?filter={\"deploy_name\":"+modelServiceDO.getBaseModelName()+"}";
String res = trainHttpService.modelTableQuery(new HashMap<>(), "model_deploy",query);
log.info("获取 aigc model_deploy 表数据 info {}",res);
ObjectMapper mapper = new ObjectMapper();