Commit c8ef4948 authored by 赵啸非's avatar 赵啸非

添加公共庫

parent b1fc4893
......@@ -137,32 +137,6 @@ public class HomeController extends BaseJsonBodyController {
return ret;
}
/**
* 合成表单与模板
*/
@PostMapping(value = "mergeFormToDocx")
@UnAuth
public String mergeFormToDocx(@RequestBody MatterDatumEntity docFormVo) {
JSONObject jsonObject = new JSONObject();
try {
String paths = matterDatumService.mergeFormToDoc(docFormVo, getContext());
String[] vals = paths.split(";");
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
jsonObject.put("mergeDoc", vals[0]);
jsonObject.put("preview", vals[1]);
//todo 保存表单数据
// docFormVo.setCreateTime(new Date());
// docFormVo.setCreateUserId(getContextUserId(getContext()));
// docFormVo.setCreateUser("");
// docFormService.save(docFormVo, getContext());
} catch (Exception e) {
log.error("合成表单异常", e);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE);
jsonObject.put(KEY_RESULT_MSG, super.convertException(e));
}
return jsonObject.toJSONString();
}
@PostMapping({"info"})
@UnAuth
public Rest<Object> homePageInfo() {
......
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