...
|
...
|
@@ -19,7 +19,7 @@ public class CustomXmlMaker { |
|
|
private Configuration freemakerTemplate;
|
|
|
|
|
|
@Value("${custom.send-path}")
|
|
|
private String sendPath;
|
|
|
private String sendPaths;
|
|
|
|
|
|
@Value("${tcs.mq-number}")
|
|
|
private String TCSMQNumber;
|
...
|
...
|
@@ -42,7 +42,7 @@ public class CustomXmlMaker { |
|
|
* @param tplName 模板名称
|
|
|
* @param fileName 生成的报文名称
|
|
|
* @param manifestMap 数据实体
|
|
|
* @param sendPath 生成路径
|
|
|
* @param sendPath 生成路径 传入的参数没用 运用配置文件中的路径
|
|
|
* @return 0失败,1成功
|
|
|
* @throws IOException
|
|
|
*/
|
...
|
...
|
@@ -50,7 +50,7 @@ public class CustomXmlMaker { |
|
|
try {
|
|
|
Template template = freemakerTemplate.getTemplate(tplName);
|
|
|
String content = FreeMarkerTemplateUtils.processTemplateIntoString(template,manifestMap);
|
|
|
String filename = sendPath+fileName;
|
|
|
String filename = sendPaths+fileName;
|
|
|
File sendfile = new File(filename);
|
|
|
FileUtils.writeStringToFile(sendfile,content,"UTF-8");
|
|
|
}catch (IOException e){
|
...
|
...
|
|