Changes
parent
d948db130f
commit
6309ec65ff
|
@ -27,7 +27,7 @@ public class GenerateConstant {
|
||||||
// return className;
|
// 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");
|
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||||
// String format = simpleDateFormat.format(new Date());
|
// String format = simpleDateFormat.format(new Date());
|
||||||
// String level = selectType(rule.getRuleType());
|
// String level = selectType(rule.getRuleType());
|
||||||
|
@ -50,12 +50,7 @@ public class GenerateConstant {
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||||
String format = simpleDateFormat.format(new Date());
|
String format = simpleDateFormat.format(new Date());
|
||||||
// String level = selectType(rule.getRuleType());
|
// String level = selectType(rule.getRuleType());
|
||||||
return
|
return "public class " + ruleEdition.getRuleCoding() + " {\n" +
|
||||||
" * @date" + format + "\n" +
|
|
||||||
" * @Description" + ruleEdition.getName() + "_" + ruleEdition.getRuleKind() + "\n" +
|
|
||||||
" * @Version1.0\n" +
|
|
||||||
" */\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