Compare commits
No commits in common. "7c0dae72e381a3b411c4d8f41880152bd7555f0a" and "02672aee115b32fd925548873385b1909abad43a" have entirely different histories.
7c0dae72e3
...
02672aee11
|
|
@ -29,7 +29,7 @@ public class testController extends JeecgController<TBks, ITBksService> {
|
||||||
@ApiOperation(value = "T_BKS-抓取-通过id查询", notes = "T_BKS-抓取-通过id查询")
|
@ApiOperation(value = "T_BKS-抓取-通过id查询", notes = "T_BKS-抓取-通过id查询")
|
||||||
@GetMapping(value = "/testPDF")
|
@GetMapping(value = "/testPDF")
|
||||||
public Result<?> runAvyApiByIds(String ids, String type) {
|
public Result<?> runAvyApiByIds(String ids, String type) {
|
||||||
PDFUtil.office2PDF("D:\\opt\\upFiles\\temp\\新版VPN使用说明2_1728432595957.docx","D:\\opt\\upFiles\\temp\\111b.pdf");
|
PDFUtil.office2PDF("F:\\temp\\test\\a.docx", "F:\\temp\\test\\b.pdf");
|
||||||
return Result.OK();
|
return Result.OK();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,7 @@ public class SyncZyStudentPdf extends BaseSync {
|
||||||
System.out.println("filPath:"+zyInfoStudent.getFilePath());
|
System.out.println("filPath:"+zyInfoStudent.getFilePath());
|
||||||
System.out.println("docPath:"+docPath);
|
System.out.println("docPath:"+docPath);
|
||||||
System.out.println("pdfPath:"+pdfPath);
|
System.out.println("pdfPath:"+pdfPath);
|
||||||
|
PDFUtil.office2PDF(docPath,pdfPath);
|
||||||
PDFUtil pdfUtil = SpringContextHolder.getBean(PDFUtil.class);
|
|
||||||
pdfUtil.office2PDF(docPath,pdfPath);
|
|
||||||
zyInfoStudent.setPdfPath("contract/"+namePath);
|
zyInfoStudent.setPdfPath("contract/"+namePath);
|
||||||
zyInfoStudent.setPublishTime(new Date());
|
zyInfoStudent.setPublishTime(new Date());
|
||||||
zyInfoStudentService.updateById(zyInfoStudent);
|
zyInfoStudentService.updateById(zyInfoStudent);
|
||||||
|
|
|
||||||
|
|
@ -952,32 +952,4 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@AutoLog(value = "教师批阅作业")
|
|
||||||
@ApiOperation(value="教师批阅作业", notes="教师批阅作业")
|
|
||||||
@RequestMapping(value = "/SyncZyStudentPdf", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<ZyInfoStudent> SyncZyStudentPdf() {
|
|
||||||
List<ZyInfoStudent> ybtkblist = zyInfoStudentService.getDocNoPdfList();
|
|
||||||
for(ZyInfoStudent zyInfoStudent:ybtkblist){
|
|
||||||
try {
|
|
||||||
Global global = SpringContextHolder.getBean(Global.class);
|
|
||||||
FileUtil.mkdir(global.getContractDickPath());
|
|
||||||
String dd = DateUtils.formatDate(new Date(),"yyyyMMddHHmmss");
|
|
||||||
String docPath = upLoadPath+ File.separator+ zyInfoStudent.getFilePath();
|
|
||||||
String namePath = dd + ".pdf";
|
|
||||||
String pdfPath = global.getContractDickPath() + namePath;
|
|
||||||
System.out.println("filPath:"+zyInfoStudent.getFilePath());
|
|
||||||
System.out.println("docPath:"+docPath);
|
|
||||||
System.out.println("pdfPath:"+pdfPath);
|
|
||||||
PDFUtil.office2PDF(docPath,pdfPath);
|
|
||||||
zyInfoStudent.setPdfPath("contract/"+namePath);
|
|
||||||
zyInfoStudent.setPublishTime(new Date());
|
|
||||||
zyInfoStudentService.updateById(zyInfoStudent);
|
|
||||||
} catch (Exception e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Result.OK("批阅完成!");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@ jodconverter:
|
||||||
local:
|
local:
|
||||||
enabled: true
|
enabled: true
|
||||||
# 为了避免不必要的兼容问题,需要配置本机的LibreOffice安装目录
|
# 为了避免不必要的兼容问题,需要配置本机的LibreOffice安装目录
|
||||||
office-home: D:\APPLICATION\INTER\LIBREOFFICE
|
office-home: D:\Program Files\LibreOffice
|
||||||
# 配置LibreOffice的服务端口,以逗号分隔,每个端口为一个独立的进程
|
# 配置LibreOffice的服务端口,以逗号分隔,每个端口为一个独立的进程
|
||||||
port-numbers: 2001,2002,2003,2004,2005,2006,2007,2008,2009,2010
|
port-numbers: 2001,2002,2003,2004,2005,2006,2007,2008,2009,2010
|
||||||
# 配置最大的任务队列
|
# 配置最大的任务队列
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue