Changes
parent
d948db130f
commit
6309ec65ff
|
@ -27,7 +27,7 @@ public class GenerateConstant {
|
|||
// return className;
|
||||
// }
|
||||
|
||||
// public static String generateConstant(Rule rule, RuleEdition ruleEdition) {
|
||||
// public static String generateConstant(Rule rule, RuleEdition ruleEdition) {
|
||||
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
// String format = simpleDateFormat.format(new Date());
|
||||
// String level = selectType(rule.getRuleType());
|
||||
|
@ -50,12 +50,7 @@ public class GenerateConstant {
|
|||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
String format = simpleDateFormat.format(new Date());
|
||||
// String level = selectType(rule.getRuleType());
|
||||
return
|
||||
" * @date" + format + "\n" +
|
||||
" * @Description" + ruleEdition.getName() + "_" + ruleEdition.getRuleKind() + "\n" +
|
||||
" * @Version1.0\n" +
|
||||
" */\n" +
|
||||
"public class " + ruleEdition.getRuleCoding() + " {\n" +
|
||||
return "public class " + ruleEdition.getRuleCoding() + " {\n" +
|
||||
" @Override\n" +
|
||||
" public void run () {\n" +
|
||||
" }\n" +
|
||||
|
|
Loading…
Reference in New Issue