试图弄清楚我在这里做错了什么。
public String getSysJobTempl(String JobID, String SysID, String JobCode, String SchedID) {
String finalString= "";
ST sysJob = new ST("INSERT INTO system_job (SYSTEM_JOB_ID,SYSTEM_ID,CODE,IS_ACTIVE,DELAY_TIME,JOB_SCHEDULER_ID) VALUES ('<jobid>','<sysid>','<jobcode>','1','00:00:00','<schedid>');");
sysJob.add("jobid", JobID);
sysJob.add("sysid", SysID);
sysJob.add("jobcode", JobCode);
sysJob.add("schedid", SchedID);
finalString = sysJob.toString();
return finalString;
}
然后稍后调用:
String sysJob = myTemp.getSysJobTempl(getPjobID(), getPsysID(), getPjobCode(), getSchedulerID());
osw.newLine();
osw.write(sysJob);
给出“anonymous()”的输出而不是插入。我在这里做错了什么?