Commit ac690471 by sdif

用户端代码提交

parent 1068adbd
...@@ -49,7 +49,7 @@ spring: ...@@ -49,7 +49,7 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://db1.prd.jianghuxx.com:3317/pz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true url: jdbc:mysql://db1.prd.jianghuxx.com:3317/pz-stg?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root username: root
password: 4f9fa23639242790 password: 4f9fa23639242790
# 从库数据源 # 从库数据源
......
...@@ -880,7 +880,12 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -880,7 +880,12 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
// 一般订单开始服务时间 // 一般订单开始服务时间
String serveTime = orderService.getFinishTime(totalOrder.getId().intValue()); String serveTime = orderService.getFinishTime(totalOrder.getId().intValue());
if (StringUtils.isNotEmpty(serveTime)) { if (StringUtils.isNotEmpty(serveTime)) {
money = getMoney(serveTime, totalOrder.getPayMoney());// 计算退款金额 try {
money = getMoney(serveTime, totalOrder.getPayMoney());// 计算退款金额
} catch (Exception e) {
money = totalOrder.getPayMoney();
e.printStackTrace();
}
} else { } else {
money = totalOrder.getPayMoney(); money = totalOrder.getPayMoney();
} }
...@@ -1237,7 +1242,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService { ...@@ -1237,7 +1242,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
} }
public static void main(String[] args) { public static void main(String[] args) {
String serveTime = "2023-09-20 20:45:42"; String serveTime = "2023-09-21 16:45:42";
double payMoney = 0.5; double payMoney = 0.5;
double money = 0; double money = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment