提交代码

dev
胡锐 4 months ago
parent f471728554
commit 9aa7a535fd
  1. 19
      bweb/src/main/java/com/bweb/config/SysConfig.java
  2. 1
      bweb/src/main/resources/dev/config.properties
  3. 46
      bweb/src/main/resources/prod/application.yml
  4. 3
      bweb/src/main/resources/prod/config.properties
  5. 19
      cweb/src/main/java/com/cweb/config/SysConfig.java
  6. 2
      cweb/src/main/java/com/cweb/controller/order/OrderPayController.java
  7. 2
      cweb/src/main/resources/dev/config.properties
  8. 46
      cweb/src/main/resources/prod/application.yml
  9. 3
      cweb/src/main/resources/prod/config.properties
  10. 46
      schedule/src/main/resources/prod/application.yml
  11. 2
      service/src/main/java/com/hfkj/config/MessageConfig.java
  12. 3
      service/src/main/resources/prod/commonConfig.properties

@ -1,5 +1,6 @@
package com.bweb.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@ -7,25 +8,9 @@ import org.springframework.stereotype.Component;
@Component("sysConfig")
@ConfigurationProperties
@PropertySource("classpath:/config.properties")
@Data
public class SysConfig {
private String fileUrl;
private String cmsPath;
public String getFileUrl() {
return fileUrl;
}
public void setFileUrl(String fileUrl) {
this.fileUrl = fileUrl;
}
public String getCmsPath() {
return cmsPath;
}
public void setCmsPath(String cmsPath) {
this.cmsPath = cmsPath;
}
}

@ -1,2 +1 @@
fileUrl=/home/project/oil/filesystem
cmsPath=/home/project/oil/filesystem/cmsPath

@ -1,5 +1,5 @@
server:
port: 9302
port: 9802
servlet:
context-path: /brest
@ -9,9 +9,9 @@ debug: false
#datasource数据源设置
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/hsg?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
username: root
password: HF123456.
url: jdbc:mysql://192.168.0.63:21100/hai_oil?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: oil
password: HUfukeji123456!@#
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
filters: stat
@ -28,7 +28,7 @@ spring:
poolPreparedStatements: true
maxOpenPreparedStatements: 20
redis:
database: 0
database: 2
host: 127.0.0.1
port: 36379
password: HF123456.Redis
@ -44,9 +44,43 @@ spring:
serialization:
write-dates-as-timestamps: true
rocketmq:
name-server: 1.95.43.71:9876
producer:
access-key: huifukeji
secret-key: HF123456.
#必须指定group
group: default-group
consumer:
access-key: huifukeji
secret-key: HF123456.
jetcache:
statIntervalMinutes: 15
areaInCacheName: false
local:
default:
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
type: redis
host: 127.0.0.1
port: 36379
password: HF123456.Redis
database: 2
keyConvertor: fastjson
broadcastChannel: projectA
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
mybatis:
mapperLocations:
- classpath*:sqlmap*/*.xml
- classpath*:sqlmap*/*.xml
type-aliases-package:
org.springboot.sample.entity

@ -1,2 +1 @@
fileUrl=/home/project/hsg/filesystem
cmsPath=/home/project/hsg/filesystem/cmsPath
fileUrl=/home/project/oil/filesystem

@ -1,5 +1,6 @@
package com.cweb.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@ -7,25 +8,9 @@ import org.springframework.stereotype.Component;
@Component("sysConfig")
@ConfigurationProperties
@PropertySource("classpath:/config.properties")
@Data
public class SysConfig {
private String fileUrl;
private String cmsPath;
public String getFileUrl() {
return fileUrl;
}
public void setFileUrl(String fileUrl) {
this.fileUrl = fileUrl;
}
public String getCmsPath() {
return cmsPath;
}
public void setCmsPath(String cmsPath) {
this.cmsPath = cmsPath;
}
}

@ -89,6 +89,7 @@ public class OrderPayController {
if (orderSettle == null) {
orderSettle = new BsOrderSettle();
}
orderSettle.setMerNo(merPay.getMerNo());
orderSettle.setOrderNo(order.getOrderNo());
orderSettle.setSettleMerNo(merPay.getChannelMerNo());
orderSettle.setSettleMerKey(merPay.getChannelMerKey());
@ -143,6 +144,7 @@ public class OrderPayController {
if (orderSettle == null) {
orderSettle = new BsOrderSettle();
}
orderSettle.setMerNo(merPay.getMerNo());
orderSettle.setOrderNo(order.getOrderNo());
orderSettle.setSettleMerNo(merPay.getChannelMerNo());
orderSettle.setSettleMerKey(merPay.getChannelMerKey());

@ -1,2 +0,0 @@
fileUrl=/home/project/hsg/filesystem
cmsPath=/home/project/hsg/filesystem/cmsPath

@ -1,5 +1,5 @@
server:
port: 9301
port: 9801
servlet:
context-path: /crest
@ -9,9 +9,9 @@ debug: false
#datasource数据源设置
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/hsg?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
username: root
password: HF123456.
url: jdbc:mysql://192.168.0.63:21100/hai_oil?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: oil
password: HUfukeji123456!@#
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
filters: stat
@ -27,9 +27,8 @@ spring:
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
redis:
database: 0
database: 2
host: 127.0.0.1
port: 36379
password: HF123456.Redis
@ -44,6 +43,41 @@ spring:
jackson:
serialization:
write-dates-as-timestamps: true
rocketmq:
name-server: 1.95.43.71:9876
producer:
access-key: huifukeji
secret-key: HF123456.
#必须指定group
group: default-group
consumer:
access-key: huifukeji
secret-key: HF123456.
jetcache:
statIntervalMinutes: 15
areaInCacheName: false
local:
default:
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
type: redis
host: 127.0.0.1
port: 36379
password: HF123456.Redis
database: 2
keyConvertor: fastjson
broadcastChannel: projectA
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
mybatis:
mapperLocations:
- classpath*:sqlmap*/*.xml

@ -1,2 +1 @@
fileUrl=/home/project/hsg/filesystem
cmsPath=/home/project/hsg/filesystem/cmsPath
fileUrl=/home/project/oil/filesystem

@ -1,5 +1,5 @@
server:
port: 9303
port: 9803
servlet:
context-path: /schedule
@ -9,9 +9,9 @@ debug: false
#datasource数据源设置
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/hsg?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
username: root
password: HF123456.
url: jdbc:mysql://192.168.0.63:21100/hai_oil?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: oil
password: HUfukeji123456!@#
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
filters: stat
@ -27,9 +27,8 @@ spring:
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
redis:
database: 0
database: 2
host: 127.0.0.1
port: 36379
password: HF123456.Redis
@ -40,12 +39,45 @@ spring:
max-wait: -1
max-idle: 10
min-idle: 0
#配置日期返回至前台为时间戳
jackson:
serialization:
write-dates-as-timestamps: true
rocketmq:
name-server: 1.95.43.71:9876
producer:
access-key: huifukeji
secret-key: HF123456.
#必须指定group
group: default-group
consumer:
access-key: huifukeji
secret-key: HF123456.
jetcache:
statIntervalMinutes: 15
areaInCacheName: false
local:
default:
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
type: redis
host: 127.0.0.1
port: 36379
password: HF123456.Redis
database: 2
keyConvertor: fastjson
broadcastChannel: projectA
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
mybatis:
mapperLocations:
- classpath*:sqlmap*/*.xml

@ -210,7 +210,7 @@ public class MessageConfig {
mtSmsMessage.setMobiles(mobiles);
mtSmsMessage.setTemplateId(smsTemplateId);
mtSmsMessage.setTemplateParas(paramValues);
mtSmsMessage.setSignature("【普惠GO】");
mtSmsMessage.setSignature("【嗨加油】");
requestLists.add(mtSmsMessage);
map.put("account", accout);
map.put("password", passward);

@ -0,0 +1,3 @@
filesystem=/home/project/oil/filesystem
huiPayPreorderNotifyUrl=https://oil.dctpay.com/crest/notify/huipay
domainName=https://oil.dctpay.com
Loading…
Cancel
Save