From bc6ea2993f0d03f4141317e2fa17137be5459050 Mon Sep 17 00:00:00 2001 From: qiaowei Date: Sun, 28 Apr 2019 15:02:30 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../framework/service/impl/SystemUtilServiceImpl.java | 7 ++++++- src/main/resources/db/migration/V1.1__init_paytype.sql | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/db/migration/V1.1__init_paytype.sql diff --git a/src/main/java/com/supwisdom/dlpay/framework/service/impl/SystemUtilServiceImpl.java b/src/main/java/com/supwisdom/dlpay/framework/service/impl/SystemUtilServiceImpl.java index 53ebf4cb..ec021e95 100644 --- a/src/main/java/com/supwisdom/dlpay/framework/service/impl/SystemUtilServiceImpl.java +++ b/src/main/java/com/supwisdom/dlpay/framework/service/impl/SystemUtilServiceImpl.java @@ -132,7 +132,12 @@ public class SystemUtilServiceImpl implements SystemUtilService { @Override public String getRefno() { - return getOracleRefno(); + switch (databaseConfig.getPlatform()) { + case "postgresql": + return taskLockDao.getPgRefno(); + default: + return taskLockDao.getOracleRefno(); + } } @Override diff --git a/src/main/resources/db/migration/V1.1__init_paytype.sql b/src/main/resources/db/migration/V1.1__init_paytype.sql new file mode 100644 index 00000000..0dfd06c1 --- /dev/null +++ b/src/main/resources/db/migration/V1.1__init_paytype.sql @@ -0,0 +1,7 @@ +-- 支付方式 +Insert into TB_PAYTYPE (PAYTYPE,DPS_ENABLE,ENABLE,REVERSE_ENABLE) values ('yktpay','no','yes','yes'); + +Insert into TB_PAYTYPE_CONFIG (PAYTYPE,CONFIGID,CONFIG_NAME,CONFIG_VALUE) values ('yktpay','appid',null,'100005'); +Insert into TB_PAYTYPE_CONFIG (PAYTYPE,CONFIGID,CONFIG_NAME,CONFIG_VALUE) values ('yktpay','appkey',null,'adc4ac6822fd462780f878b86cb94688'); +Insert into TB_PAYTYPE_CONFIG (PAYTYPE,CONFIGID,CONFIG_NAME,CONFIG_VALUE) values ('yktpay','orderurl',null,'http://172.28.201.101:9116/epayapi/services/thirdparty/common/pay'); +Insert into TB_PAYTYPE_CONFIG (PAYTYPE,CONFIGID,CONFIG_NAME,CONFIG_VALUE) values ('yktpay','reverseurl',null,'http://172.28.201.101:9116/epayapi/services/thirdparty/common/payreverse'); -- 2.17.1