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

fix(jg):使用登记表

parent 254bdb44
......@@ -2215,7 +2215,7 @@ public class CommonServiceImpl implements ICommonService {
@Override
public Map<String,Object> getRegistrationFormUrl(JSONObject map){
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 fileName ;
if (UNIT.equals(manageType)){
......@@ -2232,7 +2232,7 @@ public class CommonServiceImpl implements ICommonService {
File pdfFile = null;
try {
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) {
throw new RuntimeException(e);
}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