From 1d52208d80a745feeb33a0494a241aec25f3f200 Mon Sep 17 00:00:00 2001 From: lijiarao Date: Wed, 11 Sep 2024 16:53:57 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=96=87=E6=A1=A3=E6=8B=86=E5=88=86?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=8F=AA=E6=8C=89excel=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E5=AF=BC=E5=85=A5=EF=BC=8C=E4=B8=8D=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=BA=8F=E5=8F=B7=20UN,EU=E4=B9=9F=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/FileSplitItemsEOServiceImpl.java | 39 ++++++++++--------- .../src/main/resources/application-dev.yml | 4 +- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java index f3baba3b..af60f343 100644 --- a/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/split/service/impl/FileSplitItemsEOServiceImpl.java @@ -3540,25 +3540,26 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl p = treeNodeList.stream().filter(e -> e.getName().equals(parentName)).collect(Collectors.toList()); - if (CollectionUtil.isNotEmpty(p)) { - //其他节点 - treeNode.setParentId(p.get(0).getId()); - }else{ - //一级节点 - treeNode.setParentId(menuId); - } - }else{ - treeNode.setParentId(menuId); - } - } - else if (StringUtils.isBlank(itemTitle)){ + //if(itemNum.matches(regex)) { + // //父级是 总目录时,不做处理 + // if(itemNum.contains(".")) { + // String parentName = itemNum.substring(0, itemNum.lastIndexOf(".")); + // treeNode.setParentName(parentName); + // + // List p = treeNodeList.stream().filter(e -> e.getName().equals(parentName)).collect(Collectors.toList()); + // if (CollectionUtil.isNotEmpty(p)) { + // //其他节点 + // treeNode.setParentId(p.get(0).getId()); + // }else{ + // //一级节点 + // treeNode.setParentId(menuId); + // } + // }else{ + // treeNode.setParentId(menuId); + // } + //} + //else + if (StringUtils.isBlank(itemTitle)){ treeNode.setParentId(parentId); } else{ diff --git a/laws-single-startup/src/main/resources/application-dev.yml b/laws-single-startup/src/main/resources/application-dev.yml index bb81ea8e..6c01a724 100644 --- a/laws-single-startup/src/main/resources/application-dev.yml +++ b/laws-single-startup/src/main/resources/application-dev.yml @@ -147,7 +147,7 @@ spring: connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000;druid.stat.logSlowSql\=true datasource: master: - url: jdbc:p6spy:mysql://10.10.10.44:3306/laws_chery_dev?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + url: jdbc:p6spy:mysql://10.10.10.44:3306/laws_chery_dev_init?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true username: root password: hzwlsoft.com driver-class-name: com.p6spy.engine.spy.P6SpyDriver @@ -215,7 +215,7 @@ jero: #公式转换图片url mathToImgUrl: http://localhost:9998/mathToImg # 拆分标准类型 - splitStandardClass: UN,EU + splitStandardClass: path: #文件上传根目录 设置 upload: D://opt//upFiles