|
@@ -226,13 +226,14 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
bindingMap.put("time", JSONObject.parseObject(String.valueOf(maps.get("graduation_time")), UserProfileFit.class).getValue());
|
|
|
bindingMap.put("year", JSONObject.parseObject(String.valueOf(maps.get("working_years")), UserProfileFit.class).getValue());
|
|
|
File touch = FileUtil.touch(ZHONGZHENG_PROFILE+"word.html");
|
|
|
- //默认配置
|
|
|
+ //默认freemake配置
|
|
|
Configuration configuration = new Configuration();
|
|
|
configuration.setDefaultEncoding("UTF-8");
|
|
|
configuration.setClassForTemplateLoading(this.getClass(), "/templates");
|
|
|
Template template = configuration.getTemplate("wordPhone.ftl");
|
|
|
Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(touch),"UTF-8"));
|
|
|
try {
|
|
|
+ //写入数据
|
|
|
template.process(bindingMap,out);
|
|
|
out.flush();
|
|
|
out.close();
|