Browse Source

修改达梦数据库兼容性

master
WendyYang 11 months ago
parent
commit
0e9fca167c
30 changed files with 18 additions and 36 deletions
  1. +4
    -6
      hz-pm-api/pom.xml
  2. +6
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/meta/helper/basic/AbstractTagsCache.java
  3. +4
    -4
      hz-pm-api/src/main/resources/application-dev.yml
  4. BIN
      hz-pm-gen/lib/kingbase8-8.2.0.jar
  5. +4
    -11
      hz-pm-gen/pom.xml
  6. +0
    -13
      pom.xml
  7. +0
    -0
      resources/font/simsun.ttc
  8. +0
    -0
      resources/kingbasesql/FLW_EV_DATABASECHANGELOGLOCK.sql
  9. +0
    -0
      resources/kingbasesql/act_ge_bytearray.sql
  10. +0
    -0
      resources/kingbasesql/deploy.sql
  11. +0
    -0
      resources/kingbasesql/flw_ev_databasechangelog.sql
  12. +0
    -0
      resources/kingbasesql/nd_purchase.sql
  13. +0
    -0
      resources/kingbasesql/nd_wlfow_org_models.sql
  14. +0
    -0
      resources/kingbasesql/nd_wlfow_org_models_historys.sql
  15. +0
    -0
      resources/kingbasesql/project.sql
  16. +0
    -0
      resources/kingbasesql/wflow_cc_tasks.sql
  17. +0
    -0
      resources/kingbasesql/wflow_departments.sql
  18. +0
    -0
      resources/kingbasesql/wflow_model_groups.sql
  19. +0
    -0
      resources/kingbasesql/wflow_model_historys.sql
  20. +0
    -0
      resources/kingbasesql/wflow_model_perms.sql
  21. +0
    -0
      resources/kingbasesql/wflow_models.sql
  22. +0
    -0
      resources/kingbasesql/wflow_notifys.sql
  23. +0
    -0
      resources/kingbasesql/wflow_roles.sql
  24. +0
    -0
      resources/kingbasesql/wflow_user_agents.sql
  25. +0
    -0
      resources/kingbasesql/wflow_user_departments.sql
  26. +0
    -0
      resources/kingbasesql/wflow_user_roles.sql
  27. +0
    -0
      resources/kingbasesql/wflow_users.sql
  28. +0
    -0
      resources/kingbasesql/wflowother.sql
  29. +0
    -0
      resources/template/丽水市2023年数字化项目年度计划编辑表(空).xls
  30. +0
    -0
      resources/template/丽水市2023年数字化项目年度计划编辑表.xls

+ 4
- 6
hz-pm-api/pom.xml View File

@@ -175,14 +175,12 @@
</exclusions>
<version>1.0.0</version>
</dependency>

<!--KingBase-->
<dependency>
<groupId>com.kingbase8</groupId>
<artifactId>kingbase8-8.2.0</artifactId>
<version>8.2.0</version>
<groupId>com.dm</groupId>
<artifactId>Dm8JdbcDriver</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/lib/kingbase8-8.2.0.jar</systemPath>
<systemPath>${project.basedir}/lib/DmJdbcDriver18.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ningdatech</groupId>


+ 6
- 2
hz-pm-api/src/main/java/com/hz/pm/api/meta/helper/basic/AbstractTagsCache.java View File

@@ -1,6 +1,5 @@
package com.hz.pm.api.meta.helper.basic;

import cn.hutool.core.lang.Assert;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import com.hz.pm.api.meta.assembler.MetaTagAssembler;
@@ -8,6 +7,7 @@ import com.hz.pm.api.meta.helper.TagCache;
import com.hz.pm.api.meta.model.dto.TagDTO;
import com.hz.pm.api.meta.model.dto.TagTreeDTO;
import com.hz.pm.api.meta.service.IMetaTagService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
@@ -21,6 +21,7 @@ import java.util.stream.Collectors;
* @author liuxinxin
* @date 2022/12/22 上午11:56
*/
@Slf4j
public abstract class AbstractTagsCache implements InitializingBean, TagCache {

protected static final int MAX_LEVEL = 4;
@@ -39,7 +40,10 @@ public abstract class AbstractTagsCache implements InitializingBean, TagCache {
.build(key -> {
// 查询全部
List<TagDTO> tagDTOList = iMetaTagService.queryAll();
Assert.isTrue(CollectionUtils.isNotEmpty(tagDTOList), "MetaTags queryAll is Empty");
if (tagDTOList.isEmpty()) {
log.warn("当前层级对应树不存在:{}", key);
return Collections.emptyList();
}
tagDtoMap = buildCateMap(tagDTOList);
List<TagDTO> tagInLevel = tagDTOList.stream().filter(tagDto -> {
// 只过滤出小于等于level的tag


+ 4
- 4
hz-pm-api/src/main/resources/application-dev.yml View File

@@ -42,10 +42,10 @@ spring:
ddl-auto: update
datasource:
type: com.zaxxer.hikari.HikariDataSource
driverClassName: com.kingbase8.Driver
url: jdbc:kingbase8://120.26.44.207:54321/nd_project_management?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username: SYSTEM
password: Ndkj1234
driverClassName: dm.jdbc.driver.DmDriver
url: jdbc:dm://47.98.125.47:5236/HZ_PROJECT_MANAGEMENT?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username: SYSDBA
password: SYSDBA
# 数据源
hikari:
# 是客户端等待连接池连接的最大毫秒数


BIN
hz-pm-gen/lib/kingbase8-8.2.0.jar View File


+ 4
- 11
hz-pm-gen/pom.xml View File

@@ -25,19 +25,12 @@
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
<!--Mysql数据库驱动-->
<dependency>
<groupId>com.kingbase8</groupId>
<artifactId>kingbase8-8.2.0</artifactId>
<groupId>com.dm</groupId>
<artifactId>Dm8JdbcDriver</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/kingbase8-8.2.0.jar</systemPath>
</dependency>

<dependency>
<groupId>com.kingbase.dialect</groupId>
<artifactId>kingbase8-8.2.0</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/lib/kingbase8-8.2.0.jar</systemPath>
<systemPath>${project.basedir}/lib/DmJdbcDriver18.jar</systemPath>
</dependency>
</dependencies>
</project>

+ 0
- 13
pom.xml View File

@@ -85,18 +85,6 @@
<artifactId>flowable-spring-boot-starter-actuator</artifactId>
<version>6.7.2</version>
</dependency>
<!--KingBase-->
<dependency>
<groupId>com.kingbase8</groupId>
<artifactId>kingbase8-8.2.0</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.kingbase.dialect</groupId>
<artifactId>kingbase8-8.2.0</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel-core</artifactId>
@@ -171,7 +159,6 @@
<artifactId>easypoi-base</artifactId>
<version>4.2.0</version>
</dependency>

</dependencies>
</dependencyManagement>



font/simsun.ttc → resources/font/simsun.ttc View File


kingbasesql/FLW_EV_DATABASECHANGELOGLOCK.sql → resources/kingbasesql/FLW_EV_DATABASECHANGELOGLOCK.sql View File


kingbasesql/act_ge_bytearray.sql → resources/kingbasesql/act_ge_bytearray.sql View File


kingbasesql/deploy.sql → resources/kingbasesql/deploy.sql View File


kingbasesql/flw_ev_databasechangelog.sql → resources/kingbasesql/flw_ev_databasechangelog.sql View File


kingbasesql/nd_purchase.sql → resources/kingbasesql/nd_purchase.sql View File


kingbasesql/nd_wlfow_org_models.sql → resources/kingbasesql/nd_wlfow_org_models.sql View File


kingbasesql/nd_wlfow_org_models_historys.sql → resources/kingbasesql/nd_wlfow_org_models_historys.sql View File


kingbasesql/project.sql → resources/kingbasesql/project.sql View File


kingbasesql/wflow_cc_tasks.sql → resources/kingbasesql/wflow_cc_tasks.sql View File


kingbasesql/wflow_departments.sql → resources/kingbasesql/wflow_departments.sql View File


kingbasesql/wflow_model_groups.sql → resources/kingbasesql/wflow_model_groups.sql View File


kingbasesql/wflow_model_historys.sql → resources/kingbasesql/wflow_model_historys.sql View File


kingbasesql/wflow_model_perms.sql → resources/kingbasesql/wflow_model_perms.sql View File


kingbasesql/wflow_models.sql → resources/kingbasesql/wflow_models.sql View File


kingbasesql/wflow_notifys.sql → resources/kingbasesql/wflow_notifys.sql View File


kingbasesql/wflow_roles.sql → resources/kingbasesql/wflow_roles.sql View File


kingbasesql/wflow_user_agents.sql → resources/kingbasesql/wflow_user_agents.sql View File


kingbasesql/wflow_user_departments.sql → resources/kingbasesql/wflow_user_departments.sql View File


kingbasesql/wflow_user_roles.sql → resources/kingbasesql/wflow_user_roles.sql View File


kingbasesql/wflow_users.sql → resources/kingbasesql/wflow_users.sql View File


kingbasesql/wflowother.sql → resources/kingbasesql/wflowother.sql View File


template/丽水市2023年数字化项目年度计划编辑表(空).xls → resources/template/丽水市2023年数字化项目年度计划编辑表(空).xls View File


template/丽水市2023年数字化项目年度计划编辑表.xls → resources/template/丽水市2023年数字化项目年度计划编辑表.xls View File


Loading…
Cancel
Save