--9--10
parent
3932bc6e50
commit
38e18c68bc
|
@ -32,8 +32,7 @@ public class GenerateConstant {
|
|||
public static String generateConstant(EngineMaintenance ruleData, EngineVersion ruleVersion) {
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
String format = simpleDateFormat.format(new Date());
|
||||
// String level = selectType(ruleData.getScope());
|
||||
return "package com.muyu.etl.rule.util;\n" +
|
||||
return "package com.muyu.domain.EngineVersion;\n" +
|
||||
"import com.muyu.abstracts.DataEngineValueActuator;\n" +
|
||||
"import com.muyu.abstracts.DataValue;\n" +
|
||||
"\n" +
|
||||
|
@ -43,7 +42,7 @@ public class GenerateConstant {
|
|||
" * @Description: " + "\n" +
|
||||
" * @Version: 1.0\n" +
|
||||
" */\n" +
|
||||
"public class " + ruleVersion.getVersionCode()+" extends "+"DataEngineValueActuator"+"{ \n" +
|
||||
"public class " + ruleVersion.getName() + " extends " + "DataEngineValueActuator" + "{ \n" +
|
||||
" @Override\n" +
|
||||
" public DataValue run () {\n" +
|
||||
" DataValue dataValue = get();\n" +
|
||||
|
|
Loading…
Reference in New Issue