diff --git a/pom.xml b/pom.xml
index 7f9a66e..c6ecd48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -138,11 +138,6 @@
qomo-data-selfReport
${dmp.version}
-
-
-
-
-
diff --git a/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml b/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
index 839dcd4..ac280f8 100644
--- a/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
+++ b/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
@@ -282,8 +282,8 @@ jeecg:
#webapp文件路径
webapp: /opt/webapp
shiro:
- excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
-# excludeUrls: /**/**,/**/**/**
+# excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
+ excludeUrls: /**/**,/**/**/**
#阿里云oss存储和大鱼短信秘钥配置
oss:
@@ -436,7 +436,8 @@ seaTunnelHome: /opt/service/apache-seatunnel-2.3.4
hiveMetastoreUri: thrift://192.168.50.102:9083
hiveSitePath: /opt/service/apache-seatunnel-2.3.4/deploy/hive-site.xml
hdfsSitePath: /opt/service/apache-seatunnel-2.3.4/deploy/hdfs-site.xml
-
+hdfs:
+ enable: false
minio:
server: http://192.168.50.9
port: 9100
diff --git a/qomo-kn-cost-manage/pom.xml b/qomo-kn-cost-manage/pom.xml
index 7e5a041..7fa2ad8 100644
--- a/qomo-kn-cost-manage/pom.xml
+++ b/qomo-kn-cost-manage/pom.xml
@@ -13,12 +13,6 @@
org.qomo.boot
qomo-system-biz
- ${revision}
-
-
- org.projectlombok
- lombok
- provided
com.google.auto.service
@@ -29,33 +23,5 @@
com.zzsmart.qomo
qomo-data-integration
-
- org.projectlombok
- lombok
- RELEASE
- compile
-
-
- org.apache.poi
- poi
- 5.2.3
-
-
- org.apache.poi
- poi-ooxml
- 5.2.3
-
-
-
-
-
-
-
-
- com.alibaba
- easyexcel
- 4.0.1
-
-
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardDetailController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardDetailController.java
index 6845b96..2bca7fb 100644
--- a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardDetailController.java
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardDetailController.java
@@ -139,6 +139,7 @@ public class AppSceneCostStandardDetailController extends JeecgController void export(HttpServletResponse response, String fileName, List> head, List data, Class clazz) throws IOException {
- response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
- response.setCharacterEncoding(StandardCharsets.UTF_8.name());
- try {
- fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.name()).replaceAll("\\+", "%20");
- response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
- } catch (UnsupportedEncodingException e) {
- e.printStackTrace();
- }
-
- // 自定义表头样式
- HorizontalCellStyleStrategy horizontalCellStyleStrategy = getHorizontalCellStyleStrategy();
-
- // 使用EasyExcel导出
- try {
- EasyExcel.write(response.getOutputStream(), clazz)
- // 注册样式策略
- .registerWriteHandler(horizontalCellStyleStrategy).sheet("1111").doWrite(data);
- } catch (IOException e) {
- e.printStackTrace();
- throw new RuntimeException(e);
- }
-// FileOutputStream outputStream= new FileOutputStream(fileName);
-// try {
-// EasyExcel.write(outputStream)
-// // 设置自定义样式,可选
-// .sheet("Sheet1") // 设置工作表名称
-// .doWrite(data); // 将数据写入Excel
-// } catch (Exception e) {
-// e.printStackTrace();
-// System.out.println("zheli==============");
-// } finally {
-//// if (excelWriter != null) {
-//// excelWriter.finish();
-//// }
-// if (outputStream != null) {
-// outputStream.close();
-// }
-
-// }
- }
-
- /**
- * 创建自定义的水平单元格样式策略,用于表头样式。
- *
- * @return 水平单元格样式策略
- */
- private static HorizontalCellStyleStrategy getHorizontalCellStyleStrategy() {
- // 设置表头字体样式
- WriteFont headFont = new WriteFont();
- headFont.setFontHeightInPoints((short) 12);
- headFont.setFontName("Arial");
- headFont.setBold(true);
-
- // 设置表头单元格样式
- WriteCellStyle headCellStyle = new WriteCellStyle();
- headCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
- headCellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
- headCellStyle.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());
- headCellStyle.setFillPatternType(FillPatternType.SOLID_FOREGROUND);
- headCellStyle.setBorderLeft(BorderStyle.THIN);
- headCellStyle.setBorderRight(BorderStyle.THIN);
- headCellStyle.setBorderTop(BorderStyle.THIN);
- headCellStyle.setBorderBottom(BorderStyle.THIN);
- headCellStyle.setWriteFont(headFont);
-
- // 创建并返回水平单元格样式策略
- return new HorizontalCellStyleStrategy(headCellStyle, (List) null);
- }
-
- /**
- * 获取带有@Excel注解的属性集合
- *
- * @param clazz 实体类的Class对象
- * @return 带有@Excel注解的Field集合
- */
- public static Field[] getExcelPropertyAnnotatedFields(Class> clazz) {
- Field[] fields = clazz.getDeclaredFields();
- List annotatedFields = new ArrayList<>();
-
- for (Field field : fields) {
- if (field.isAnnotationPresent(ExcelProperty.class)) {
- annotatedFields.add(field);
- }
- }
- return annotatedFields.toArray(new Field[0]);
- }
-
- /**
- * 查询类需要导出的列名
- *
- * @param clazz
- * @return
- */
- public static Set getIncludeFields(Class> clazz) {
- Field[] excelPropertyAnnotatedFields = getExcelPropertyAnnotatedFields(AppSceneCostStandardDetail.class);
- Set includeColumnFiledNames = new HashSet();
- for (int i = 0; i < excelPropertyAnnotatedFields.length; i++) {
- includeColumnFiledNames.add(excelPropertyAnnotatedFields[i].getName());
- }
- return includeColumnFiledNames;
- }
-}