码迷,mamicode.com
首页 > 其他好文 > 详细

141029 V7 异步通知测试,15分钟循环代码重构,同步更新payInfo测试,支付成功timer测试成功说明

时间:2014-10-29 23:35:29      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   java   for   sp   div   

支付成功之后的1分钟定时任务:测试成功。
2014-10-29 17:16:06,892 DEBUG [http-bio-8086-exec-1] org.springframework.web.servlet.DispatcherServlet.FrameworkServlet#processRequest [FrameworkServlet.java:991] Successfully completed request
2014-10-29 17:17:06,753 DEBUG [Timer-0]


# 12049292014112001   20141029171529  新的payId
# 12049292014112000   20141029170858  旧的payId

payInfo.getPayId()
payInfo.getPayTime()
payInfo.getPayTimeout()


//同步更新payInfo信息  141029
transPayMapper.updateTransPayInfo(orderNo, 3, transType, Long.valueOf(payInfo.getPayId()), Long.valueOf(payInfo.getPayTime()));

pay_id=49009692014112000,
pay_time=20141029193935,      490096920141

trans_id=49009692014112000,
trans_time=20141029193935     490096920141


首次更新的记录数为0:
2014-10-29 19:40:08,341 DEBUG [http-bio-8086-exec-7] org.logicalcobwebs.proxool.null.AbstractProxyStatement#trace [AbstractProxyStatement.java:185] UPDATE `trans_pay` SET trans_id=49009692014112000,trans_time=20141029193935  
        WHERE order_no=490096920141 AND pay_kind=1 AND trans_type=‘02‘;  (0 milliseconds)
2014-10-29 19:40:08,341 DEBUG [http-bio-8086-exec-7] com.autoyol.mapper.TransPayMapper.updateTransPayInfo.BaseJdbcLogger#debug [BaseJdbcLogger.java:139] <==    Updates: 0


同步更新payInfo成功:
2014-10-29 19:55:57,400 DEBUG [http-bio-8086-exec-7] org.logicalcobwebs.proxool.null.AbstractProxyStatement#trace [AbstractProxyStatement.java:185] UPDATE `trans_pay` SET trans_id=60548592014131001,trans_time=20141029195557  
        WHERE order_no=605485920141 AND pay_kind=3 AND trans_type=‘01‘;  (0 milliseconds)
2014-10-29 19:55:57,400 DEBUG [http-bio-8086-exec-7] com.autoyol.mapper.TransPayMapper.updateTransPayInfo.BaseJdbcLogger#debug [BaseJdbcLogger.java:139] <==    Updates: 1

1分钟的定时任务成功:
2014-10-29 20:08:06,975 DEBUG [http-bio-8086-exec-4] 
2014-10-29 20:09:06,936 DEBUG [Timer-1]


不点击“知道了”,点击手机返回按钮,仍然会调用该接口。 测试完成。
 Looking up handler method for path /trans/v7/payResult

 

141029 V7 异步通知测试,15分钟循环代码重构,同步更新payInfo测试,支付成功timer测试成功说明

标签:style   blog   http   io   color   java   for   sp   div   

原文地址:http://www.cnblogs.com/simpledev/p/4060603.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!