2022072110_entityDataHandle.log 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. 10:16:47 [error]: 通用的实体数据存取接口异常:数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  2. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  3. and(
  4. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  5. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  6. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  7. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  8. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  9. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  10. ))
  11. )
  12. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  13. and(
  14. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  15. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  16. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  17. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  18. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  19. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  20. ))
  21. )
  22. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  23. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  24. 异常发生在文件:[/bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php]的[170]行 code[0] !
  25. 异常堆栈上下文:
  26. #0 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once()
  27. #1 {main}
  28. 数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  29. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  30. and(
  31. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  32. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  33. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  34. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  35. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  36. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  37. ))
  38. )
  39. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  40. and(
  41. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  42. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  43. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  44. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  45. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  46. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  47. ))
  48. )
  49. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  50. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  51. 异常发生在文件:[/bizroot/approot/klywebapi/base/mysql.php]的[104]行 code[0] !
  52. 异常堆栈上下文:
  53. #0 /bizroot/approot/klywebapi/base/mysql.php(156): PdoUtil->errhandle()
  54. #1 /bizroot/approot/klywebapi/base/mysql.php(171): PdoUtil->query2()
  55. #2 /bizroot/approot/klywebapi/base/mysql.php(20): PdoUtil->query2_withtrans()
  56. #3 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(586): pdo_query3()
  57. #4 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(290): bizbase_enrollPassHandleCore()
  58. #5 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2477): bizbase_paySuccess()
  59. #6 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1236): {closure}()
  60. #7 /bizroot/approot/klywebapi/base/base.php(355): {closure}()
  61. #8 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(24): filelock_handle()
  62. #9 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1238): biz_flkForRecruit()
  63. #10 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2551): bizbase_recruitWorkLock()
  64. #11 /bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php(82): bizbase_todoWorkEntityHandle()
  65. #12 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once('/bizroot/approo...')
  66. #13 {main}
  67. [上下文相关信息]:
  68. [WsAjaxPrj]=KLY
  69. [WsAjaxBiz]=Trader
  70. [WsAjaxAction]=entityDataHandle
  71. [USER]=nginxphp
  72. [HOME]=/home/nginxphp
  73. [HTTP_ACCEPT_ENCODING]=gzip, deflate, br
  74. [HTTP_REFERER]=https://servicewechat.com/wx8c230ea00ceb8676/devtools/page-frame.html
  75. [HTTP_SEC_FETCH_DEST]=empty
  76. [HTTP_SEC_FETCH_MODE]=cors
  77. [HTTP_SEC_FETCH_SITE]=cross-site
  78. [HTTP_ACCEPT]=*/*
  79. [HTTP_CONTENT_TYPE]=application/json
  80. [HTTP_USER_AGENT]=Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2206090 MicroMessenger/8.0.5 Language/zh_CN webview/
  81. [HTTP_CONTENT_LENGTH]=218
  82. [HTTP_CONNECTION]=keep-alive
  83. [HTTP_HOST]=api.kuailaiyou.top
  84. [REDIRECT_STATUS]=200
  85. [SERVER_NAME]=api.kuailaiyou.top
  86. [SERVER_PORT]=443
  87. [SERVER_ADDR]=172.18.217.149
  88. [REMOTE_PORT]=14293
  89. [REMOTE_ADDR]=180.212.71.213
  90. [SERVER_SOFTWARE]=nginx/1.20.1
  91. [GATEWAY_INTERFACE]=CGI/1.1
  92. [HTTPS]=on
  93. [REQUEST_SCHEME]=https
  94. [SERVER_PROTOCOL]=HTTP/1.1
  95. [DOCUMENT_ROOT]=/bizroot/approot/klywebapi
  96. [DOCUMENT_URI]=/ajaxEntryCenter.php
  97. [REQUEST_URI]=/ajaxEntryCenter.php?WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  98. [SCRIPT_NAME]=/ajaxEntryCenter.php
  99. [CONTENT_LENGTH]=218
  100. [CONTENT_TYPE]=application/json
  101. [REQUEST_METHOD]=POST
  102. [QUERY_STRING]=WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  103. [SCRIPT_FILENAME]=/bizroot/approot/klywebapi/ajaxEntryCenter.php
  104. [FCGI_ROLE]=RESPONDER
  105. [PHP_SELF]=/ajaxEntryCenter.php
  106. [REQUEST_TIME_FLOAT]=1658369756.7479
  107. [REQUEST_TIME]=1658369756
  108. 10:17:38 [error]: 通用的实体数据存取接口异常:数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  109. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  110. and(
  111. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  112. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  113. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  114. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  115. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  116. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  117. ))
  118. )
  119. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  120. and(
  121. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  122. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  123. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  124. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  125. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  126. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  127. ))
  128. )
  129. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  130. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  131. 异常发生在文件:[/bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php]的[170]行 code[0] !
  132. 异常堆栈上下文:
  133. #0 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once()
  134. #1 {main}
  135. 数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  136. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  137. and(
  138. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  139. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  140. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  141. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  142. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  143. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  144. ))
  145. )
  146. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  147. and(
  148. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  149. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  150. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  151. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  152. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  153. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  154. ))
  155. )
  156. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  157. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  158. 异常发生在文件:[/bizroot/approot/klywebapi/base/mysql.php]的[104]行 code[0] !
  159. 异常堆栈上下文:
  160. #0 /bizroot/approot/klywebapi/base/mysql.php(156): PdoUtil->errhandle()
  161. #1 /bizroot/approot/klywebapi/base/mysql.php(171): PdoUtil->query2()
  162. #2 /bizroot/approot/klywebapi/base/mysql.php(20): PdoUtil->query2_withtrans()
  163. #3 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(586): pdo_query3()
  164. #4 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(290): bizbase_enrollPassHandleCore()
  165. #5 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2477): bizbase_paySuccess()
  166. #6 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1236): {closure}()
  167. #7 /bizroot/approot/klywebapi/base/base.php(355): {closure}()
  168. #8 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(24): filelock_handle()
  169. #9 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1238): biz_flkForRecruit()
  170. #10 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2551): bizbase_recruitWorkLock()
  171. #11 /bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php(82): bizbase_todoWorkEntityHandle()
  172. #12 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once('/bizroot/approo...')
  173. #13 {main}
  174. [上下文相关信息]:
  175. [WsAjaxPrj]=KLY
  176. [WsAjaxBiz]=Trader
  177. [WsAjaxAction]=entityDataHandle
  178. [USER]=nginxphp
  179. [HOME]=/home/nginxphp
  180. [HTTP_ACCEPT_ENCODING]=gzip, deflate, br
  181. [HTTP_REFERER]=https://servicewechat.com/wx8c230ea00ceb8676/devtools/page-frame.html
  182. [HTTP_SEC_FETCH_DEST]=empty
  183. [HTTP_SEC_FETCH_MODE]=cors
  184. [HTTP_SEC_FETCH_SITE]=cross-site
  185. [HTTP_ACCEPT]=*/*
  186. [HTTP_CONTENT_TYPE]=application/json
  187. [HTTP_USER_AGENT]=Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2206090 MicroMessenger/8.0.5 Language/zh_CN webview/
  188. [HTTP_CONTENT_LENGTH]=218
  189. [HTTP_CONNECTION]=keep-alive
  190. [HTTP_HOST]=api.kuailaiyou.top
  191. [REDIRECT_STATUS]=200
  192. [SERVER_NAME]=api.kuailaiyou.top
  193. [SERVER_PORT]=443
  194. [SERVER_ADDR]=172.18.217.149
  195. [REMOTE_PORT]=14319
  196. [REMOTE_ADDR]=180.212.71.213
  197. [SERVER_SOFTWARE]=nginx/1.20.1
  198. [GATEWAY_INTERFACE]=CGI/1.1
  199. [HTTPS]=on
  200. [REQUEST_SCHEME]=https
  201. [SERVER_PROTOCOL]=HTTP/1.1
  202. [DOCUMENT_ROOT]=/bizroot/approot/klywebapi
  203. [DOCUMENT_URI]=/ajaxEntryCenter.php
  204. [REQUEST_URI]=/ajaxEntryCenter.php?WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  205. [SCRIPT_NAME]=/ajaxEntryCenter.php
  206. [CONTENT_LENGTH]=218
  207. [CONTENT_TYPE]=application/json
  208. [REQUEST_METHOD]=POST
  209. [QUERY_STRING]=WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  210. [SCRIPT_FILENAME]=/bizroot/approot/klywebapi/ajaxEntryCenter.php
  211. [FCGI_ROLE]=RESPONDER
  212. [PHP_SELF]=/ajaxEntryCenter.php
  213. [REQUEST_TIME_FLOAT]=1658369779.0509
  214. [REQUEST_TIME]=1658369779
  215. 10:18:29 [error]: 通用的实体数据存取接口异常:数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  216. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  217. and(
  218. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  219. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  220. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  221. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  222. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  223. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  224. ))
  225. )
  226. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  227. and(
  228. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  229. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  230. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  231. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  232. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  233. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  234. ))
  235. )
  236. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  237. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  238. 异常发生在文件:[/bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php]的[170]行 code[0] !
  239. 异常堆栈上下文:
  240. #0 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once()
  241. #1 {main}
  242. 数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  243. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  244. and(
  245. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  246. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  247. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  248. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  249. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  250. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  251. ))
  252. )
  253. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  254. and(
  255. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  256. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  257. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  258. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  259. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  260. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  261. ))
  262. )
  263. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  264. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  265. 异常发生在文件:[/bizroot/approot/klywebapi/base/mysql.php]的[104]行 code[0] !
  266. 异常堆栈上下文:
  267. #0 /bizroot/approot/klywebapi/base/mysql.php(156): PdoUtil->errhandle()
  268. #1 /bizroot/approot/klywebapi/base/mysql.php(171): PdoUtil->query2()
  269. #2 /bizroot/approot/klywebapi/base/mysql.php(20): PdoUtil->query2_withtrans()
  270. #3 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(586): pdo_query3()
  271. #4 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(290): bizbase_enrollPassHandleCore()
  272. #5 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2477): bizbase_paySuccess()
  273. #6 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1236): {closure}()
  274. #7 /bizroot/approot/klywebapi/base/base.php(355): {closure}()
  275. #8 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(24): filelock_handle()
  276. #9 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1238): biz_flkForRecruit()
  277. #10 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2551): bizbase_recruitWorkLock()
  278. #11 /bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php(82): bizbase_todoWorkEntityHandle()
  279. #12 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once('/bizroot/approo...')
  280. #13 {main}
  281. [上下文相关信息]:
  282. [WsAjaxPrj]=KLY
  283. [WsAjaxBiz]=Trader
  284. [WsAjaxAction]=entityDataHandle
  285. [USER]=nginxphp
  286. [HOME]=/home/nginxphp
  287. [HTTP_ACCEPT_ENCODING]=gzip, deflate, br
  288. [HTTP_REFERER]=https://servicewechat.com/wx8c230ea00ceb8676/devtools/page-frame.html
  289. [HTTP_SEC_FETCH_DEST]=empty
  290. [HTTP_SEC_FETCH_MODE]=cors
  291. [HTTP_SEC_FETCH_SITE]=cross-site
  292. [HTTP_ACCEPT]=*/*
  293. [HTTP_CONTENT_TYPE]=application/json
  294. [HTTP_USER_AGENT]=Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2206090 MicroMessenger/8.0.5 Language/zh_CN webview/
  295. [HTTP_CONTENT_LENGTH]=218
  296. [HTTP_CONNECTION]=keep-alive
  297. [HTTP_HOST]=api.kuailaiyou.top
  298. [REDIRECT_STATUS]=200
  299. [SERVER_NAME]=api.kuailaiyou.top
  300. [SERVER_PORT]=443
  301. [SERVER_ADDR]=172.18.217.149
  302. [REMOTE_PORT]=15037
  303. [REMOTE_ADDR]=180.212.71.213
  304. [SERVER_SOFTWARE]=nginx/1.20.1
  305. [GATEWAY_INTERFACE]=CGI/1.1
  306. [HTTPS]=on
  307. [REQUEST_SCHEME]=https
  308. [SERVER_PROTOCOL]=HTTP/1.1
  309. [DOCUMENT_ROOT]=/bizroot/approot/klywebapi
  310. [DOCUMENT_URI]=/ajaxEntryCenter.php
  311. [REQUEST_URI]=/ajaxEntryCenter.php?WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  312. [SCRIPT_NAME]=/ajaxEntryCenter.php
  313. [CONTENT_LENGTH]=218
  314. [CONTENT_TYPE]=application/json
  315. [REQUEST_METHOD]=POST
  316. [QUERY_STRING]=WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  317. [SCRIPT_FILENAME]=/bizroot/approot/klywebapi/ajaxEntryCenter.php
  318. [FCGI_ROLE]=RESPONDER
  319. [PHP_SELF]=/ajaxEntryCenter.php
  320. [REQUEST_TIME_FLOAT]=1658369855.0482
  321. [REQUEST_TIME]=1658369855
  322. 10:21:00 [error]: 通用的实体数据存取接口异常:数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  323. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  324. and(
  325. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  326. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  327. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  328. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  329. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  330. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  331. ))
  332. )
  333. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  334. and(
  335. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  336. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  337. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  338. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  339. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  340. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  341. ))
  342. )
  343. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  344. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  345. 异常发生在文件:[/bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php]的[170]行 code[0] !
  346. 异常堆栈上下文:
  347. #0 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once()
  348. #1 {main}
  349. 数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  350. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  351. and(
  352. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  353. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  354. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  355. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  356. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  357. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  358. ))
  359. )
  360. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  361. and(
  362. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  363. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  364. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  365. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  366. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  367. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  368. ))
  369. )
  370. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  371. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  372. 异常发生在文件:[/bizroot/approot/klywebapi/base/mysql.php]的[104]行 code[0] !
  373. 异常堆栈上下文:
  374. #0 /bizroot/approot/klywebapi/base/mysql.php(156): PdoUtil->errhandle()
  375. #1 /bizroot/approot/klywebapi/base/mysql.php(171): PdoUtil->query2()
  376. #2 /bizroot/approot/klywebapi/base/mysql.php(20): PdoUtil->query2_withtrans()
  377. #3 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(586): pdo_query3()
  378. #4 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(290): bizbase_enrollPassHandleCore()
  379. #5 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2477): bizbase_paySuccess()
  380. #6 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1236): {closure}()
  381. #7 /bizroot/approot/klywebapi/base/base.php(355): {closure}()
  382. #8 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(24): filelock_handle()
  383. #9 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1238): biz_flkForRecruit()
  384. #10 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2551): bizbase_recruitWorkLock()
  385. #11 /bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php(82): bizbase_todoWorkEntityHandle()
  386. #12 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once('/bizroot/approo...')
  387. #13 {main}
  388. [上下文相关信息]:
  389. [WsAjaxPrj]=KLY
  390. [WsAjaxBiz]=Trader
  391. [WsAjaxAction]=entityDataHandle
  392. [USER]=nginxphp
  393. [HOME]=/home/nginxphp
  394. [HTTP_ACCEPT_ENCODING]=gzip, deflate, br
  395. [HTTP_REFERER]=https://servicewechat.com/wx8c230ea00ceb8676/devtools/page-frame.html
  396. [HTTP_SEC_FETCH_DEST]=empty
  397. [HTTP_SEC_FETCH_MODE]=cors
  398. [HTTP_SEC_FETCH_SITE]=cross-site
  399. [HTTP_ACCEPT]=*/*
  400. [HTTP_CONTENT_TYPE]=application/json
  401. [HTTP_USER_AGENT]=Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2206090 MicroMessenger/8.0.5 Language/zh_CN webview/
  402. [HTTP_CONTENT_LENGTH]=218
  403. [HTTP_CONNECTION]=keep-alive
  404. [HTTP_HOST]=api.kuailaiyou.top
  405. [REDIRECT_STATUS]=200
  406. [SERVER_NAME]=api.kuailaiyou.top
  407. [SERVER_PORT]=443
  408. [SERVER_ADDR]=172.18.217.149
  409. [REMOTE_PORT]=15373
  410. [REMOTE_ADDR]=180.212.71.213
  411. [SERVER_SOFTWARE]=nginx/1.20.1
  412. [GATEWAY_INTERFACE]=CGI/1.1
  413. [HTTPS]=on
  414. [REQUEST_SCHEME]=https
  415. [SERVER_PROTOCOL]=HTTP/1.1
  416. [DOCUMENT_ROOT]=/bizroot/approot/klywebapi
  417. [DOCUMENT_URI]=/ajaxEntryCenter.php
  418. [REQUEST_URI]=/ajaxEntryCenter.php?WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  419. [SCRIPT_NAME]=/ajaxEntryCenter.php
  420. [CONTENT_LENGTH]=218
  421. [CONTENT_TYPE]=application/json
  422. [REQUEST_METHOD]=POST
  423. [QUERY_STRING]=WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  424. [SCRIPT_FILENAME]=/bizroot/approot/klywebapi/ajaxEntryCenter.php
  425. [FCGI_ROLE]=RESPONDER
  426. [PHP_SELF]=/ajaxEntryCenter.php
  427. [REQUEST_TIME_FLOAT]=1658370009.2446
  428. [REQUEST_TIME]=1658370009
  429. 10:23:33 [error]: 通用的实体数据存取接口异常:数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  430. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  431. and(
  432. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  433. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  434. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  435. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  436. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  437. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  438. ))
  439. )
  440. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  441. and(
  442. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  443. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  444. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  445. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  446. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  447. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  448. ))
  449. )
  450. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  451. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  452. 异常发生在文件:[/bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php]的[170]行 code[0] !
  453. 异常堆栈上下文:
  454. #0 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once()
  455. #1 {main}
  456. 数据库执行异常:Lock wait timeout exceeded; try restarting transaction
  457. sql语句:SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;start transaction;set @handle_id=0; select @handle_id:=id from biz_trader_account where biz_traderid=:biz_traderid and `type`=1 and `biz_catalog`=8 and `biz_id`=:bizid and `status`=1 limit 1; insert into biz_trader_account ( `biz_traderid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select :biz_traderid , :nowtime , 1 , :feetotal, 1, 8 , :bizid, :accremark2 from dual where ifnull(@handle_id,0)=0; update biz_todowork set updatetime=:nowtime,`status`=2 ,remark=concat(:bizremark,ifnull(remark,'')) where id=:bizid; insert into biz_worker_account ( `biz_workerid`, `createtime`,`type`, `money`, `status`, `biz_catalog`,`biz_id`, remark ) select tdwk.biz_workerid , :nowtime , 0 , tdwk.enroll_premoney, 1, 5 , tdwk.id, :cancel_remark from biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  458. and(
  459. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  460. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  461. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  462. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  463. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  464. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  465. ))
  466. )
  467. ; update biz_todowork tdwk left join biz_trader_recruit btr on btr.id=tdwk.biz_recruitid set tdwk.updatetime=:nowtime, tdwk.`status`=-4, tdwk.`teamstatus`=-4 , tdwk.remark=concat(:cancel_remark,ifnull(tdwk.remark,'')), tdwk.teamremark=concat(:cancel_remark,ifnull(tdwk.teamremark,'')) where tdwk.id<>:bizid and tdwk.biz_workerid=:biz_workerid and tdwk.`status`=1
  468. and(
  469. (tdwk.todo_begindate>=:plandoDateStart and tdwk.todo_begindate<=:plandoDateFinish)
  470. or(tdwk.todo_begindate>=:workDateStart and tdwk.todo_begindate<=:workDateFinish)
  471. or( btr.settle_catalog<=0 and btr.finish_datetime>btr.begin_datetime and (
  472. (btr.begin_datetime>=:workDateStart and btr.begin_datetime<=:workDateFinish)
  473. or(btr.begin_datetime<=:workDateStart and btr.finish_datetime>=:workDateFinish)
  474. or(btr.finish_datetime>=:workDateStart and btr.finish_datetime<=:workDateFinish)
  475. ))
  476. )
  477. ; insert into biz_message_queue( createtime, biz_catalog, biz_id) select :nowtime, 0, :bizid from dual where 1=1;commit;
  478. ["HY000",1205,"Lock wait timeout exceeded; try restarting transaction"]
  479. 异常发生在文件:[/bizroot/approot/klywebapi/base/mysql.php]的[104]行 code[0] !
  480. 异常堆栈上下文:
  481. #0 /bizroot/approot/klywebapi/base/mysql.php(156): PdoUtil->errhandle()
  482. #1 /bizroot/approot/klywebapi/base/mysql.php(171): PdoUtil->query2()
  483. #2 /bizroot/approot/klywebapi/base/mysql.php(20): PdoUtil->query2_withtrans()
  484. #3 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(586): pdo_query3()
  485. #4 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(290): bizbase_enrollPassHandleCore()
  486. #5 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2477): bizbase_paySuccess()
  487. #6 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1236): {closure}()
  488. #7 /bizroot/approot/klywebapi/base/base.php(355): {closure}()
  489. #8 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/common.php(24): filelock_handle()
  490. #9 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(1238): biz_flkForRecruit()
  491. #10 /bizroot/approot/klywebapi/prjcenter/prjKLY/base/AboutActivity.php(2551): bizbase_recruitWorkLock()
  492. #11 /bizroot/approot/klywebapi/prjcenter/prjKLY/bizcenter/Trader/entityDataHandle.php(82): bizbase_todoWorkEntityHandle()
  493. #12 /bizroot/approot/klywebapi/ajaxEntryCenter.php(65): include_once('/bizroot/approo...')
  494. #13 {main}
  495. [上下文相关信息]:
  496. [WsAjaxPrj]=KLY
  497. [WsAjaxBiz]=Trader
  498. [WsAjaxAction]=entityDataHandle
  499. [USER]=nginxphp
  500. [HOME]=/home/nginxphp
  501. [HTTP_ACCEPT_ENCODING]=gzip, deflate, br
  502. [HTTP_REFERER]=https://servicewechat.com/wx8c230ea00ceb8676/devtools/page-frame.html
  503. [HTTP_SEC_FETCH_DEST]=empty
  504. [HTTP_SEC_FETCH_MODE]=cors
  505. [HTTP_SEC_FETCH_SITE]=cross-site
  506. [HTTP_ACCEPT]=*/*
  507. [HTTP_CONTENT_TYPE]=application/json
  508. [HTTP_USER_AGENT]=Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2206090 MicroMessenger/8.0.5 Language/zh_CN webview/
  509. [HTTP_CONTENT_LENGTH]=218
  510. [HTTP_CONNECTION]=keep-alive
  511. [HTTP_HOST]=api.kuailaiyou.top
  512. [REDIRECT_STATUS]=200
  513. [SERVER_NAME]=api.kuailaiyou.top
  514. [SERVER_PORT]=443
  515. [SERVER_ADDR]=172.18.217.149
  516. [REMOTE_PORT]=17175
  517. [REMOTE_ADDR]=180.212.71.213
  518. [SERVER_SOFTWARE]=nginx/1.20.1
  519. [GATEWAY_INTERFACE]=CGI/1.1
  520. [HTTPS]=on
  521. [REQUEST_SCHEME]=https
  522. [SERVER_PROTOCOL]=HTTP/1.1
  523. [DOCUMENT_ROOT]=/bizroot/approot/klywebapi
  524. [DOCUMENT_URI]=/ajaxEntryCenter.php
  525. [REQUEST_URI]=/ajaxEntryCenter.php?WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  526. [SCRIPT_NAME]=/ajaxEntryCenter.php
  527. [CONTENT_LENGTH]=218
  528. [CONTENT_TYPE]=application/json
  529. [REQUEST_METHOD]=POST
  530. [QUERY_STRING]=WsAjaxPrj=KLY&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle
  531. [SCRIPT_FILENAME]=/bizroot/approot/klywebapi/ajaxEntryCenter.php
  532. [FCGI_ROLE]=RESPONDER
  533. [PHP_SELF]=/ajaxEntryCenter.php
  534. [REQUEST_TIME_FLOAT]=1658370162.6879
  535. [REQUEST_TIME]=1658370162