master
chentaisen 2024-09-03 14:37:33 +08:00
parent 56795933a2
commit c5fde2cae9
1 changed files with 16 additions and 16 deletions

View File

@ -11,28 +11,28 @@ import java.util.Date;
@Component @Component
public class GenerateConstant { public class GenerateConstant {
// public static String generateConstant(Rule rule, RuleEdition ruleEdition) { // public static String generateConstant(Rule rule, RuleEdition ruleEdition) {
// return "public class " + ruleEdition.getRuleCoding() + " {\n" + // return "public class " + ruleEdition.getRuleCoding() + " {\n" +
// " @Override\n" + // " @Override\n" +
// " public void run () {\n" + // " public void run () {\n" +
// " }\n" + // " }\n" +
// "}"; // "}";
// } // }
public static String generateConstant(RuleEdition ruleEdition) { public static String generateConstant(RuleEdition ruleEdition) {
String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
return "package com.muyu.etl.rule.util;\n" + return "package rule.data.engine;\n" +
"\n" + "\n" +
"/**\n" + "/**\n" +
" * @Author: " + "YiBo.Liu" + "\n" + " * @Author: " + "Chen" + "\n" +
" * @date: " + format + "\n" + " * @date: " + format + "\n" +
" * @Description: " + "\n" + " * @Description: " + "\n" +
" * @Version: 1.0\n" + " * @Version: 1.0\n" +
" */\n" + " */\n" +
"public class " + ruleEdition.getRuleCoding() + "{ \n" + "public class " + ruleEdition.getRuleCoding() + "{ \n" +
// " @Override\n" + // " @Override\n" +
" public void run () {\n" + " public void run () {\n" +
" }\n" + " }\n" +
"}"; "}";
} }
} }