master
chentaisen 2024-09-05 12:27:40 +08:00
parent 739a5f713b
commit 7ba3d21076
1 changed files with 15 additions and 14 deletions

View File

@ -30,17 +30,18 @@ public class GenerateConstant {
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());
return PACKAGE_PATH + "\n" +
ACTION_IMPORT + "\n" +
SCOPE_IMPORT + level + ";\n" +
// String level = selectType(rule.getRuleType());
return
// PACKAGE_PATH + "\n" +
// ACTION_IMPORT + "\n" +
// SCOPE_IMPORT + level + ";\n" +
"\n" +
"/**\n" +
" * @date: " + format + "\n" +
" * @Description: " + ruleEdition.getName() + "_" + ruleEdition.getRuleKind() + "\n" +
" * @Version: 1.0\n" +
" */\n" +
"public class " + getClassName(ruleEdition.getRuleCoding()) + " extends " + DATA_FIELD + " {\n" +
"public class " + rule.getName() + getClassName(ruleEdition.getRuleCoding()) + " extends " + "DataEngineValueActuator" + " {\n" +
" @Override\n" +
" public void run () {\n" +
" }\n" +