|
@@ -12,6 +12,7 @@ import com.gqy.common.utils.SecurityUtils;
|
|
import com.gqy.document.domain.vo.PageResult;
|
|
import com.gqy.document.domain.vo.PageResult;
|
|
import com.gqy.document.domain.Document;
|
|
import com.gqy.document.domain.Document;
|
|
import com.gqy.document.service.IDocumentService;
|
|
import com.gqy.document.service.IDocumentService;
|
|
|
|
+import com.gqy.document.service.IExportService;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -50,7 +51,19 @@ public class DcDocumentController extends BaseController
|
|
return "succ";
|
|
return "succ";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IExportService exportService;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 导出文档
|
|
|
|
+ * @param content
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/export")
|
|
|
|
+ public AjaxResultCQY export(@RequestBody Map content) {
|
|
|
|
+ String contentStr = (String) content.get("content");
|
|
|
|
+ return exportService.export(contentStr);
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 创建文档
|
|
* 创建文档
|