Commit 68f1c033 authored by Quxl's avatar Quxl

x

parent fbc267e0
...@@ -20,8 +20,6 @@ import com.egolm.shop.api.service.QiyeWxService.WxMessage; ...@@ -20,8 +20,6 @@ import com.egolm.shop.api.service.QiyeWxService.WxMessage;
import com.egolm.shop.api.service.QiyeWxService.WxMessage.MiniprogramNotice; import com.egolm.shop.api.service.QiyeWxService.WxMessage.MiniprogramNotice;
import com.egolm.shop.bean.TSalesOrder; import com.egolm.shop.bean.TSalesOrder;
import io.netty.util.internal.ThrowableUtil;
@Component @Component
public class QiyeWxMsgTask { public class QiyeWxMsgTask {
...@@ -41,11 +39,15 @@ public class QiyeWxMsgTask { ...@@ -41,11 +39,15 @@ public class QiyeWxMsgTask {
for(Map<String, Object> subOrderMap : subOrderList) { for(Map<String, Object> subOrderMap : subOrderList) {
Map<String, Object> msg = mm.get(subOrderMap.get("sSubOrderID")); Map<String, Object> msg = mm.get(subOrderMap.get("sSubOrderID"));
Number msgId = (Number)msg.get("nId"); Number msgId = (Number)msg.get("nId");
String errMsg = "";
try { try {
this.sendMessage(subOrderMap); this.sendMessage(subOrderMap);
jdbcTemplate.executeUpdate("update tSMS set ");
} catch (Exception e) { } catch (Exception e) {
jdbcTemplate.update("update tSMS set sSendErrorLog = ?, nRetry = isnull(nRetry,0) + 1 where nID = ?", ThrowableUtil.stackTraceToString(e), msgId.intValue()); e.printStackTrace();
errMsg = e.getMessage();
} finally {
jdbcTemplate.executeMutil("exec up_UpdateSMS ?, ?", msgId, errMsg);
} }
} }
} }
......
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