Merge branch 'wq1' of SH-Arbitrate/Mediation-Backend into dev
This commit was merged in pull request #98.
This commit is contained in:
@@ -6,7 +6,8 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://121.40.189.20:3306/mediation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
|
# url: jdbc:mysql://121.40.189.20:3306/mediation_system?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
url: jdbc:mysql://121.40.189.20:3306/mediation_system_prod?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: YMzc157#
|
password: YMzc157#
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ ruoyi:
|
|||||||
|
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
server:
|
server:
|
||||||
# 服务器的HTTP端口,默认为8080
|
# 测试环境6001,开发环境7001
|
||||||
port: 6001
|
port: 7001
|
||||||
servlet:
|
servlet:
|
||||||
# 应用的访问路径
|
# 应用的访问路径
|
||||||
context-path: /
|
context-path: /
|
||||||
@@ -131,8 +131,8 @@ mybatis:
|
|||||||
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
||||||
# 加载全局的配置文件
|
# 加载全局的配置文件
|
||||||
configLocation: classpath:mybatis/mybatis-config.xml
|
configLocation: classpath:mybatis/mybatis-config.xml
|
||||||
configuration:
|
# configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
# PageHelper分页插件
|
# PageHelper分页插件
|
||||||
pagehelper:
|
pagehelper:
|
||||||
helperDialect: mysql
|
helperDialect: mysql
|
||||||
@@ -188,6 +188,9 @@ imConfig:
|
|||||||
organizeConfig:
|
organizeConfig:
|
||||||
# creditCode
|
# creditCode
|
||||||
creditCode: 910000058386410047
|
creditCode: 910000058386410047
|
||||||
|
# 引入仲裁系统url配置
|
||||||
|
arbitrateConfig:
|
||||||
|
url: http://121.40.189.20:9001/callArbitrateCaseApplication/generateCaseApplication
|
||||||
#jodconverter:
|
#jodconverter:
|
||||||
# local:
|
# local:
|
||||||
# host: 121.40.189.20
|
# host: 121.40.189.20
|
||||||
|
|||||||
+5
-2
@@ -88,6 +88,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|||||||
*/
|
*/
|
||||||
@Value("${organizeConfig.creditCode}")
|
@Value("${organizeConfig.creditCode}")
|
||||||
private long creditCode;
|
private long creditCode;
|
||||||
|
|
||||||
|
@Value("${arbitrateConfig.url}")
|
||||||
|
private String arbitrateUrl;
|
||||||
@Autowired
|
@Autowired
|
||||||
MsCaseApplicationService caseApplicationService;
|
MsCaseApplicationService caseApplicationService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -1334,7 +1337,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|||||||
sendContent = "尊敬的用户,您的" + application.getCaseNum() + "的案件,线上调解日期已确定为"+application.getHearDate()+",请知晓,如非本人操作,请忽略本短信。";
|
sendContent = "尊敬的用户,您的" + application.getCaseNum() + "的案件,线上调解日期已确定为"+application.getHearDate()+",请知晓,如非本人操作,请忽略本短信。";
|
||||||
}else {
|
}else {
|
||||||
// 线下调解 2077966 尊敬的用户,您的{1}案件,线下调解日期已确定为{2},请知晓,如非本人操作,请忽略本短信。
|
// 线下调解 2077966 尊敬的用户,您的{1}案件,线下调解日期已确定为{2},请知晓,如非本人操作,请忽略本短信。
|
||||||
smsFlag = SmsUtils.sendSms(application.getId(), "2075447", phone, new String[]{application.getCaseNum(),application.getHearDate()});
|
smsFlag = SmsUtils.sendSms(application.getId(), "2077966", phone, new String[]{application.getCaseNum(),application.getHearDate()});
|
||||||
sendContent = "尊敬的用户,您的" + application.getCaseNum() + "的案件,线下调解日期已确定为"+application.getHearDate()+",请知晓,如非本人操作,请忽略本短信。";
|
sendContent = "尊敬的用户,您的" + application.getCaseNum() + "的案件,线下调解日期已确定为"+application.getHearDate()+",请知晓,如非本人操作,请忽略本短信。";
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1841,7 +1844,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|||||||
String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
|
String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
|
||||||
long timestamp = System.currentTimeMillis();
|
long timestamp = System.currentTimeMillis();
|
||||||
String signStr = SignCheckUtils.getSign(paramsbody, accessSec, timestamp);
|
String signStr = SignCheckUtils.getSign(paramsbody, accessSec, timestamp);
|
||||||
String urlstr = "http://localhost:8001/callArbitrateCaseApplication/generateCaseApplication";
|
String urlstr = arbitrateUrl;
|
||||||
HttpResponse httpResponse = (HttpResponse) HttpRequest.post(urlstr)
|
HttpResponse httpResponse = (HttpResponse) HttpRequest.post(urlstr)
|
||||||
.header("timestampstr", String.valueOf(timestamp))
|
.header("timestampstr", String.valueOf(timestamp))
|
||||||
.header("signstr", signStr)
|
.header("signstr", signStr)
|
||||||
|
|||||||
Reference in New Issue
Block a user