Changes
parent
56795933a2
commit
c5fde2cae9
|
@ -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" +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue