From 5e7caecc9cc940df53fa4f344609f6741b7fc37c Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Wed, 9 Oct 2024 08:48:08 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B410=E6=9C=889=E6=97=A5=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/testController.java | 24 ++----------------- .../SyncZyStudentPdf.java | 2 +- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/httpinterface/controller/testController.java b/jeecg-module-main/src/main/java/org/jeecg/modules/httpinterface/controller/testController.java index 970c6c9f..b3b41f07 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/httpinterface/controller/testController.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/httpinterface/controller/testController.java @@ -1,38 +1,18 @@ package org.jeecg.modules.httpinterface.controller; -import cn.hutool.core.convert.Convert; -import cn.hutool.core.net.url.UrlBuilder; -import cn.hutool.core.util.CharsetUtil; -import cn.hutool.crypto.SecureUtil; -import cn.hutool.http.HttpUtil; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.google.common.collect.Maps; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; -import org.apache.commons.compress.utils.Lists; -import org.apache.commons.lang.StringUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.modules.kc.grab.exports.entity.TBks; import org.jeecg.modules.kc.grab.exports.service.ITBksService; -import org.jeecg.modules.kc.jiaoshi.entity.KcZhihuijiaoshi; -import org.jeecg.modules.kc.jiaoshi.entity.KcZhihuijiaoshiMonitorLog; -import org.jeecg.modules.kc.jiaoshi.entity.KcZhihuijiaoshiOperateLog; -import org.jeecg.modules.kc.jiaoshi.service.IKcZhihuijiaoshiMonitorLogService; -import org.jeecg.modules.kc.jiaoshi.service.IKcZhihuijiaoshiOperateLogService; -import org.jeecg.modules.kc.jiaoshi.service.IKcZhihuijiaoshiService; import org.jeecg.modules.tools.office.pdf.PDFUtil; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import java.util.Arrays; -import java.util.List; -import java.util.Map; - /** * @Description: 对外部访问接口 * @Author: jeecg-boot @@ -41,7 +21,7 @@ import java.util.Map; */ @Slf4j @Api(tags="对外部访问接口") -//@RestController +@RestController @RequestMapping("/temp") public class testController extends JeecgController { @@ -49,7 +29,7 @@ public class testController extends JeecgController { @ApiOperation(value="T_BKS-抓取-通过id查询", notes="T_BKS-抓取-通过id查询") @GetMapping(value = "/testPDF") public Result runAvyApiByIds(String ids,String type){ - PDFUtil.office2PDF("F:\\temp\\test\\a.docx","F:\\temp\\test\\a.pdf"); + PDFUtil.office2PDF("F:\\temp\\test\\a.docx","F:\\temp\\test\\b.pdf"); return Result.OK(); } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyStudentPdf.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyStudentPdf.java index 2ef08070..9d7878af 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyStudentPdf.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyStudentPdf.java @@ -11,7 +11,7 @@ import org.jeecg.modules.kc.zyInfoScjl.entity.ZyInfoScjl; import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent; import org.jeecg.modules.kc.zyInfoStudent.service.IZyInfoStudentService; import org.jeecg.modules.tools.Global; -import org.jeecg.modules.tools.pdf.PDFUtil; +import org.jeecg.modules.tools.office.pdf.PDFUtil; import org.quartz.JobExecutionContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value;