1.导入pom
<!-- postgresql-->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.2</version>
</dependency>
2.修改application-druid.yml的相应的参数
org.postgresql.Driver
jdbc:postgresql://xxx:xxxx/xxx?currentSchema=dcs&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
3.在ScheduleConfig中添加
prop.put(“org.quartz.jobStore.driverDelegateClass”, “org.quartz.impl.jdbcjobstore.PostgreSQLDelegate”);
4.全局替换sysdate()至now()
5.全局替换ifnull()至coalesce()
6.修改find_in_set(#{deptId}, ancestors)至cast(#{deptId} as varchar) = any(string_to_array(ancestors,‘,’))
7.修改Mapper中 status = 0 为 status = ‘0’
8.修改分页插件,helperDialect为postgresql