Procházet zdrojové kódy

fix: 修改政策数据多次插入的问题

luofeiyun před 5 dny
rodič
revize
9f0e3b7875

+ 1 - 1
ship-module-trade/ship-module-trade-biz/src/main/java/com/yc/ship/module/trade/service/otc/impl/OtcTradeOrderServiceImpl.java

@@ -2967,7 +2967,7 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
                             auditType = 0;
                         }
                     }
-                    orderPolicyMapper.insertBatch(orderPolicyDOList);
+//                    orderPolicyMapper.insertBatch(orderPolicyDOList);
                 }
             }
             if (!CollUtil.isEmpty(createVO.getPolicyList()) &&isAudit) {

+ 3 - 3
ship-server-web/src/main/resources/application-sxtest.yaml

@@ -49,12 +49,12 @@ spring:
       primary: master
       datasource:
         master:
-          url: jdbc:mysql://10.3.10.50:43306/db_yc_ship_test?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
+          url: jdbc:mysql://10.3.10.50:43306/db_yc_ship_sx?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
           username: root
           password: W1ses0ft@zshl
         slave: # 模拟从库,可根据自己需要修改
           lazy: true # 开启懒加载,保证启动速度
-          url: jdbc:mysql://10.3.10.50:43306/db_yc_ship_test?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
+          url: jdbc:mysql://10.3.10.50:43306/db_yc_ship_sx?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
           username: root
           password: W1ses0ft@zshl
 
@@ -236,7 +236,7 @@ yudao:
     in: http://10.3.10.50:80/
   suffixCode: QS # 票号后缀
   notify: # 第三方通知接口
-    insurance: ${yudao.host.out}/${yudao.web.admin-url}/notify/insurance # 保单通知接口
+    insurance: https://tms2.hbsxly.com/ship-ota-api/notify/insurance # 保单通知接口
 justauth:
   enabled: true
   type: