sys-error.2024-02-27.log 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. 09:13:36.468 [http-nio-8080-exec-10] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - nested exception is org.apache.ibatis.exceptions.PersistenceException:
  2. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  3. select
  4. t.base_semester_id,
  5. t.class_id,
  6. t1.textbook_id,
  7. sum(t2.stock) as num,
  8. sum(t1.issue_number) as claimNum
  9. from wf_textbook_claim t
  10. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  11. left join textbook t2 on t2.id = t1.textbook_id
  12. where claim_type = 'claim_student'
  13. amd t.base_semester_id = ?
  14. group by t.base_semester_id, t.class_id, t1.textbook_id
  15. )
  16. select
  17. t.base_semester_id,
  18. t3.name as baseSemesterIdCn,
  19. t.class_id,
  20. t4.name as classIdCn,
  21. t5.name as headTeacherName,
  22. t6.name as classRoomName,
  23. t.textbook_id,
  24. t2.name as textbookTypeCn,
  25. t1.book_name,
  26. t1.editor_in_chief,
  27. t1.publishing_house,
  28. t1.issn,
  29. t1.appraisal_price,
  30. t1.subtotal,
  31. t.num,
  32. t.claimNum
  33. from textbook_class t
  34. left join textbook t1 on t1.id = t.textbook_id
  35. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  36. left join base_semester t3 on t3.id = t.base_semester_id
  37. left join base_class t4 on t4.id = t.class_id
  38. left join xjr_user t5 on t5.id = t4.teacher_id
  39. left join base_classroom t6 on t6.id = t4.classroom_id
  40. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  41. select
  42. t.base_semester_id,
  43. t.class_id,
  44. t1.textbook_id,
  45. sum(t2.stock) as num,
  46. sum(t1.issue_number) as claimNum
  47. from wf_textbook_claim t
  48. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  49. left join textbook t2 on t2.id = t1.textbook_id
  50. where claim_type = 'claim_student'
  51. amd t.base_semester_id = ?
  52. group by t.base_semester_id, t.class_id, t1.textbook_id
  53. )
  54. select
  55. t.base_semester_id,
  56. t3.name as baseSemesterIdCn,
  57. t.class_id,
  58. t4.name as classIdCn,
  59. t5.name as headTeacherName,
  60. t6.name as classRoomName,
  61. t.textbook_id,
  62. t2.name as textbookTypeCn,
  63. t1.book_name,
  64. t1.editor_in_chief,
  65. t1.publishing_house,
  66. t1.issn,
  67. t1.appraisal_price,
  68. t1.subtotal,
  69. t.num,
  70. t.claimNum
  71. from textbook_class t
  72. left join textbook t1 on t1.id = t.textbook_id
  73. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  74. left join base_semester t3 on t3.id = t.base_semester_id
  75. left join base_class t4 on t4.id = t.class_id
  76. left join xjr_user t5 on t5.id = t4.teacher_id
  77. left join base_classroom t6 on t6.id = t4.classroom_id
  78. org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
  79. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  80. select
  81. t.base_semester_id,
  82. t.class_id,
  83. t1.textbook_id,
  84. sum(t2.stock) as num,
  85. sum(t1.issue_number) as claimNum
  86. from wf_textbook_claim t
  87. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  88. left join textbook t2 on t2.id = t1.textbook_id
  89. where claim_type = 'claim_student'
  90. amd t.base_semester_id = ?
  91. group by t.base_semester_id, t.class_id, t1.textbook_id
  92. )
  93. select
  94. t.base_semester_id,
  95. t3.name as baseSemesterIdCn,
  96. t.class_id,
  97. t4.name as classIdCn,
  98. t5.name as headTeacherName,
  99. t6.name as classRoomName,
  100. t.textbook_id,
  101. t2.name as textbookTypeCn,
  102. t1.book_name,
  103. t1.editor_in_chief,
  104. t1.publishing_house,
  105. t1.issn,
  106. t1.appraisal_price,
  107. t1.subtotal,
  108. t.num,
  109. t.claimNum
  110. from textbook_class t
  111. left join textbook t1 on t1.id = t.textbook_id
  112. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  113. left join base_semester t3 on t3.id = t.base_semester_id
  114. left join base_class t4 on t4.id = t.class_id
  115. left join xjr_user t5 on t5.id = t4.teacher_id
  116. left join base_classroom t6 on t6.id = t4.classroom_id
  117. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  118. select
  119. t.base_semester_id,
  120. t.class_id,
  121. t1.textbook_id,
  122. sum(t2.stock) as num,
  123. sum(t1.issue_number) as claimNum
  124. from wf_textbook_claim t
  125. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  126. left join textbook t2 on t2.id = t1.textbook_id
  127. where claim_type = 'claim_student'
  128. amd t.base_semester_id = ?
  129. group by t.base_semester_id, t.class_id, t1.textbook_id
  130. )
  131. select
  132. t.base_semester_id,
  133. t3.name as baseSemesterIdCn,
  134. t.class_id,
  135. t4.name as classIdCn,
  136. t5.name as headTeacherName,
  137. t6.name as classRoomName,
  138. t.textbook_id,
  139. t2.name as textbookTypeCn,
  140. t1.book_name,
  141. t1.editor_in_chief,
  142. t1.publishing_house,
  143. t1.issn,
  144. t1.appraisal_price,
  145. t1.subtotal,
  146. t.num,
  147. t.claimNum
  148. from textbook_class t
  149. left join textbook t1 on t1.id = t.textbook_id
  150. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  151. left join base_semester t3 on t3.id = t.base_semester_id
  152. left join base_class t4 on t4.id = t.class_id
  153. left join xjr_user t5 on t5.id = t4.teacher_id
  154. left join base_classroom t6 on t6.id = t4.classroom_id
  155. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
  156. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
  157. at com.sun.proxy.$Proxy140.selectList(Unknown Source)
  158. at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
  159. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
  160. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
  161. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
  162. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
  163. at com.sun.proxy.$Proxy332.listTextbookClaimExportQuery(Unknown Source)
  164. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl.listTextbookClaimExportQuery(TextbookServiceImpl.java:590)
  165. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$FastClassBySpringCGLIB$$f35afcd1.invoke(<generated>)
  166. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  167. at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
  168. at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
  169. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
  170. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$EnhancerBySpringCGLIB$$df5eabfc.listTextbookClaimExportQuery(<generated>)
  171. at com.xjrsoft.module.textbook.controller.TextbookController.textbookClaimExportQuery(TextbookController.java:281)
  172. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  173. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  174. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  175. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  176. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  177. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
  178. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  179. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  180. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  181. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  182. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  183. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  184. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  185. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
  186. at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
  187. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  188. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  189. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  190. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  191. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  192. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  193. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  194. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  195. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  196. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  197. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  198. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  199. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  200. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  201. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  202. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  203. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  204. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  205. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  206. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  207. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  208. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  209. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  210. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  211. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  212. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  213. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  214. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  215. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  216. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  217. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  218. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  219. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  220. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  221. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  222. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  223. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  224. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  225. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  226. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  227. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  228. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  229. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  230. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  231. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  232. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  233. at java.base/java.lang.Thread.run(Thread.java:834)
  234. Caused by: org.apache.ibatis.exceptions.PersistenceException:
  235. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  236. select
  237. t.base_semester_id,
  238. t.class_id,
  239. t1.textbook_id,
  240. sum(t2.stock) as num,
  241. sum(t1.issue_number) as claimNum
  242. from wf_textbook_claim t
  243. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  244. left join textbook t2 on t2.id = t1.textbook_id
  245. where claim_type = 'claim_student'
  246. amd t.base_semester_id = ?
  247. group by t.base_semester_id, t.class_id, t1.textbook_id
  248. )
  249. select
  250. t.base_semester_id,
  251. t3.name as baseSemesterIdCn,
  252. t.class_id,
  253. t4.name as classIdCn,
  254. t5.name as headTeacherName,
  255. t6.name as classRoomName,
  256. t.textbook_id,
  257. t2.name as textbookTypeCn,
  258. t1.book_name,
  259. t1.editor_in_chief,
  260. t1.publishing_house,
  261. t1.issn,
  262. t1.appraisal_price,
  263. t1.subtotal,
  264. t.num,
  265. t.claimNum
  266. from textbook_class t
  267. left join textbook t1 on t1.id = t.textbook_id
  268. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  269. left join base_semester t3 on t3.id = t.base_semester_id
  270. left join base_class t4 on t4.id = t.class_id
  271. left join xjr_user t5 on t5.id = t4.teacher_id
  272. left join base_classroom t6 on t6.id = t4.classroom_id
  273. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  274. select
  275. t.base_semester_id,
  276. t.class_id,
  277. t1.textbook_id,
  278. sum(t2.stock) as num,
  279. sum(t1.issue_number) as claimNum
  280. from wf_textbook_claim t
  281. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  282. left join textbook t2 on t2.id = t1.textbook_id
  283. where claim_type = 'claim_student'
  284. amd t.base_semester_id = ?
  285. group by t.base_semester_id, t.class_id, t1.textbook_id
  286. )
  287. select
  288. t.base_semester_id,
  289. t3.name as baseSemesterIdCn,
  290. t.class_id,
  291. t4.name as classIdCn,
  292. t5.name as headTeacherName,
  293. t6.name as classRoomName,
  294. t.textbook_id,
  295. t2.name as textbookTypeCn,
  296. t1.book_name,
  297. t1.editor_in_chief,
  298. t1.publishing_house,
  299. t1.issn,
  300. t1.appraisal_price,
  301. t1.subtotal,
  302. t.num,
  303. t.claimNum
  304. from textbook_class t
  305. left join textbook t1 on t1.id = t.textbook_id
  306. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  307. left join base_semester t3 on t3.id = t.base_semester_id
  308. left join base_class t4 on t4.id = t.class_id
  309. left join xjr_user t5 on t5.id = t4.teacher_id
  310. left join base_classroom t6 on t6.id = t4.classroom_id
  311. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
  312. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
  313. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
  314. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  315. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  316. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  317. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  318. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
  319. ... 77 common frames omitted
  320. Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  321. select
  322. t.base_semester_id,
  323. t.class_id,
  324. t1.textbook_id,
  325. sum(t2.stock) as num,
  326. sum(t1.issue_number) as claimNum
  327. from wf_textbook_claim t
  328. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  329. left join textbook t2 on t2.id = t1.textbook_id
  330. where claim_type = 'claim_student'
  331. amd t.base_semester_id = ?
  332. group by t.base_semester_id, t.class_id, t1.textbook_id
  333. )
  334. select
  335. t.base_semester_id,
  336. t3.name as baseSemesterIdCn,
  337. t.class_id,
  338. t4.name as classIdCn,
  339. t5.name as headTeacherName,
  340. t6.name as classRoomName,
  341. t.textbook_id,
  342. t2.name as textbookTypeCn,
  343. t1.book_name,
  344. t1.editor_in_chief,
  345. t1.publishing_house,
  346. t1.issn,
  347. t1.appraisal_price,
  348. t1.subtotal,
  349. t.num,
  350. t.claimNum
  351. from textbook_class t
  352. left join textbook t1 on t1.id = t.textbook_id
  353. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  354. left join base_semester t3 on t3.id = t.base_semester_id
  355. left join base_class t4 on t4.id = t.class_id
  356. left join xjr_user t5 on t5.id = t4.teacher_id
  357. left join base_classroom t6 on t6.id = t4.classroom_id
  358. at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:39)
  359. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:52)
  360. at com.xjrsoft.common.interceptor.DataScopeInnerInterceptor.beforeQuery(DataScopeInnerInterceptor.java:52)
  361. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:78)
  362. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  363. at com.sun.proxy.$Proxy732.query(Unknown Source)
  364. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
  365. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  366. at com.sun.proxy.$Proxy732.query(Unknown Source)
  367. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  368. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  369. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  370. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  371. at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
  372. at com.github.yulichang.interceptor.MPJInterceptor.intercept(MPJInterceptor.java:78)
  373. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  374. at com.sun.proxy.$Proxy732.query(Unknown Source)
  375. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
  376. ... 83 common frames omitted
  377. Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "amd" <S_IDENTIFIER>
  378. at line 13, column 17.
  379. Was expecting one of:
  380. "&"
  381. ")"
  382. "::"
  383. "<<"
  384. ">>"
  385. "COLLATE"
  386. "CONNECT"
  387. "EMIT"
  388. "GROUP"
  389. "HAVING"
  390. "START"
  391. "["
  392. "^"
  393. "|"
  394. at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:31234)
  395. at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:31067)
  396. at net.sf.jsqlparser.parser.CCJSqlParser.WithItem(CCJSqlParser.java:6199)
  397. at net.sf.jsqlparser.parser.CCJSqlParser.WithList(CCJSqlParser.java:6131)
  398. at net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:220)
  399. at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:153)
  400. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:188)
  401. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:63)
  402. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:38)
  403. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:49)
  404. ... 99 common frames omitted
  405. 09:13:49.053 [http-nio-8080-exec-2] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - nested exception is org.apache.ibatis.exceptions.PersistenceException:
  406. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  407. select
  408. t.base_semester_id,
  409. t.class_id,
  410. t1.textbook_id,
  411. sum(t2.stock) as num,
  412. sum(t1.issue_number) as claimNum
  413. from wf_textbook_claim t
  414. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  415. left join textbook t2 on t2.id = t1.textbook_id
  416. where claim_type = 'claim_student'
  417. amd t.base_semester_id = ?
  418. group by t.base_semester_id, t.class_id, t1.textbook_id
  419. )
  420. select
  421. t.base_semester_id,
  422. t3.name as baseSemesterIdCn,
  423. t.class_id,
  424. t4.name as classIdCn,
  425. t5.name as headTeacherName,
  426. t6.name as classRoomName,
  427. t.textbook_id,
  428. t2.name as textbookTypeCn,
  429. t1.book_name,
  430. t1.editor_in_chief,
  431. t1.publishing_house,
  432. t1.issn,
  433. t1.appraisal_price,
  434. t1.subtotal,
  435. t.num,
  436. t.claimNum
  437. from textbook_class t
  438. left join textbook t1 on t1.id = t.textbook_id
  439. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  440. left join base_semester t3 on t3.id = t.base_semester_id
  441. left join base_class t4 on t4.id = t.class_id
  442. left join xjr_user t5 on t5.id = t4.teacher_id
  443. left join base_classroom t6 on t6.id = t4.classroom_id
  444. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  445. select
  446. t.base_semester_id,
  447. t.class_id,
  448. t1.textbook_id,
  449. sum(t2.stock) as num,
  450. sum(t1.issue_number) as claimNum
  451. from wf_textbook_claim t
  452. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  453. left join textbook t2 on t2.id = t1.textbook_id
  454. where claim_type = 'claim_student'
  455. amd t.base_semester_id = ?
  456. group by t.base_semester_id, t.class_id, t1.textbook_id
  457. )
  458. select
  459. t.base_semester_id,
  460. t3.name as baseSemesterIdCn,
  461. t.class_id,
  462. t4.name as classIdCn,
  463. t5.name as headTeacherName,
  464. t6.name as classRoomName,
  465. t.textbook_id,
  466. t2.name as textbookTypeCn,
  467. t1.book_name,
  468. t1.editor_in_chief,
  469. t1.publishing_house,
  470. t1.issn,
  471. t1.appraisal_price,
  472. t1.subtotal,
  473. t.num,
  474. t.claimNum
  475. from textbook_class t
  476. left join textbook t1 on t1.id = t.textbook_id
  477. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  478. left join base_semester t3 on t3.id = t.base_semester_id
  479. left join base_class t4 on t4.id = t.class_id
  480. left join xjr_user t5 on t5.id = t4.teacher_id
  481. left join base_classroom t6 on t6.id = t4.classroom_id
  482. org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
  483. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  484. select
  485. t.base_semester_id,
  486. t.class_id,
  487. t1.textbook_id,
  488. sum(t2.stock) as num,
  489. sum(t1.issue_number) as claimNum
  490. from wf_textbook_claim t
  491. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  492. left join textbook t2 on t2.id = t1.textbook_id
  493. where claim_type = 'claim_student'
  494. amd t.base_semester_id = ?
  495. group by t.base_semester_id, t.class_id, t1.textbook_id
  496. )
  497. select
  498. t.base_semester_id,
  499. t3.name as baseSemesterIdCn,
  500. t.class_id,
  501. t4.name as classIdCn,
  502. t5.name as headTeacherName,
  503. t6.name as classRoomName,
  504. t.textbook_id,
  505. t2.name as textbookTypeCn,
  506. t1.book_name,
  507. t1.editor_in_chief,
  508. t1.publishing_house,
  509. t1.issn,
  510. t1.appraisal_price,
  511. t1.subtotal,
  512. t.num,
  513. t.claimNum
  514. from textbook_class t
  515. left join textbook t1 on t1.id = t.textbook_id
  516. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  517. left join base_semester t3 on t3.id = t.base_semester_id
  518. left join base_class t4 on t4.id = t.class_id
  519. left join xjr_user t5 on t5.id = t4.teacher_id
  520. left join base_classroom t6 on t6.id = t4.classroom_id
  521. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  522. select
  523. t.base_semester_id,
  524. t.class_id,
  525. t1.textbook_id,
  526. sum(t2.stock) as num,
  527. sum(t1.issue_number) as claimNum
  528. from wf_textbook_claim t
  529. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  530. left join textbook t2 on t2.id = t1.textbook_id
  531. where claim_type = 'claim_student'
  532. amd t.base_semester_id = ?
  533. group by t.base_semester_id, t.class_id, t1.textbook_id
  534. )
  535. select
  536. t.base_semester_id,
  537. t3.name as baseSemesterIdCn,
  538. t.class_id,
  539. t4.name as classIdCn,
  540. t5.name as headTeacherName,
  541. t6.name as classRoomName,
  542. t.textbook_id,
  543. t2.name as textbookTypeCn,
  544. t1.book_name,
  545. t1.editor_in_chief,
  546. t1.publishing_house,
  547. t1.issn,
  548. t1.appraisal_price,
  549. t1.subtotal,
  550. t.num,
  551. t.claimNum
  552. from textbook_class t
  553. left join textbook t1 on t1.id = t.textbook_id
  554. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  555. left join base_semester t3 on t3.id = t.base_semester_id
  556. left join base_class t4 on t4.id = t.class_id
  557. left join xjr_user t5 on t5.id = t4.teacher_id
  558. left join base_classroom t6 on t6.id = t4.classroom_id
  559. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
  560. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
  561. at com.sun.proxy.$Proxy140.selectList(Unknown Source)
  562. at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
  563. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
  564. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
  565. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
  566. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
  567. at com.sun.proxy.$Proxy332.listTextbookClaimExportQuery(Unknown Source)
  568. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl.listTextbookClaimExportQuery(TextbookServiceImpl.java:590)
  569. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$FastClassBySpringCGLIB$$f35afcd1.invoke(<generated>)
  570. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  571. at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
  572. at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
  573. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
  574. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$EnhancerBySpringCGLIB$$df5eabfc.listTextbookClaimExportQuery(<generated>)
  575. at com.xjrsoft.module.textbook.controller.TextbookController.textbookClaimExportQuery(TextbookController.java:281)
  576. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  577. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  578. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  579. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  580. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  581. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
  582. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  583. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  584. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  585. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  586. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  587. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  588. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  589. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
  590. at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
  591. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  592. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  593. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  594. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  595. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  596. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  597. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  598. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  599. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  600. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  601. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  602. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  603. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  604. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  605. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  606. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  607. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  608. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  609. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  610. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  611. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  612. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  613. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  614. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  615. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  616. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  617. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  618. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  619. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  620. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  621. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  622. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  623. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  624. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  625. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  626. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  627. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  628. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  629. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  630. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  631. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  632. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  633. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  634. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  635. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  636. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  637. at java.base/java.lang.Thread.run(Thread.java:834)
  638. Caused by: org.apache.ibatis.exceptions.PersistenceException:
  639. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  640. select
  641. t.base_semester_id,
  642. t.class_id,
  643. t1.textbook_id,
  644. sum(t2.stock) as num,
  645. sum(t1.issue_number) as claimNum
  646. from wf_textbook_claim t
  647. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  648. left join textbook t2 on t2.id = t1.textbook_id
  649. where claim_type = 'claim_student'
  650. amd t.base_semester_id = ?
  651. group by t.base_semester_id, t.class_id, t1.textbook_id
  652. )
  653. select
  654. t.base_semester_id,
  655. t3.name as baseSemesterIdCn,
  656. t.class_id,
  657. t4.name as classIdCn,
  658. t5.name as headTeacherName,
  659. t6.name as classRoomName,
  660. t.textbook_id,
  661. t2.name as textbookTypeCn,
  662. t1.book_name,
  663. t1.editor_in_chief,
  664. t1.publishing_house,
  665. t1.issn,
  666. t1.appraisal_price,
  667. t1.subtotal,
  668. t.num,
  669. t.claimNum
  670. from textbook_class t
  671. left join textbook t1 on t1.id = t.textbook_id
  672. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  673. left join base_semester t3 on t3.id = t.base_semester_id
  674. left join base_class t4 on t4.id = t.class_id
  675. left join xjr_user t5 on t5.id = t4.teacher_id
  676. left join base_classroom t6 on t6.id = t4.classroom_id
  677. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  678. select
  679. t.base_semester_id,
  680. t.class_id,
  681. t1.textbook_id,
  682. sum(t2.stock) as num,
  683. sum(t1.issue_number) as claimNum
  684. from wf_textbook_claim t
  685. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  686. left join textbook t2 on t2.id = t1.textbook_id
  687. where claim_type = 'claim_student'
  688. amd t.base_semester_id = ?
  689. group by t.base_semester_id, t.class_id, t1.textbook_id
  690. )
  691. select
  692. t.base_semester_id,
  693. t3.name as baseSemesterIdCn,
  694. t.class_id,
  695. t4.name as classIdCn,
  696. t5.name as headTeacherName,
  697. t6.name as classRoomName,
  698. t.textbook_id,
  699. t2.name as textbookTypeCn,
  700. t1.book_name,
  701. t1.editor_in_chief,
  702. t1.publishing_house,
  703. t1.issn,
  704. t1.appraisal_price,
  705. t1.subtotal,
  706. t.num,
  707. t.claimNum
  708. from textbook_class t
  709. left join textbook t1 on t1.id = t.textbook_id
  710. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  711. left join base_semester t3 on t3.id = t.base_semester_id
  712. left join base_class t4 on t4.id = t.class_id
  713. left join xjr_user t5 on t5.id = t4.teacher_id
  714. left join base_classroom t6 on t6.id = t4.classroom_id
  715. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
  716. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
  717. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
  718. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  719. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  720. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  721. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  722. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
  723. ... 77 common frames omitted
  724. Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  725. select
  726. t.base_semester_id,
  727. t.class_id,
  728. t1.textbook_id,
  729. sum(t2.stock) as num,
  730. sum(t1.issue_number) as claimNum
  731. from wf_textbook_claim t
  732. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  733. left join textbook t2 on t2.id = t1.textbook_id
  734. where claim_type = 'claim_student'
  735. amd t.base_semester_id = ?
  736. group by t.base_semester_id, t.class_id, t1.textbook_id
  737. )
  738. select
  739. t.base_semester_id,
  740. t3.name as baseSemesterIdCn,
  741. t.class_id,
  742. t4.name as classIdCn,
  743. t5.name as headTeacherName,
  744. t6.name as classRoomName,
  745. t.textbook_id,
  746. t2.name as textbookTypeCn,
  747. t1.book_name,
  748. t1.editor_in_chief,
  749. t1.publishing_house,
  750. t1.issn,
  751. t1.appraisal_price,
  752. t1.subtotal,
  753. t.num,
  754. t.claimNum
  755. from textbook_class t
  756. left join textbook t1 on t1.id = t.textbook_id
  757. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  758. left join base_semester t3 on t3.id = t.base_semester_id
  759. left join base_class t4 on t4.id = t.class_id
  760. left join xjr_user t5 on t5.id = t4.teacher_id
  761. left join base_classroom t6 on t6.id = t4.classroom_id
  762. at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:39)
  763. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:52)
  764. at com.xjrsoft.common.interceptor.DataScopeInnerInterceptor.beforeQuery(DataScopeInnerInterceptor.java:52)
  765. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:78)
  766. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  767. at com.sun.proxy.$Proxy732.query(Unknown Source)
  768. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
  769. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  770. at com.sun.proxy.$Proxy732.query(Unknown Source)
  771. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  772. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  773. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  774. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  775. at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
  776. at com.github.yulichang.interceptor.MPJInterceptor.intercept(MPJInterceptor.java:78)
  777. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  778. at com.sun.proxy.$Proxy732.query(Unknown Source)
  779. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
  780. ... 83 common frames omitted
  781. Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "amd" <S_IDENTIFIER>
  782. at line 13, column 17.
  783. Was expecting one of:
  784. "&"
  785. ")"
  786. "::"
  787. "<<"
  788. ">>"
  789. "COLLATE"
  790. "CONNECT"
  791. "EMIT"
  792. "GROUP"
  793. "HAVING"
  794. "START"
  795. "["
  796. "^"
  797. "|"
  798. at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:31234)
  799. at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:31067)
  800. at net.sf.jsqlparser.parser.CCJSqlParser.WithItem(CCJSqlParser.java:6199)
  801. at net.sf.jsqlparser.parser.CCJSqlParser.WithList(CCJSqlParser.java:6131)
  802. at net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:220)
  803. at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:153)
  804. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:188)
  805. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:63)
  806. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:38)
  807. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:49)
  808. ... 99 common frames omitted
  809. 10:57:27.927 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] ERROR c.a.d.util.JdbcUtils - [close,96] - close connection error
  810. java.sql.SQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown.
  811. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
  812. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
  813. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
  814. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
  815. at com.mysql.cj.jdbc.ConnectionImpl.rollback(ConnectionImpl.java:1835)
  816. at com.mysql.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1693)
  817. at com.mysql.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:713)
  818. at com.alibaba.druid.util.JdbcUtils.close(JdbcUtils.java:94)
  819. at com.alibaba.druid.pool.DruidDataSource.discardConnection(DruidDataSource.java:1528)
  820. at com.alibaba.druid.pool.DruidDataSource.handleFatalError(DruidDataSource.java:1846)
  821. at com.alibaba.druid.pool.DruidDataSource.handleConnectionException(DruidDataSource.java:1770)
  822. at com.alibaba.druid.pool.DruidPooledConnection.handleException(DruidPooledConnection.java:133)
  823. at com.alibaba.druid.pool.DruidPooledConnection.setAutoCommit(DruidPooledConnection.java:717)
  824. at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:287)
  825. at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
  826. at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
  827. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
  828. at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:71)
  829. at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
  830. at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
  831. at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
  832. at org.camunda.bpm.engine.impl.interceptor.ExceptionCodeInterceptor.execute(ExceptionCodeInterceptor.java:55)
  833. at org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable.acquireJobs(SequentialJobAcquisitionRunnable.java:164)
  834. at org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable.run(SequentialJobAcquisitionRunnable.java:80)
  835. at java.base/java.lang.Thread.run(Thread.java:834)
  836. 10:57:27.928 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] ERROR c.a.d.p.DruidDataSource - [handleFatalError,1849] - discard connection
  837. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
  838. The last packet successfully received from the server was 41,543 milliseconds ago. The last packet sent successfully to the server was 41,547 milliseconds ago.
  839. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
  840. at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
  841. at com.mysql.cj.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:2050)
  842. at com.alibaba.druid.pool.DruidPooledConnection.setAutoCommit(DruidPooledConnection.java:713)
  843. at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:287)
  844. at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
  845. at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
  846. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
  847. at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:71)
  848. at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
  849. at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
  850. at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
  851. at org.camunda.bpm.engine.impl.interceptor.ExceptionCodeInterceptor.execute(ExceptionCodeInterceptor.java:55)
  852. at org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable.acquireJobs(SequentialJobAcquisitionRunnable.java:164)
  853. at org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable.run(SequentialJobAcquisitionRunnable.java:80)
  854. at java.base/java.lang.Thread.run(Thread.java:834)
  855. Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
  856. The last packet successfully received from the server was 41,543 milliseconds ago. The last packet sent successfully to the server was 41,547 milliseconds ago.
  857. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  858. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  859. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  860. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  861. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
  862. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
  863. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
  864. at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
  865. at com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:581)
  866. at com.mysql.cj.protocol.a.NativeProtocol.checkErrorMessage(NativeProtocol.java:761)
  867. at com.mysql.cj.protocol.a.NativeProtocol.sendCommand(NativeProtocol.java:700)
  868. at com.mysql.cj.protocol.a.NativeProtocol.sendQueryPacket(NativeProtocol.java:1051)
  869. at com.mysql.cj.protocol.a.NativeProtocol.sendQueryString(NativeProtocol.java:997)
  870. at com.mysql.cj.NativeSession.execSQL(NativeSession.java:663)
  871. at com.mysql.cj.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:2033)
  872. ... 13 common frames omitted
  873. Caused by: java.net.SocketTimeoutException: Read timed out
  874. at java.base/java.net.SocketInputStream.socketRead0(Native Method)
  875. at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
  876. at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
  877. at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
  878. at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484)
  879. at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478)
  880. at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
  881. at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1334)
  882. at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:977)
  883. at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)
  884. at com.mysql.cj.protocol.FullReadInputStream.readFully(FullReadInputStream.java:64)
  885. at com.mysql.cj.protocol.a.SimplePacketReader.readHeaderLocal(SimplePacketReader.java:81)
  886. at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:63)
  887. at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:45)
  888. at com.mysql.cj.protocol.a.TimeTrackingPacketReader.readHeader(TimeTrackingPacketReader.java:52)
  889. at com.mysql.cj.protocol.a.TimeTrackingPacketReader.readHeader(TimeTrackingPacketReader.java:41)
  890. at com.mysql.cj.protocol.a.MultiPacketReader.readHeader(MultiPacketReader.java:54)
  891. at com.mysql.cj.protocol.a.MultiPacketReader.readHeader(MultiPacketReader.java:44)
  892. at com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:575)
  893. ... 19 common frames omitted
  894. 10:57:27.930 [JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]] ERROR o.c.b.e.jobexecutor - [logError,215] - ENGINE-14019 Exception during job acquisition Could not open JDBC Connection for transaction; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
  895. The last packet successfully received from the server was 41,543 milliseconds ago. The last packet sent successfully to the server was 41,547 milliseconds ago.
  896. org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
  897. The last packet successfully received from the server was 41,543 milliseconds ago. The last packet sent successfully to the server was 41,547 milliseconds ago.
  898. at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:309)
  899. at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
  900. at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
  901. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
  902. at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:71)
  903. at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
  904. at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
  905. at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
  906. at org.camunda.bpm.engine.impl.interceptor.ExceptionCodeInterceptor.execute(ExceptionCodeInterceptor.java:55)
  907. at org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable.acquireJobs(SequentialJobAcquisitionRunnable.java:164)
  908. at org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable.run(SequentialJobAcquisitionRunnable.java:80)
  909. at java.base/java.lang.Thread.run(Thread.java:834)
  910. Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
  911. The last packet successfully received from the server was 41,543 milliseconds ago. The last packet sent successfully to the server was 41,547 milliseconds ago.
  912. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
  913. at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
  914. at com.mysql.cj.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:2050)
  915. at com.alibaba.druid.pool.DruidPooledConnection.setAutoCommit(DruidPooledConnection.java:713)
  916. at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:287)
  917. ... 11 common frames omitted
  918. Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
  919. The last packet successfully received from the server was 41,543 milliseconds ago. The last packet sent successfully to the server was 41,547 milliseconds ago.
  920. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  921. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  922. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  923. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  924. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
  925. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
  926. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
  927. at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
  928. at com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:581)
  929. at com.mysql.cj.protocol.a.NativeProtocol.checkErrorMessage(NativeProtocol.java:761)
  930. at com.mysql.cj.protocol.a.NativeProtocol.sendCommand(NativeProtocol.java:700)
  931. at com.mysql.cj.protocol.a.NativeProtocol.sendQueryPacket(NativeProtocol.java:1051)
  932. at com.mysql.cj.protocol.a.NativeProtocol.sendQueryString(NativeProtocol.java:997)
  933. at com.mysql.cj.NativeSession.execSQL(NativeSession.java:663)
  934. at com.mysql.cj.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:2033)
  935. ... 13 common frames omitted
  936. Caused by: java.net.SocketTimeoutException: Read timed out
  937. at java.base/java.net.SocketInputStream.socketRead0(Native Method)
  938. at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
  939. at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
  940. at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
  941. at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484)
  942. at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478)
  943. at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
  944. at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1334)
  945. at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:977)
  946. at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)
  947. at com.mysql.cj.protocol.FullReadInputStream.readFully(FullReadInputStream.java:64)
  948. at com.mysql.cj.protocol.a.SimplePacketReader.readHeaderLocal(SimplePacketReader.java:81)
  949. at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:63)
  950. at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:45)
  951. at com.mysql.cj.protocol.a.TimeTrackingPacketReader.readHeader(TimeTrackingPacketReader.java:52)
  952. at com.mysql.cj.protocol.a.TimeTrackingPacketReader.readHeader(TimeTrackingPacketReader.java:41)
  953. at com.mysql.cj.protocol.a.MultiPacketReader.readHeader(MultiPacketReader.java:54)
  954. at com.mysql.cj.protocol.a.MultiPacketReader.readHeader(MultiPacketReader.java:44)
  955. at com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:575)
  956. ... 19 common frames omitted
  957. 10:58:35.090 [Druid-ConnectionPool-Create-1818817180] ERROR c.a.d.p.DruidDataSource - [run,2781] - create connection SQLException, url: jdbc:mysql://10.150.10.139:3306/tl?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&autoReconnect=true&failOverReadOnly=false, errorCode 0, state 08001
  958. java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  959. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
  960. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
  961. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
  962. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
  963. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
  964. at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:898)
  965. at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823)
  966. at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:448)
  967. at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241)
  968. at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
  969. at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1644)
  970. at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1710)
  971. at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2779)
  972. Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
  973. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  974. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  975. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  976. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  977. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  978. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
  979. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
  980. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
  981. at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
  982. at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89)
  983. at com.mysql.cj.NativeSession.connect(NativeSession.java:120)
  984. at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:842)
  985. ... 7 common frames omitted
  986. Caused by: java.net.ConnectException: Connection timed out: connect
  987. at java.base/java.net.PlainSocketImpl.connect0(Native Method)
  988. at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
  989. at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
  990. at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
  991. at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
  992. at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  993. at java.base/java.net.Socket.connect(Socket.java:608)
  994. at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:153)
  995. at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63)
  996. ... 9 common frames omitted
  997. 10:59:42.220 [Druid-ConnectionPool-Create-1818817180] ERROR c.a.d.p.DruidDataSource - [run,2781] - create connection SQLException, url: jdbc:mysql://10.150.10.139:3306/tl?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&autoReconnect=true&failOverReadOnly=false, errorCode 0, state 08001
  998. java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  999. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
  1000. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
  1001. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
  1002. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
  1003. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
  1004. at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:898)
  1005. at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823)
  1006. at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:448)
  1007. at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241)
  1008. at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
  1009. at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1644)
  1010. at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1710)
  1011. at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2779)
  1012. Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
  1013. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  1014. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  1015. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  1016. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  1017. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  1018. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
  1019. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
  1020. at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
  1021. at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
  1022. at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89)
  1023. at com.mysql.cj.NativeSession.connect(NativeSession.java:120)
  1024. at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:842)
  1025. ... 7 common frames omitted
  1026. Caused by: java.net.ConnectException: Connection timed out: connect
  1027. at java.base/java.net.PlainSocketImpl.connect0(Native Method)
  1028. at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
  1029. at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
  1030. at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
  1031. at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
  1032. at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  1033. at java.base/java.net.Socket.connect(Socket.java:608)
  1034. at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:153)
  1035. at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63)
  1036. ... 9 common frames omitted