|
@@ -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);
|
|
|
}
|
|
|
}
|
|
|
|