Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
68f1c033
Commit
68f1c033
authored
Dec 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
fbc267e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
QiyeWxMsgTask.java
...n/java/com/egolm/shop/schedules/qiyewx/QiyeWxMsgTask.java
+6
-4
No files found.
src/main/java/com/egolm/shop/schedules/qiyewx/QiyeWxMsgTask.java
View file @
68f1c033
...
@@ -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
);
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment