sys-error.2024-02-26.log 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. 15:49:35.588 [http-nio-8080-exec-10] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - Cannot format given Object as a Date
  2. java.lang.IllegalArgumentException: Cannot format given Object as a Date
  3. at java.base/java.text.DateFormat.format(DateFormat.java:338)
  4. at java.base/java.text.Format.format(Format.java:158)
  5. at com.xjrsoft.module.personnel.controller.LaborManagementController.exportData(LaborManagementController.java:69)
  6. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  7. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  8. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  9. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  10. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  11. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
  12. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  13. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  14. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  15. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  16. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  17. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  18. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  19. at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
  20. at javax.servlet.http.HttpServlet.service(HttpServlet.java:670)
  21. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  22. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  23. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  24. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  25. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  26. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  27. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  28. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  29. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  30. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  31. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  32. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  33. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  34. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  35. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  36. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  37. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  38. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  39. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  40. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  41. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  42. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  43. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  44. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  45. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  46. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  47. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  48. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  49. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  50. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  51. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  52. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  53. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  54. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  55. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  56. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  57. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  58. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  59. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  60. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  61. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  62. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  63. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  64. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  65. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  66. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  67. at java.base/java.lang.Thread.run(Thread.java:834)
  68. 15:49:51.458 [http-nio-8080-exec-1] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - Cannot format given Object as a Date
  69. java.lang.IllegalArgumentException: Cannot format given Object as a Date
  70. at java.base/java.text.DateFormat.format(DateFormat.java:338)
  71. at java.base/java.text.Format.format(Format.java:158)
  72. at com.xjrsoft.module.personnel.controller.LaborManagementController.exportData(LaborManagementController.java:69)
  73. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  74. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  75. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  76. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  77. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  78. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
  79. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  80. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  81. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  82. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  83. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  84. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  85. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  86. at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
  87. at javax.servlet.http.HttpServlet.service(HttpServlet.java:670)
  88. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  89. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  90. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  91. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  92. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  93. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  94. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  95. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  96. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  97. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  98. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  99. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  100. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  101. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  102. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  103. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  104. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  105. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  106. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  107. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  108. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  109. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  110. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  111. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  112. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  113. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  114. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  115. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  116. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  117. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  118. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  119. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  120. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  121. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  122. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  123. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  124. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  125. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  126. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  127. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  128. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  129. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  130. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  131. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  132. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  133. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  134. at java.base/java.lang.Thread.run(Thread.java:834)
  135. 16:27:12.024 [http-nio-8080-exec-1] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - nested exception is org.apache.ibatis.exceptions.PersistenceException:
  136. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  137. select
  138. t.base_semester_id,
  139. t.class_id,
  140. t1.textbook_id,
  141. sum(t2.stock) as num,
  142. sum(t1.issue_number) as claimNum
  143. from wf_textbook_claim t
  144. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  145. left join textbook t2 on t2.id = t1.textbook_id
  146. where claim_type = 'claim_student'
  147. amd t.base_semester_id = ?
  148. and t.class_id = ?
  149. and t1.textbook_id = ?
  150. group by t.base_semester_id, t.class_id, t1.textbook_id
  151. )
  152. select
  153. t.base_semester_id,
  154. t.class_id,
  155. t.textbook_id,
  156. t2.name as textbookTypeCn,
  157. t1.book_name,
  158. t1.editor_in_chief,
  159. t1.publishing_house,
  160. t1.issn,
  161. t1.appraisal_price,
  162. t1.subtotal,
  163. t.num,
  164. t.claimNum
  165. from textbook_class t
  166. left join textbook t1 on t1.id = t.textbook_id
  167. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  168. WHERE t1.subject_group_id = ?
  169. and t1.course_subject_id = ?
  170. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  171. select
  172. t.base_semester_id,
  173. t.class_id,
  174. t1.textbook_id,
  175. sum(t2.stock) as num,
  176. sum(t1.issue_number) as claimNum
  177. from wf_textbook_claim t
  178. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  179. left join textbook t2 on t2.id = t1.textbook_id
  180. where claim_type = 'claim_student'
  181. amd t.base_semester_id = ?
  182. and t.class_id = ?
  183. and t1.textbook_id = ?
  184. group by t.base_semester_id, t.class_id, t1.textbook_id
  185. )
  186. select
  187. t.base_semester_id,
  188. t.class_id,
  189. t.textbook_id,
  190. t2.name as textbookTypeCn,
  191. t1.book_name,
  192. t1.editor_in_chief,
  193. t1.publishing_house,
  194. t1.issn,
  195. t1.appraisal_price,
  196. t1.subtotal,
  197. t.num,
  198. t.claimNum
  199. from textbook_class t
  200. left join textbook t1 on t1.id = t.textbook_id
  201. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  202. WHERE t1.subject_group_id = ?
  203. and t1.course_subject_id = ?
  204. org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
  205. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  206. select
  207. t.base_semester_id,
  208. t.class_id,
  209. t1.textbook_id,
  210. sum(t2.stock) as num,
  211. sum(t1.issue_number) as claimNum
  212. from wf_textbook_claim t
  213. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  214. left join textbook t2 on t2.id = t1.textbook_id
  215. where claim_type = 'claim_student'
  216. amd t.base_semester_id = ?
  217. and t.class_id = ?
  218. and t1.textbook_id = ?
  219. group by t.base_semester_id, t.class_id, t1.textbook_id
  220. )
  221. select
  222. t.base_semester_id,
  223. t.class_id,
  224. t.textbook_id,
  225. t2.name as textbookTypeCn,
  226. t1.book_name,
  227. t1.editor_in_chief,
  228. t1.publishing_house,
  229. t1.issn,
  230. t1.appraisal_price,
  231. t1.subtotal,
  232. t.num,
  233. t.claimNum
  234. from textbook_class t
  235. left join textbook t1 on t1.id = t.textbook_id
  236. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  237. WHERE t1.subject_group_id = ?
  238. and t1.course_subject_id = ?
  239. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  240. select
  241. t.base_semester_id,
  242. t.class_id,
  243. t1.textbook_id,
  244. sum(t2.stock) as num,
  245. sum(t1.issue_number) as claimNum
  246. from wf_textbook_claim t
  247. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  248. left join textbook t2 on t2.id = t1.textbook_id
  249. where claim_type = 'claim_student'
  250. amd t.base_semester_id = ?
  251. and t.class_id = ?
  252. and t1.textbook_id = ?
  253. group by t.base_semester_id, t.class_id, t1.textbook_id
  254. )
  255. select
  256. t.base_semester_id,
  257. t.class_id,
  258. t.textbook_id,
  259. t2.name as textbookTypeCn,
  260. t1.book_name,
  261. t1.editor_in_chief,
  262. t1.publishing_house,
  263. t1.issn,
  264. t1.appraisal_price,
  265. t1.subtotal,
  266. t.num,
  267. t.claimNum
  268. from textbook_class t
  269. left join textbook t1 on t1.id = t.textbook_id
  270. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  271. WHERE t1.subject_group_id = ?
  272. and t1.course_subject_id = ?
  273. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
  274. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
  275. at com.sun.proxy.$Proxy140.selectList(Unknown Source)
  276. at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
  277. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
  278. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
  279. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
  280. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
  281. at com.sun.proxy.$Proxy332.listTextbookClaimExportQuery(Unknown Source)
  282. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl.listTextbookClaimExportQuery(TextbookServiceImpl.java:590)
  283. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$FastClassBySpringCGLIB$$f35afcd1.invoke(<generated>)
  284. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  285. at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
  286. at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
  287. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
  288. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$EnhancerBySpringCGLIB$$811050fe.listTextbookClaimExportQuery(<generated>)
  289. at com.xjrsoft.module.textbook.controller.TextbookController.textbookClaimExportQuery(TextbookController.java:281)
  290. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  291. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  292. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  293. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  294. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  295. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
  296. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  297. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  298. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  299. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  300. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  301. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  302. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  303. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
  304. at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
  305. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  306. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  307. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  308. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  309. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  310. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  311. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  312. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  313. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  314. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  315. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  316. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  317. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  318. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  319. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  320. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  321. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  322. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  323. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  324. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  325. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  326. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  327. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  328. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  329. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  330. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  331. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  332. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  333. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  334. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  335. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  336. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  337. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  338. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  339. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  340. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  341. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  342. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  343. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  344. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  345. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  346. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  347. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  348. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  349. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  350. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  351. at java.base/java.lang.Thread.run(Thread.java:834)
  352. Caused by: org.apache.ibatis.exceptions.PersistenceException:
  353. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  354. select
  355. t.base_semester_id,
  356. t.class_id,
  357. t1.textbook_id,
  358. sum(t2.stock) as num,
  359. sum(t1.issue_number) as claimNum
  360. from wf_textbook_claim t
  361. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  362. left join textbook t2 on t2.id = t1.textbook_id
  363. where claim_type = 'claim_student'
  364. amd t.base_semester_id = ?
  365. and t.class_id = ?
  366. and t1.textbook_id = ?
  367. group by t.base_semester_id, t.class_id, t1.textbook_id
  368. )
  369. select
  370. t.base_semester_id,
  371. t.class_id,
  372. t.textbook_id,
  373. t2.name as textbookTypeCn,
  374. t1.book_name,
  375. t1.editor_in_chief,
  376. t1.publishing_house,
  377. t1.issn,
  378. t1.appraisal_price,
  379. t1.subtotal,
  380. t.num,
  381. t.claimNum
  382. from textbook_class t
  383. left join textbook t1 on t1.id = t.textbook_id
  384. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  385. WHERE t1.subject_group_id = ?
  386. and t1.course_subject_id = ?
  387. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  388. select
  389. t.base_semester_id,
  390. t.class_id,
  391. t1.textbook_id,
  392. sum(t2.stock) as num,
  393. sum(t1.issue_number) as claimNum
  394. from wf_textbook_claim t
  395. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  396. left join textbook t2 on t2.id = t1.textbook_id
  397. where claim_type = 'claim_student'
  398. amd t.base_semester_id = ?
  399. and t.class_id = ?
  400. and t1.textbook_id = ?
  401. group by t.base_semester_id, t.class_id, t1.textbook_id
  402. )
  403. select
  404. t.base_semester_id,
  405. t.class_id,
  406. t.textbook_id,
  407. t2.name as textbookTypeCn,
  408. t1.book_name,
  409. t1.editor_in_chief,
  410. t1.publishing_house,
  411. t1.issn,
  412. t1.appraisal_price,
  413. t1.subtotal,
  414. t.num,
  415. t.claimNum
  416. from textbook_class t
  417. left join textbook t1 on t1.id = t.textbook_id
  418. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  419. WHERE t1.subject_group_id = ?
  420. and t1.course_subject_id = ?
  421. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
  422. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
  423. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
  424. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  425. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  426. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  427. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  428. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
  429. ... 77 common frames omitted
  430. Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  431. select
  432. t.base_semester_id,
  433. t.class_id,
  434. t1.textbook_id,
  435. sum(t2.stock) as num,
  436. sum(t1.issue_number) as claimNum
  437. from wf_textbook_claim t
  438. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  439. left join textbook t2 on t2.id = t1.textbook_id
  440. where claim_type = 'claim_student'
  441. amd t.base_semester_id = ?
  442. and t.class_id = ?
  443. and t1.textbook_id = ?
  444. group by t.base_semester_id, t.class_id, t1.textbook_id
  445. )
  446. select
  447. t.base_semester_id,
  448. t.class_id,
  449. t.textbook_id,
  450. t2.name as textbookTypeCn,
  451. t1.book_name,
  452. t1.editor_in_chief,
  453. t1.publishing_house,
  454. t1.issn,
  455. t1.appraisal_price,
  456. t1.subtotal,
  457. t.num,
  458. t.claimNum
  459. from textbook_class t
  460. left join textbook t1 on t1.id = t.textbook_id
  461. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  462. WHERE t1.subject_group_id = ?
  463. and t1.course_subject_id = ?
  464. at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:39)
  465. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:52)
  466. at com.xjrsoft.common.interceptor.DataScopeInnerInterceptor.beforeQuery(DataScopeInnerInterceptor.java:52)
  467. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:78)
  468. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  469. at com.sun.proxy.$Proxy732.query(Unknown Source)
  470. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
  471. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  472. at com.sun.proxy.$Proxy732.query(Unknown Source)
  473. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  474. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  475. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  476. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  477. at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
  478. at com.github.yulichang.interceptor.MPJInterceptor.intercept(MPJInterceptor.java:78)
  479. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  480. at com.sun.proxy.$Proxy732.query(Unknown Source)
  481. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
  482. ... 83 common frames omitted
  483. Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "amd" <S_IDENTIFIER>
  484. at line 13, column 17.
  485. Was expecting one of:
  486. "&"
  487. ")"
  488. "::"
  489. "<<"
  490. ">>"
  491. "COLLATE"
  492. "CONNECT"
  493. "EMIT"
  494. "GROUP"
  495. "HAVING"
  496. "START"
  497. "["
  498. "^"
  499. "|"
  500. at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:31234)
  501. at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:31067)
  502. at net.sf.jsqlparser.parser.CCJSqlParser.WithItem(CCJSqlParser.java:6199)
  503. at net.sf.jsqlparser.parser.CCJSqlParser.WithList(CCJSqlParser.java:6131)
  504. at net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:220)
  505. at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:153)
  506. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:188)
  507. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:63)
  508. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:38)
  509. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:49)
  510. ... 99 common frames omitted
  511. 16:27:31.491 [http-nio-8080-exec-2] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - Required request body is missing: public org.springframework.http.ResponseEntity<byte[]> com.xjrsoft.module.textbook.controller.TextbookController.textbookClaimExportQuery(com.xjrsoft.module.textbook.dto.TextbookClaimExportQueryDto)
  512. org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public org.springframework.http.ResponseEntity<byte[]> com.xjrsoft.module.textbook.controller.TextbookController.textbookClaimExportQuery(com.xjrsoft.module.textbook.dto.TextbookClaimExportQueryDto)
  513. at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:163)
  514. at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:133)
  515. at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:122)
  516. at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:179)
  517. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:146)
  518. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  519. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  520. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  521. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  522. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  523. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  524. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  525. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
  526. at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
  527. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  528. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  529. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  530. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  531. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  532. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  533. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  534. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  535. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  536. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  537. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  538. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  539. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  540. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  541. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  542. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  543. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  544. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  545. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  546. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  547. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  548. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  549. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  550. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  551. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  552. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  553. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  554. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  555. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  556. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  557. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  558. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  559. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  560. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  561. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  562. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  563. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  564. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  565. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  566. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  567. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  568. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  569. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  570. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  571. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  572. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  573. at java.base/java.lang.Thread.run(Thread.java:834)
  574. 16:27:48.788 [http-nio-8080-exec-3] ERROR c.x.c.e.GlobalExceptionHandler - [globalExceptionHandler,34] - nested exception is org.apache.ibatis.exceptions.PersistenceException:
  575. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  576. select
  577. t.base_semester_id,
  578. t.class_id,
  579. t1.textbook_id,
  580. sum(t2.stock) as num,
  581. sum(t1.issue_number) as claimNum
  582. from wf_textbook_claim t
  583. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  584. left join textbook t2 on t2.id = t1.textbook_id
  585. where claim_type = 'claim_student'
  586. amd t.base_semester_id = ?
  587. and t.class_id = ?
  588. and t1.textbook_id = ?
  589. group by t.base_semester_id, t.class_id, t1.textbook_id
  590. )
  591. select
  592. t.base_semester_id,
  593. t.class_id,
  594. t.textbook_id,
  595. t2.name as textbookTypeCn,
  596. t1.book_name,
  597. t1.editor_in_chief,
  598. t1.publishing_house,
  599. t1.issn,
  600. t1.appraisal_price,
  601. t1.subtotal,
  602. t.num,
  603. t.claimNum
  604. from textbook_class t
  605. left join textbook t1 on t1.id = t.textbook_id
  606. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  607. WHERE t1.subject_group_id = ?
  608. and t1.course_subject_id = ?
  609. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  610. select
  611. t.base_semester_id,
  612. t.class_id,
  613. t1.textbook_id,
  614. sum(t2.stock) as num,
  615. sum(t1.issue_number) as claimNum
  616. from wf_textbook_claim t
  617. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  618. left join textbook t2 on t2.id = t1.textbook_id
  619. where claim_type = 'claim_student'
  620. amd t.base_semester_id = ?
  621. and t.class_id = ?
  622. and t1.textbook_id = ?
  623. group by t.base_semester_id, t.class_id, t1.textbook_id
  624. )
  625. select
  626. t.base_semester_id,
  627. t.class_id,
  628. t.textbook_id,
  629. t2.name as textbookTypeCn,
  630. t1.book_name,
  631. t1.editor_in_chief,
  632. t1.publishing_house,
  633. t1.issn,
  634. t1.appraisal_price,
  635. t1.subtotal,
  636. t.num,
  637. t.claimNum
  638. from textbook_class t
  639. left join textbook t1 on t1.id = t.textbook_id
  640. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  641. WHERE t1.subject_group_id = ?
  642. and t1.course_subject_id = ?
  643. org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
  644. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  645. select
  646. t.base_semester_id,
  647. t.class_id,
  648. t1.textbook_id,
  649. sum(t2.stock) as num,
  650. sum(t1.issue_number) as claimNum
  651. from wf_textbook_claim t
  652. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  653. left join textbook t2 on t2.id = t1.textbook_id
  654. where claim_type = 'claim_student'
  655. amd t.base_semester_id = ?
  656. and t.class_id = ?
  657. and t1.textbook_id = ?
  658. group by t.base_semester_id, t.class_id, t1.textbook_id
  659. )
  660. select
  661. t.base_semester_id,
  662. t.class_id,
  663. t.textbook_id,
  664. t2.name as textbookTypeCn,
  665. t1.book_name,
  666. t1.editor_in_chief,
  667. t1.publishing_house,
  668. t1.issn,
  669. t1.appraisal_price,
  670. t1.subtotal,
  671. t.num,
  672. t.claimNum
  673. from textbook_class t
  674. left join textbook t1 on t1.id = t.textbook_id
  675. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  676. WHERE t1.subject_group_id = ?
  677. and t1.course_subject_id = ?
  678. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  679. select
  680. t.base_semester_id,
  681. t.class_id,
  682. t1.textbook_id,
  683. sum(t2.stock) as num,
  684. sum(t1.issue_number) as claimNum
  685. from wf_textbook_claim t
  686. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  687. left join textbook t2 on t2.id = t1.textbook_id
  688. where claim_type = 'claim_student'
  689. amd t.base_semester_id = ?
  690. and t.class_id = ?
  691. and t1.textbook_id = ?
  692. group by t.base_semester_id, t.class_id, t1.textbook_id
  693. )
  694. select
  695. t.base_semester_id,
  696. t.class_id,
  697. t.textbook_id,
  698. t2.name as textbookTypeCn,
  699. t1.book_name,
  700. t1.editor_in_chief,
  701. t1.publishing_house,
  702. t1.issn,
  703. t1.appraisal_price,
  704. t1.subtotal,
  705. t.num,
  706. t.claimNum
  707. from textbook_class t
  708. left join textbook t1 on t1.id = t.textbook_id
  709. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  710. WHERE t1.subject_group_id = ?
  711. and t1.course_subject_id = ?
  712. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
  713. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
  714. at com.sun.proxy.$Proxy140.selectList(Unknown Source)
  715. at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
  716. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
  717. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
  718. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
  719. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
  720. at com.sun.proxy.$Proxy332.listTextbookClaimExportQuery(Unknown Source)
  721. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl.listTextbookClaimExportQuery(TextbookServiceImpl.java:590)
  722. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$FastClassBySpringCGLIB$$f35afcd1.invoke(<generated>)
  723. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  724. at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
  725. at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
  726. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
  727. at com.xjrsoft.module.textbook.service.impl.TextbookServiceImpl$$EnhancerBySpringCGLIB$$811050fe.listTextbookClaimExportQuery(<generated>)
  728. at com.xjrsoft.module.textbook.controller.TextbookController.textbookClaimExportQuery(TextbookController.java:281)
  729. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  730. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  731. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  732. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  733. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
  734. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
  735. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
  736. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
  737. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  738. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  739. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
  740. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
  741. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  742. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
  743. at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
  744. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  745. at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
  746. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
  747. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  748. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  749. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  750. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  751. at com.xjrsoft.common.xss.XssFilter.doFilter(XssFilter.java:28)
  752. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  753. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  754. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  755. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  756. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  757. at cn.dev33.satoken.filter.SaServletFilter.doFilter(SaServletFilter.java:157)
  758. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  759. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  760. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  761. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  762. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  763. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  764. at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  765. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  766. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  767. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  768. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  769. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
  770. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  771. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  772. at org.ssssssss.magicapi.servlet.javaee.MagicJavaEECorsFilter.doFilter(MagicJavaEECorsFilter.java:15)
  773. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
  774. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
  775. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
  776. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  777. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  778. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
  779. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  780. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  781. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
  782. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
  783. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  784. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
  785. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
  786. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  787. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  788. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  789. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  790. at java.base/java.lang.Thread.run(Thread.java:834)
  791. Caused by: org.apache.ibatis.exceptions.PersistenceException:
  792. ### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  793. select
  794. t.base_semester_id,
  795. t.class_id,
  796. t1.textbook_id,
  797. sum(t2.stock) as num,
  798. sum(t1.issue_number) as claimNum
  799. from wf_textbook_claim t
  800. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  801. left join textbook t2 on t2.id = t1.textbook_id
  802. where claim_type = 'claim_student'
  803. amd t.base_semester_id = ?
  804. and t.class_id = ?
  805. and t1.textbook_id = ?
  806. group by t.base_semester_id, t.class_id, t1.textbook_id
  807. )
  808. select
  809. t.base_semester_id,
  810. t.class_id,
  811. t.textbook_id,
  812. t2.name as textbookTypeCn,
  813. t1.book_name,
  814. t1.editor_in_chief,
  815. t1.publishing_house,
  816. t1.issn,
  817. t1.appraisal_price,
  818. t1.subtotal,
  819. t.num,
  820. t.claimNum
  821. from textbook_class t
  822. left join textbook t1 on t1.id = t.textbook_id
  823. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  824. WHERE t1.subject_group_id = ?
  825. and t1.course_subject_id = ?
  826. ### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  827. select
  828. t.base_semester_id,
  829. t.class_id,
  830. t1.textbook_id,
  831. sum(t2.stock) as num,
  832. sum(t1.issue_number) as claimNum
  833. from wf_textbook_claim t
  834. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  835. left join textbook t2 on t2.id = t1.textbook_id
  836. where claim_type = 'claim_student'
  837. amd t.base_semester_id = ?
  838. and t.class_id = ?
  839. and t1.textbook_id = ?
  840. group by t.base_semester_id, t.class_id, t1.textbook_id
  841. )
  842. select
  843. t.base_semester_id,
  844. t.class_id,
  845. t.textbook_id,
  846. t2.name as textbookTypeCn,
  847. t1.book_name,
  848. t1.editor_in_chief,
  849. t1.publishing_house,
  850. t1.issn,
  851. t1.appraisal_price,
  852. t1.subtotal,
  853. t.num,
  854. t.claimNum
  855. from textbook_class t
  856. left join textbook t1 on t1.id = t.textbook_id
  857. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  858. WHERE t1.subject_group_id = ?
  859. and t1.course_subject_id = ?
  860. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
  861. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
  862. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
  863. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  864. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  865. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  866. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  867. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
  868. ... 77 common frames omitted
  869. Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: with textbook_class as (
  870. select
  871. t.base_semester_id,
  872. t.class_id,
  873. t1.textbook_id,
  874. sum(t2.stock) as num,
  875. sum(t1.issue_number) as claimNum
  876. from wf_textbook_claim t
  877. left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
  878. left join textbook t2 on t2.id = t1.textbook_id
  879. where claim_type = 'claim_student'
  880. amd t.base_semester_id = ?
  881. and t.class_id = ?
  882. and t1.textbook_id = ?
  883. group by t.base_semester_id, t.class_id, t1.textbook_id
  884. )
  885. select
  886. t.base_semester_id,
  887. t.class_id,
  888. t.textbook_id,
  889. t2.name as textbookTypeCn,
  890. t1.book_name,
  891. t1.editor_in_chief,
  892. t1.publishing_house,
  893. t1.issn,
  894. t1.appraisal_price,
  895. t1.subtotal,
  896. t.num,
  897. t.claimNum
  898. from textbook_class t
  899. left join textbook t1 on t1.id = t.textbook_id
  900. left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
  901. WHERE t1.subject_group_id = ?
  902. and t1.course_subject_id = ?
  903. at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:39)
  904. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:52)
  905. at com.xjrsoft.common.interceptor.DataScopeInnerInterceptor.beforeQuery(DataScopeInnerInterceptor.java:52)
  906. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:78)
  907. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  908. at com.sun.proxy.$Proxy732.query(Unknown Source)
  909. at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
  910. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  911. at com.sun.proxy.$Proxy732.query(Unknown Source)
  912. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  913. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  914. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  915. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  916. at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
  917. at com.github.yulichang.interceptor.MPJInterceptor.intercept(MPJInterceptor.java:78)
  918. at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
  919. at com.sun.proxy.$Proxy732.query(Unknown Source)
  920. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
  921. ... 83 common frames omitted
  922. Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "amd" <S_IDENTIFIER>
  923. at line 13, column 17.
  924. Was expecting one of:
  925. "&"
  926. ")"
  927. "::"
  928. "<<"
  929. ">>"
  930. "COLLATE"
  931. "CONNECT"
  932. "EMIT"
  933. "GROUP"
  934. "HAVING"
  935. "START"
  936. "["
  937. "^"
  938. "|"
  939. at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:31234)
  940. at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:31067)
  941. at net.sf.jsqlparser.parser.CCJSqlParser.WithItem(CCJSqlParser.java:6199)
  942. at net.sf.jsqlparser.parser.CCJSqlParser.WithList(CCJSqlParser.java:6131)
  943. at net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:220)
  944. at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:153)
  945. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:188)
  946. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:63)
  947. at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:38)
  948. at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport.parserSingle(JsqlParserSupport.java:49)
  949. ... 99 common frames omitted