Merge branch 'hotfix072901' into test6.9.9
Showing
1 changed file
with
12 additions
and
1 deletions
@@ -176,7 +176,18 @@ public class QuickDeliverGoodsService { | @@ -176,7 +176,18 @@ public class QuickDeliverGoodsService { | ||
176 | uid, depositCode, skup, ex); | 176 | uid, depositCode, skup, ex); |
177 | } | 177 | } |
178 | try { | 178 | try { |
179 | - depositService.changeSaleStatusOn(uid, depositCode, skup); | 179 | + boolean success = depositService.changeSaleStatusOn(uid, depositCode, skup); |
180 | + if (success) { | ||
181 | + logger.info("in publish quick deliver prd , change deposit storage success, uid {} depositCode {} skup {}", | ||
182 | + uid, depositCode, skup); | ||
183 | + } else { | ||
184 | + String content = "用户" + uid + "发布闪购商品" + depositCode + "上架同步失败"; | ||
185 | + SmsAlarmEvent smsAlarmEvent = new SmsAlarmEvent("sellerOrder.create", "syncQuickDeliverPrd", content); | ||
186 | + EventBusPublisher.publishEvent(smsAlarmEvent); | ||
187 | + logger.warn("in publish quick deliver prd , change deposit storage fail, uid {} depositCode {} skup {}", | ||
188 | + uid, depositCode, skup); | ||
189 | + } | ||
190 | + | ||
180 | }catch (Exception ex){ | 191 | }catch (Exception ex){ |
181 | logger.warn("in publish quick deliver prd , change deposit storage fail, uid {} depositCode {} skup {}", | 192 | logger.warn("in publish quick deliver prd , change deposit storage fail, uid {} depositCode {} skup {}", |
182 | uid, depositCode, skup, ex); | 193 | uid, depositCode, skup, ex); |
-
Please register or login to post a comment