请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

保存会议

老师,TbUserDao下的searchGmId是在查询什么?我查出的是空值

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70fade51] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: SELECT id, open_id, nickname, photo, name, sex, tel, role, root, dept_id, status, create_time FROM tb_user WHERE id=? AND status=1
==> Parameters: 15(Integer)
<==    Columns: id, open_id, nickname, photo, name, sex, tel, role, root, dept_id, status, create_time
<==        Row: 15, o060E5BWEeEMHvwgbGtj_5NLRNxo, Agre, https://thirdwx.qlogo.cn/mmopen/vi_32/hh2c8RvfFfPNCjv9qff5NcjEUhWqXTzicdAMRpAgYNic5oZxELc5H06LaI2SfXRgibsEgSSxfk0DVliclyoJ9oF5GQ/132, 冯鹏义, 男, 13359383250, <<BLOB>>, 1, 1, 1, 2021-09-15 17:05:22
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@70fade51]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f352a25] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: SELECT DISTINCT p.permission_name FROM tb_user u JOIN tb_role r ON JSON_CONTAINS(u.role, CAST(r.id AS CHAR)) JOIN tb_permission p ON JSON_CONTAINS(r.permissions, CAST(p.id AS CHAR)) WHERE u.id=? AND u.status=1;
==> Parameters: 15(Integer)
<==    Columns: permission_name
<==        Row: DEPT:DELETE
<==        Row: DEPT:INSERT
<==        Row: DEPT:UPDATE
<==        Row: EMPLOYEE:DELETE
<==        Row: EMPLOYEE:INSERT
<==        Row: EMPLOYEE:SELECT
<==        Row: EMPLOYEE:UPDATE
<==        Row: MEETING:SELECT
<==        Row: ROOT
<==        Row: USER:DELETE
<==        Row: USER:INSERT
<==        Row: USER:SELECT
<==        Row: USER:UPDATE
<==        Row: WORKFLOW:APPROVAL
<==      Total: 14
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f352a25]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1389cc29] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: SELECT DISTINCT p.permission_name FROM tb_user u JOIN tb_role r ON JSON_CONTAINS(u.role, CAST(r.id AS CHAR)) JOIN tb_permission p ON JSON_CONTAINS(r.permissions, CAST(p.id AS CHAR)) WHERE u.id=? AND u.status=1;
==> Parameters: 15(Integer)
<==    Columns: permission_name
<==        Row: DEPT:DELETE
<==        Row: DEPT:INSERT
<==        Row: DEPT:UPDATE
<==        Row: EMPLOYEE:DELETE
<==        Row: EMPLOYEE:INSERT
<==        Row: EMPLOYEE:SELECT
<==        Row: EMPLOYEE:UPDATE
<==        Row: MEETING:SELECT
<==        Row: ROOT
<==        Row: USER:DELETE
<==        Row: USER:INSERT
<==        Row: USER:SELECT
<==        Row: USER:UPDATE
<==        Row: WORKFLOW:APPROVAL
<==      Total: 14
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1389cc29]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@a562726] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: INSERT INTO tb_meeting SET uuid = ?, title = ?, date = ?, creator_id = ?, start = ?, end = ?, type = ?, members = ?, `desc` = ?, instance_id = ?, status = ?, create_time = NOW()
==> Parameters: 756528869d7b42a9beea9aec7801c56b(String), BBDD(String), 2021-09-20(String), 15(Long), 17:35:00(String), 18:35:00(String), 1(Short), [15,21,24,29](String), 会议内容(String), null, 1(Short)
<==    Updates: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@a562726]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4c897cb2] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: SELECT u.open_id AS openId, u.nickname, u.name, u.photo, u.sex, u.tel, u.email, d.dept_name AS dept, u.hiredate, CASE u.status WHEN 1 THEN "在职" WHEN 2 THEN "离职" END AS status, ( SELECT GROUP_CONCAT( role_name separator "," ) FROM tb_role WHERE JSON_CONTAINS ( u.role, CONVERT ( id, CHAR ) ) ) AS roles FROM tb_user u LEFT JOIN tb_dept d ON u.dept_id = d.id WHERE u.id = ? AND u.status = 1
==> Parameters: 15(Integer)
<==    Columns: openId, nickname, name, photo, sex, tel, email, dept, hiredate, status, roles
<==        Row: o060E5BWEeEMHvwgbGtj_5NLRNxo, Agre, 冯鹏义, https://thirdwx.qlogo.cn/mmopen/vi_32/hh2c8RvfFfPNCjv9qff5NcjEUhWqXTzicdAMRpAgYNic5oZxELc5H06LaI2SfXRgibsEgSSxfk0DVliclyoJ9oF5GQ/132, 男, 13359383250, 2875826952@qq.com, 管理部, 2021-08-01, 在职, <<BLOB>>
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4c897cb2]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@19349d9b] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: SELECT u2.id FROM tb_user u1 JOIN tb_user u2 ON u1.dept_id=u2.dept_id JOIN tb_role r ON JSON_CONTAINS(u2.role, CAST(r.id AS CHAR)) WHERE u1.id=? AND r.id=2 AND u1.status = 1 AND u2.status = 1
==> Parameters: 15(Integer)
<==    Columns: id
<==        Row: 15
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@19349d9b]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@532773f9] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@12d3d3e9] will not be managed by Spring
==>  Preparing: SELECT u.id FROM tb_user u JOIN tb_role r ON JSON_CONTAINS(u.role, CAST(r.id AS CHAR)) WHERE r.id=1 AND u.status = 1
==> Parameters: 
<==      Total: 0
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@532773f9]
17:13:19  ERROR  执行异常
org.apache.ibatis.binding.BindingException: Mapper method 'com.example.emos.wx.db.dao.TbUserDao.searchGmId attempted to return null from a method with a primitive return type (int).
	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:102)
	at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145)
	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86)
	at com.sun.proxy.$Proxy91.searchGmId(Unknown Source)
	at com.example.emos.wx.service.impl.MeetingServiceImpl.startMeetingWorkflow(MeetingServiceImpl.java:165)
	at com.example.emos.wx.service.impl.MeetingServiceImpl.insertMeeting(MeetingServiceImpl.java:50)
	at com.example.emos.wx.controller.MeetingController.insertMeeting(MeetingController.java:77)
	at com.example.emos.wx.controller.MeetingController$$FastClassBySpringCGLIB$$abe39e21.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
	at com.example.emos.wx.aop.TokenAspect.around(TokenAspect.java:25)
	at jdk.internal.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
	at org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)
	at org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)
	at org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
	at com.example.emos.wx.controller.MeetingController$$EnhancerBySpringCGLIB$$976c279.insertMeeting(<generated>)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1063)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:228)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at com.example.emos.wx.config.shiro.OAuth2Filter.doFilterInternal(OAuth2Filter.java:127)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at com.example.emos.wx.config.shiro.OAuth2Filter.doFilterInternal(OAuth2Filter.java:127)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at com.example.emos.wx.config.xss.XssFilter.doFilter(XssFilter.java:18)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:190)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:163)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1723)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:835)
17:13:19  WARN   Resolved [org.apache.ibatis.binding.BindingException: Mapper method 'com.example.emos.wx.db.dao.TbUserDao.searchGmId attempted to return null from a method with a primitive return type (int).]

正在回答 回答被采纳积分+3

1回答

神思者 2021-09-15 18:45:12

你检查一下用户表里边有没有总经理这样的用户

0 回复 有任何疑惑可以回复我~
  • 提问者 慕圣0402984 #1
    我把我注册的权限改成0,2然后创建会议,点击保存的时候会出现这个问题。权限为0,1时就可以正常保存,但是保存的会议状态是3,在待审批页面看不到会议
    回复 有任何疑惑可以回复我~ 2021-09-15 19:16:42
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信