Commit d05625c3 authored by chenzhao's avatar chenzhao

使用登记表生成代码修改

parent a4cb62ac
......@@ -755,6 +755,8 @@ public class CommonController extends BaseController {
public ResponseModel<Map<String,Object>> getRegistrationFormUrl(@RequestBody JSONObject map) {
JSONObject formData = JSONObject.parseObject(JSONObject.toJSONString(map.get("formData")));
String manageType = String.valueOf(map.get("manageType"));
ReginParams selectedOrgInfo = getSelectedOrgInfo();
formData.put("userName",selectedOrgInfo.getUserModel().getRealName());
return ResponseHelper.buildResponse(commonService.getRegistrationFormUrl(manageType, formData));
}
......
......@@ -2218,13 +2218,13 @@ public class CommonServiceImpl implements ICommonService {
String fileName ;
if (UNIT.equals(manageType)){
wordPath = "use-registration-form-unit.ftl";
fileName = "use-registration-form-unit.ftl";
fileName = "台套使用登记表_";
}else if (SET.equals(manageType)){
wordPath = "use-registration-form-set.ftl";
fileName = "use-registration-form-set.ftl";
fileName = "单位使用登记表_";
}else {
wordPath = "use-registration-form-vehicle.ftl";
fileName = "use-registration-form-vehicle.ftl";
fileName = "车用气瓶使用登记表_";
}
// word转pdf
File pdfFile = null;
......
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