瀏覽代碼

修改plat_No 为merch_erp_order_sn

zx 7 年之前
父節點
當前提交
1b07da29ec
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/main/java/com/emato/cuspay/notify/CusMerchantNotice.java

+ 7 - 4
src/main/java/com/emato/cuspay/notify/CusMerchantNotice.java

@@ -95,10 +95,13 @@ public class CusMerchantNotice implements MerchantNotice{
             noticeList.add(noti);
         });
 
-        //TODO try catch
-        int result = merchNotiMapper.updateBatch(noticeList);
-        if (result < 0) {
-            logger.error("更新商户通知数据失败"+noticeList);
+        try {
+            int result = merchNotiMapper.updateBatch(noticeList);
+            if (result < 0) {
+                logger.error("更新商户通知数据失败" + noticeList);
+            }
+        } catch (Exception e) {
+            logger.error("更新商户通知数据失败", e);
         }
     }