本文介绍: 2.6 全局替换Mapper中find_in_set(#{deptId}, ancestors)为cast(#{deptId} as varchar) = any(string_to_array(ancestors,‘,’))全局替换date_format(#{params.beginTime},‘%y%m%d’)替换成 to_timestamp(#{params.beginTime}, ‘YYYY-mm-dd’)全局替换,‘%y%m%d’)替换成,‘YYYY-mm-dd’), ‘YYYY-mm-dd’)
1、Nacos中修改yml的相应的参数
bds-job-dev.yml
bds-system-dev.yml
bds-gen-dev.yml
validationQuery: SELECT 1
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: postgres
password: postgres
2、代码修改
2.1 修改数据库连接依赖
org.postgresgl
postgresgl
9.4-1203-jdbc42
2.2 将SysMenuMapper.xml中的query
改为query
2.3 全局替换项目中使用的ifnull函数为coalesce
因为postgresql数据库没有ifnull()函数。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。