Commit 683c3b75 authored by 韩桐桐's avatar 韩桐桐

fix(jg):使用登记表

parent 254bdb44
...@@ -2215,7 +2215,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -2215,7 +2215,7 @@ public class CommonServiceImpl implements ICommonService {
@Override @Override
public Map<String,Object> getRegistrationFormUrl(JSONObject map){ public Map<String,Object> getRegistrationFormUrl(JSONObject map){
JSONObject formData = JSONObject.parseObject(JSONObject.toJSONString(map.get("formData"))); JSONObject formData = JSONObject.parseObject(JSONObject.toJSONString(map.get("formData")));
String manageType = JSONObject.toJSONString(map.get("manageType")); String manageType = String.valueOf(map.get("manageType"));
String wordPath ; String wordPath ;
String fileName ; String fileName ;
if (UNIT.equals(manageType)){ if (UNIT.equals(manageType)){
...@@ -2232,7 +2232,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -2232,7 +2232,7 @@ public class CommonServiceImpl implements ICommonService {
File pdfFile = null; File pdfFile = null;
try { try {
pdfFile = wordToPdf(fileName, wordPath, formData); pdfFile = wordToPdf(fileName, wordPath, formData);
return MapBuilder.<String, Object>create().put("url",uploadFile(pdfFile)).build(); return MapBuilder.<String, Object>create().put("useRegistrationFormUrl", uploadFile(pdfFile)).build();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
}finally { }finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment