|
@@ -225,8 +225,14 @@ public class RabbitMqListener {
|
|
|
//计算模型并返回需要上传oss的文件集合
|
|
|
ComputerUtil.computer(num, path, buildType);
|
|
|
|
|
|
+ // 检测计算结果文件是否有生成
|
|
|
+ String resultsPath = path + File.separator + "results" + File.separator;
|
|
|
+ String uploadData = FileUtils.readFile(resultsPath + "upload.json");
|
|
|
+ if (!new File(uploadData).exists()) {
|
|
|
+ log.error("未检测到计算结果文件:upload.json");
|
|
|
+ return ModelingBuildStatus.FAILED;
|
|
|
+ }
|
|
|
log.info("八目上完oss结束修改数据:"+num);
|
|
|
-
|
|
|
return ModelingBuildStatus.SUCCESS;
|
|
|
}
|
|
|
|