master
zhang chengzhi 2024-09-05 21:32:38 +08:00
parent ba0e92c608
commit 949586fd13
4 changed files with 9 additions and 11 deletions

View File

@ -15,9 +15,9 @@ public class ENGINE_VALUE_VFD1000_V1 extends DataEngineValueActuator {
public void run() {
DataValue dataValue = get();
if (dataValue.getValue() == null){
System.out.println("数据为空");
System.out.println("数据为空,需要丢弃");
}else{
System.out.println("数据非空:"+dataValue.getValue());
}
}

View File

@ -27,7 +27,7 @@ import java.io.IOException;
* ,
*/
@Log4j2
@Component
//@Component
public class DownloadOss implements ApplicationRunner {
private static final String endPoint = "oss-cn-beijing.aliyuncs.com";

View File

@ -123,20 +123,18 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
serverFile.getParentFile().mkdirs();
}
serverFile.mkdirs();
try (BufferedWriter writer = new BufferedWriter(new FileWriter(filePath))) {
writer.write(versionClazz);
System.out.println("文件已成功创建并写入Java源码。");
} catch (IOException e) {
System.err.println("发生错误:" + e.getMessage());
}
File classFile = new File(engineWorkClassPath, ossFilePath2);
//如果目录不存在,则创建目录
if (!classFile.getParentFile().exists()) {
classFile.getParentFile().mkdirs();
}
// File classFile = new File(engineWorkClassPath, ossFilePath2);
// //如果目录不存在,则创建目录
// if (!classFile.getParentFile().exists()) {
// classFile.getParentFile().mkdirs();
// }
////下载文件到指定服务器目录下
// OssUtil.downloadFileForBucket(bucketName, ossFilePath, filePath);