From 8c06e4e8cf233aed526b0a91ce87432c953f3a8b Mon Sep 17 00:00:00 2001
From: zhc077 <565291854@qq.com>
Date: Thu, 21 Nov 2024 18:00:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=94=9F=E6=88=90=2011.21?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../org/jeecg/config/shiro/ShiroConfig.java | 1 +
jeecg-boot/jeecg-module-demo/pom.xml | 17 +++
.../project/controller/ProjectController.java | 14 ++
.../modules/demo/project/dto/ProjectDto.java | 6 -
.../project/service/IProject4WordService.java | 14 +-
.../service/impl/Project4WordServiceImpl.java | 45 +++++-
.../jeecg/test/word/WordExportUtil_test.java | 144 ------------------
.../src/main/resources/application-dev.yml | 4 +-
.../modules/word/WordExportUtil_test.java | 34 ++++-
jeecg-boot/pom.xml | 10 +-
10 files changed, 117 insertions(+), 172 deletions(-)
delete mode 100644 jeecg-boot/jeecg-module-demo/src/main/test/java/org/jeecg/test/word/WordExportUtil_test.java
diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
index 37da5a6..330c07c 100644
--- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
+++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java
@@ -192,6 +192,7 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/sys/sysDepart/queryDepartTreeSync4FaRen", "anon");//法人注册时,选择部门列表
filterChainDefinitionMap.put("/sys/sysDepart/getDepartList4Quxian", "anon");//法人注册时,获取区县级别部门列表
+ filterChainDefinitionMap.put("/project/project/createXiangmushuWord", "anon");//测试word生成
diff --git a/jeecg-boot/jeecg-module-demo/pom.xml b/jeecg-boot/jeecg-module-demo/pom.xml
index 86b18a2..424cb05 100644
--- a/jeecg-boot/jeecg-module-demo/pom.xml
+++ b/jeecg-boot/jeecg-module-demo/pom.xml
@@ -20,6 +20,23 @@
org.jeecgframework.boot
jeecg-system-biz
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.3.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.3.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.3.0
+
diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java
index c117481..97fe1bc 100644
--- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java
+++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java
@@ -28,6 +28,7 @@ import org.jeecg.modules.demo.project.dto.DepartExtDto;
import org.jeecg.modules.demo.project.dto.DepartExtDto2;
import org.jeecg.modules.demo.project.dto.ProjectShenBaoDto;
import org.jeecg.modules.demo.project.entity.Project;
+import org.jeecg.modules.demo.project.service.IProject4WordService;
import org.jeecg.modules.demo.project.service.IProjectService;
import org.jeecg.modules.demo.projectLog.entity.ProjectLog;
import org.jeecg.modules.demo.projectLog.service.IProjectLogService;
@@ -88,6 +89,10 @@ public class ProjectController extends JeecgController
@Autowired
private IProjectLogService iProjectLogService;
+ @Autowired
+ IProject4WordService iProject4WordService;
+
+
/**
* 分页列表查询
*
@@ -809,4 +814,13 @@ public class ProjectController extends JeecgController
return super.importExcel(request, response, Project.class);
}
+ @ApiOperation(value = "生成项目书word文件", notes = "生成项目书word文件")
+ @GetMapping(value = "/createXiangmushuWord")
+// @PermissionData(pageComponent = "projectApplication/productAudit/project4AuditList")
+ public Result