From 37ab806a316e2bf65826e0635a70cd9984cdc63f Mon Sep 17 00:00:00 2001 From: jevononlie <728254585@qq.com> Date: Wed, 8 May 2024 17:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/log-debug-2024-05-08_09-21.0.log | 15 +++ .../error/log-error-2024-05-02.0.log | 62 +++++++++++++ log.path_IS_UNDEFINED/log_debug.log | 92 ++++++++++++++++--- log.path_IS_UNDEFINED/log_error.log | 63 +------------ log.path_IS_UNDEFINED/log_info.log | 21 +++++ log.path_IS_UNDEFINED/log_warn.log | 10 ++ .../java/cc/yunxi/domain/dto/UserDTO.java | 9 -- .../main/java/cc/yunxi/domain/po/Client.java | 9 -- .../yunxi/domain/vo/client/ClientRespVO.java | 6 -- .../cc/yunxi/service/IManagerService.java | 8 -- .../cc/yunxi/service/impl/CommonService.java | 15 --- .../service/impl/ManagerServiceImpl.java | 8 -- 12 files changed, 186 insertions(+), 132 deletions(-) create mode 100644 log.path_IS_UNDEFINED/debug/log-debug-2024-05-08_09-21.0.log create mode 100644 log.path_IS_UNDEFINED/error/log-error-2024-05-02.0.log diff --git a/log.path_IS_UNDEFINED/debug/log-debug-2024-05-08_09-21.0.log b/log.path_IS_UNDEFINED/debug/log-debug-2024-05-08_09-21.0.log new file mode 100644 index 0000000..5993423 --- /dev/null +++ b/log.path_IS_UNDEFINED/debug/log-debug-2024-05-08_09-21.0.log @@ -0,0 +1,15 @@ +2024-05-08 09:21:05.098 [http-nio-8808-exec-10] DEBUG c.y.mapper.RecycleOrderMapper.selectPage_mpCount - ==> Preparing: SELECT COUNT(*) FROM nx_recycle_order WHERE (order_type_id = ? AND client_id = ? AND order_status_id = ?) +2024-05-08 09:21:05.101 [http-nio-8808-exec-10] DEBUG c.y.mapper.RecycleOrderMapper.selectPage_mpCount - ==> Parameters: 520193382480351557(String), 1773524613963386881(String), 520192817293693253(String) +2024-05-08 09:21:05.123 [http-nio-8808-exec-10] DEBUG c.y.mapper.RecycleOrderMapper.selectPage_mpCount - <== Total: 1 +2024-05-08 09:21:07.215 [http-nio-8808-exec-2] DEBUG cc.yunxi.mapper.ManagerMapper.getUnitListByPhone - ==> Preparing: SELECT b.f_full_name as unitName FROM nx_manager a LEFT JOIN base_organize b ON a.company_id = b.f_id WHERE a.mobile_phone = ? +2024-05-08 09:21:07.217 [http-nio-8808-exec-2] DEBUG cc.yunxi.mapper.ManagerMapper.getUnitListByPhone - ==> Parameters: 13601921745(String) +2024-05-08 09:21:07.237 [http-nio-8808-exec-2] DEBUG cc.yunxi.mapper.ManagerMapper.getUnitListByPhone - <== Total: 2 +2024-05-08 09:21:07.315 [http-nio-8808-exec-6] DEBUG cc.yunxi.mapper.ClientAddressMapper.selectList - ==> Preparing: SELECT id,client_id,receive_user_name,receive_mobile_phone,receive_city,receive_street,receive_house_number,is_default,longitude,latitude,f_creator_time AS creatorTime,f_last_modify_time AS updateTime FROM nx_client_address WHERE (client_id = ?) ORDER BY is_default DESC +2024-05-08 09:21:07.318 [http-nio-8808-exec-6] DEBUG cc.yunxi.mapper.ClientAddressMapper.selectList - ==> Parameters: 1773524613963386881(String) +2024-05-08 09:21:07.345 [http-nio-8808-exec-6] DEBUG cc.yunxi.mapper.ClientAddressMapper.selectList - <== Total: 5 +2024-05-08 09:21:07.789 [http-nio-8808-exec-9] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - ==> Preparing: SELECT a.*, ROUND( 6378.138 * 2 * ASIN( SQRT( POW( SIN(( ? - latitude ) * PI()/ 360 ), 2 ) + COS( ? * PI() / 180 ) * COS( latitude * PI() / 180 ) * POW( SIN(( ? - longitude ) * PI() / 360 ), 2 ))) * 1000 ) AS distance FROM nx_enterprise_recycle_station a WHERE a.latitude IS NOT NULL AND a.longitude IS NOT NULL HAVING distance <= a.accept_range ORDER BY distance ASC LIMIT 1; +2024-05-08 09:21:07.790 [http-nio-8808-exec-9] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - ==> Parameters: 31.031822(String), 31.031822(String), 121.229287(String) +2024-05-08 09:21:07.817 [http-nio-8808-exec-9] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - <== Total: 1 +2024-05-08 09:21:07.823 [http-nio-8808-exec-9] DEBUG c.y.m.R.getStationInfoFirstByStationId - ==> Preparing: select f.* , p.product_id, p.recovery_price from nx_product as f left join nx_price_product as p on f.id = p.product_id where exists( select e.parent_id from nx_enterprise_recycle_station as a left join nx_price_recycle as b on a.id=b.recycle_id left join nx_price_product as c on b.price_id= c.price_id left join nx_price as d on d.id=b.price_id left join nx_product as e on e.id=c.product_id where a.id=? and e.parent_id=f.id ) +2024-05-08 09:21:07.826 [http-nio-8808-exec-9] DEBUG c.y.m.R.getStationInfoFirstByStationId - ==> Parameters: 552044082721986181(String) +2024-05-08 09:21:07.851 [http-nio-8808-exec-9] DEBUG c.y.m.R.getStationInfoFirstByStationId - <== Total: 7 diff --git a/log.path_IS_UNDEFINED/error/log-error-2024-05-02.0.log b/log.path_IS_UNDEFINED/error/log-error-2024-05-02.0.log new file mode 100644 index 0000000..14eda6e --- /dev/null +++ b/log.path_IS_UNDEFINED/error/log-error-2024-05-02.0.log @@ -0,0 +1,62 @@ +2024-05-02 22:35:52.951 [main] ERROR s.d.s.web.plugins.DocumentationPluginsBootstrapper - Unable to scan documentation context default +java.lang.TypeNotPresentException: Type cc.yunxi.domain.vo.recycler.RecyclerRespVO not present + at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) + at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) + at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) + at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) + at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) + at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) + at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) + at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) + at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) + at sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68) + at java.lang.reflect.Method.getGenericReturnType(Method.java:255) + at com.fasterxml.classmate.ResolvedTypeWithMembers.resolveMethod(ResolvedTypeWithMembers.java:570) + at com.fasterxml.classmate.ResolvedTypeWithMembers.resolveMemberMethods(ResolvedTypeWithMembers.java:388) + at com.fasterxml.classmate.ResolvedTypeWithMembers.getMemberMethods(ResolvedTypeWithMembers.java:201) + at springfox.documentation.spring.web.readers.operation.HandlerMethodResolver.getMemberMethods(HandlerMethodResolver.java:151) + at springfox.documentation.spring.web.readers.operation.HandlerMethodResolver.resolvedMethod(HandlerMethodResolver.java:136) + at springfox.documentation.spring.web.readers.operation.HandlerMethodResolver.methodReturnType(HandlerMethodResolver.java:65) + at springfox.documentation.spring.web.WebMvcRequestHandler.getReturnType(WebMvcRequestHandler.java:147) + at springfox.documentation.spi.service.contexts.RequestMappingContext.getReturnType(RequestMappingContext.java:213) + at springfox.documentation.spi.service.contexts.Orderings.qualifiedMethodName(Orderings.java:76) + at java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:469) + at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) + at java.util.TimSort.sort(TimSort.java:220) + at java.util.Arrays.sort(Arrays.java:1512) + at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348) + at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) + at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) + at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) + at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) + at springfox.documentation.spring.web.scanners.ApiListingScanner.sortedByMethods(ApiListingScanner.java:205) + at springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:142) + at springfox.documentation.spring.web.scanners.ApiDocumentationScanner.scan(ApiDocumentationScanner.java:69) + at springfox.documentation.spring.web.plugins.AbstractDocumentationPluginsBootstrapper.scanDocumentation(AbstractDocumentationPluginsBootstrapper.java:97) + at springfox.documentation.spring.web.plugins.AbstractDocumentationPluginsBootstrapper.bootstrapDocumentationPlugins(AbstractDocumentationPluginsBootstrapper.java:83) + at springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.start(DocumentationPluginsBootstrapper.java:94) + at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178) + at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) + at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356) + at java.lang.Iterable.forEach(Iterable.java:75) + at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155) + at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123) + at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) + at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) + at cc.yunxi.NxhsApplication.main(NxhsApplication.java:15) +Caused by: java.lang.ClassNotFoundException: cc.yunxi.domain.vo.recycler.RecyclerRespVO + at java.net.URLClassLoader.findClass(URLClassLoader.java:382) + at java.lang.ClassLoader.loadClass(ClassLoader.java:424) + at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) + at java.lang.ClassLoader.loadClass(ClassLoader.java:357) + at java.lang.Class.forName0(Native Method) + at java.lang.Class.forName(Class.java:348) + at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) + ... 50 common frames omitted diff --git a/log.path_IS_UNDEFINED/log_debug.log b/log.path_IS_UNDEFINED/log_debug.log index 5993423..b807b5e 100644 --- a/log.path_IS_UNDEFINED/log_debug.log +++ b/log.path_IS_UNDEFINED/log_debug.log @@ -1,15 +1,77 @@ -2024-05-08 09:21:05.098 [http-nio-8808-exec-10] DEBUG c.y.mapper.RecycleOrderMapper.selectPage_mpCount - ==> Preparing: SELECT COUNT(*) FROM nx_recycle_order WHERE (order_type_id = ? AND client_id = ? AND order_status_id = ?) -2024-05-08 09:21:05.101 [http-nio-8808-exec-10] DEBUG c.y.mapper.RecycleOrderMapper.selectPage_mpCount - ==> Parameters: 520193382480351557(String), 1773524613963386881(String), 520192817293693253(String) -2024-05-08 09:21:05.123 [http-nio-8808-exec-10] DEBUG c.y.mapper.RecycleOrderMapper.selectPage_mpCount - <== Total: 1 -2024-05-08 09:21:07.215 [http-nio-8808-exec-2] DEBUG cc.yunxi.mapper.ManagerMapper.getUnitListByPhone - ==> Preparing: SELECT b.f_full_name as unitName FROM nx_manager a LEFT JOIN base_organize b ON a.company_id = b.f_id WHERE a.mobile_phone = ? -2024-05-08 09:21:07.217 [http-nio-8808-exec-2] DEBUG cc.yunxi.mapper.ManagerMapper.getUnitListByPhone - ==> Parameters: 13601921745(String) -2024-05-08 09:21:07.237 [http-nio-8808-exec-2] DEBUG cc.yunxi.mapper.ManagerMapper.getUnitListByPhone - <== Total: 2 -2024-05-08 09:21:07.315 [http-nio-8808-exec-6] DEBUG cc.yunxi.mapper.ClientAddressMapper.selectList - ==> Preparing: SELECT id,client_id,receive_user_name,receive_mobile_phone,receive_city,receive_street,receive_house_number,is_default,longitude,latitude,f_creator_time AS creatorTime,f_last_modify_time AS updateTime FROM nx_client_address WHERE (client_id = ?) ORDER BY is_default DESC -2024-05-08 09:21:07.318 [http-nio-8808-exec-6] DEBUG cc.yunxi.mapper.ClientAddressMapper.selectList - ==> Parameters: 1773524613963386881(String) -2024-05-08 09:21:07.345 [http-nio-8808-exec-6] DEBUG cc.yunxi.mapper.ClientAddressMapper.selectList - <== Total: 5 -2024-05-08 09:21:07.789 [http-nio-8808-exec-9] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - ==> Preparing: SELECT a.*, ROUND( 6378.138 * 2 * ASIN( SQRT( POW( SIN(( ? - latitude ) * PI()/ 360 ), 2 ) + COS( ? * PI() / 180 ) * COS( latitude * PI() / 180 ) * POW( SIN(( ? - longitude ) * PI() / 360 ), 2 ))) * 1000 ) AS distance FROM nx_enterprise_recycle_station a WHERE a.latitude IS NOT NULL AND a.longitude IS NOT NULL HAVING distance <= a.accept_range ORDER BY distance ASC LIMIT 1; -2024-05-08 09:21:07.790 [http-nio-8808-exec-9] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - ==> Parameters: 31.031822(String), 31.031822(String), 121.229287(String) -2024-05-08 09:21:07.817 [http-nio-8808-exec-9] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - <== Total: 1 -2024-05-08 09:21:07.823 [http-nio-8808-exec-9] DEBUG c.y.m.R.getStationInfoFirstByStationId - ==> Preparing: select f.* , p.product_id, p.recovery_price from nx_product as f left join nx_price_product as p on f.id = p.product_id where exists( select e.parent_id from nx_enterprise_recycle_station as a left join nx_price_recycle as b on a.id=b.recycle_id left join nx_price_product as c on b.price_id= c.price_id left join nx_price as d on d.id=b.price_id left join nx_product as e on e.id=c.product_id where a.id=? and e.parent_id=f.id ) -2024-05-08 09:21:07.826 [http-nio-8808-exec-9] DEBUG c.y.m.R.getStationInfoFirstByStationId - ==> Parameters: 552044082721986181(String) -2024-05-08 09:21:07.851 [http-nio-8808-exec-9] DEBUG c.y.m.R.getStationInfoFirstByStationId - <== Total: 7 +2024-05-08 16:35:30.712 [http-nio-8808-exec-3] DEBUG cc.yunxi.mapper.ProductMapper.selectList - ==> Preparing: SELECT id,parent_id,code,name,spec,description,photo,unit,f_creator_time,f_delete_mark AS deleted FROM nx_product WHERE (f_delete_mark IS NULL AND parent_id IS NULL) +2024-05-08 16:35:30.731 [http-nio-8808-exec-3] DEBUG cc.yunxi.mapper.ProductMapper.selectList - ==> Parameters: +2024-05-08 16:35:30.828 [http-nio-8808-exec-3] DEBUG cc.yunxi.mapper.ProductMapper.selectList - <== Total: 8 +2024-05-08 16:35:39.679 [http-nio-8808-exec-8] DEBUG cc.yunxi.mapper.ProductMapper.selectList - ==> Preparing: SELECT id,parent_id,code,name,spec,description,photo,unit,f_creator_time,f_delete_mark AS deleted FROM nx_product WHERE (f_delete_mark IS NULL AND parent_id IS NULL) +2024-05-08 16:35:39.687 [http-nio-8808-exec-8] DEBUG cc.yunxi.mapper.ProductMapper.selectList - ==> Parameters: +2024-05-08 16:35:39.722 [http-nio-8808-exec-8] DEBUG cc.yunxi.mapper.ProductMapper.selectList - <== Total: 8 +2024-05-08 16:35:42.464 [http-nio-8808-exec-7] DEBUG cc.yunxi.mapper.ProductMapper.selectList - ==> Preparing: SELECT id,parent_id,code,name,spec,description,photo,unit,f_creator_time,f_delete_mark AS deleted FROM nx_product WHERE (f_delete_mark IS NULL AND parent_id IS NULL) +2024-05-08 16:35:42.465 [http-nio-8808-exec-7] DEBUG cc.yunxi.mapper.ProductMapper.selectList - ==> Parameters: +2024-05-08 16:35:42.484 [http-nio-8808-exec-7] DEBUG cc.yunxi.mapper.ProductMapper.selectList - <== Total: 8 +2024-05-08 16:35:45.770 [http-nio-8808-exec-4] DEBUG cc.yunxi.common.advice.CommonExceptionAdvice - +cc.yunxi.common.exception.UnauthorizedException: 请登录后访问! + at cc.yunxi.interceptor.LoginInterceptor.preHandle(LoginInterceptor.java:41) + at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:148) + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1066) + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964) + 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:696) + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) + at javax.servlet.http.HttpServlet.service(HttpServlet.java:779) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at cc.yunxi.filter.HttpServletRequestReplacedFilter.doFilter(HttpServletRequestReplacedFilter.java:28) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177) + at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:97) + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:41002) + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) + 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:360) + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891) + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784) + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) + at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) + at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) + at java.lang.Thread.run(Thread.java:748) +2024-05-08 16:35:50.732 [http-nio-8808-exec-7] DEBUG cc.yunxi.mapper.ClientMapper.selectOne - ==> Preparing: SELECT id,wx_openid,wx_user_name,nick_name,mobile_phone,head_icon,gender,birthday,banlance,membership_number,membership_point,membership_level,consume_preference,tax_title,tax_id,longitude,latitude,enabled_mark,last_log_time,last_log_ip,f_creator_time AS creatorTime,f_last_modify_time AS updateTime FROM nx_client WHERE (wx_openid = ?) +2024-05-08 16:35:50.734 [http-nio-8808-exec-7] DEBUG cc.yunxi.mapper.ClientMapper.selectOne - ==> Parameters: oYkV869ZkwaZFpHERTTsr2EfIuu4(String) +2024-05-08 16:35:50.768 [http-nio-8808-exec-7] DEBUG cc.yunxi.mapper.ClientMapper.selectOne - <== Total: 1 +2024-05-08 16:35:51.910 [http-nio-8808-exec-8] DEBUG c.y.m.HousingEstateMapper.getNearbyHousingList - ==> Preparing: SELECT a.*, ROUND( 6378.138 * 2 * ASIN( SQRT( POW( SIN(( ? - latitude ) * PI()/ 360 ), 2 ) + COS( ? * PI() / 180 ) * COS( latitude * PI() / 180 ) * POW( SIN(( ? - longitude ) * PI() / 360 ), 2 ))) * 1000 ) AS distance FROM nx_housing_estate a WHERE has_schedule = 1 AND station_id IS NOT NULL AND a.latitude IS NOT NULL AND a.longitude IS NOT NULL HAVING distance <= 20000 ORDER BY distance ASC LIMIT 2; +2024-05-08 16:35:51.913 [http-nio-8808-exec-8] DEBUG c.y.m.HousingEstateMapper.getNearbyHousingList - ==> Parameters: 31.032410(String), 31.032410(String), 121.226540(String) +2024-05-08 16:35:51.965 [http-nio-8808-exec-8] DEBUG c.y.m.HousingEstateMapper.getNearbyHousingList - <== Total: 2 +2024-05-08 16:35:52.080 [http-nio-8808-exec-5] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - ==> Preparing: SELECT a.*, ROUND( 6378.138 * 2 * ASIN( SQRT( POW( SIN(( ? - latitude ) * PI()/ 360 ), 2 ) + COS( ? * PI() / 180 ) * COS( latitude * PI() / 180 ) * POW( SIN(( ? - longitude ) * PI() / 360 ), 2 ))) * 1000 ) AS distance FROM nx_enterprise_recycle_station a WHERE a.latitude IS NOT NULL AND a.longitude IS NOT NULL HAVING distance <= a.accept_range ORDER BY distance ASC LIMIT 1; +2024-05-08 16:35:52.082 [http-nio-8808-exec-5] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - ==> Parameters: 31.032410(String), 31.032410(String), 121.226540(String) +2024-05-08 16:35:52.100 [http-nio-8808-exec-5] DEBUG c.y.mapper.RecycleStationMapper.getNearbyStation - <== Total: 1 +2024-05-08 16:35:52.110 [http-nio-8808-exec-5] DEBUG c.y.m.R.getStationInfoFirstByStationId - ==> Preparing: select f.* , p.product_id, p.recovery_price from nx_product as f left join nx_price_product as p on f.id = p.product_id where exists( select e.parent_id from nx_enterprise_recycle_station as a left join nx_price_recycle as b on a.id=b.recycle_id left join nx_price_product as c on b.price_id= c.price_id left join nx_price as d on d.id=b.price_id left join nx_product as e on e.id=c.product_id where a.id=? and e.parent_id=f.id ) +2024-05-08 16:35:52.112 [http-nio-8808-exec-5] DEBUG c.y.m.R.getStationInfoFirstByStationId - ==> Parameters: 552044082721986181(String) +2024-05-08 16:35:52.137 [http-nio-8808-exec-5] DEBUG c.y.m.R.getStationInfoFirstByStationId - <== Total: 7 diff --git a/log.path_IS_UNDEFINED/log_error.log b/log.path_IS_UNDEFINED/log_error.log index 14eda6e..fa21d7e 100644 --- a/log.path_IS_UNDEFINED/log_error.log +++ b/log.path_IS_UNDEFINED/log_error.log @@ -1,62 +1 @@ -2024-05-02 22:35:52.951 [main] ERROR s.d.s.web.plugins.DocumentationPluginsBootstrapper - Unable to scan documentation context default -java.lang.TypeNotPresentException: Type cc.yunxi.domain.vo.recycler.RecyclerRespVO not present - at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) - at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) - at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) - at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) - at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) - at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) - at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) - at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) - at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) - at sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68) - at java.lang.reflect.Method.getGenericReturnType(Method.java:255) - at com.fasterxml.classmate.ResolvedTypeWithMembers.resolveMethod(ResolvedTypeWithMembers.java:570) - at com.fasterxml.classmate.ResolvedTypeWithMembers.resolveMemberMethods(ResolvedTypeWithMembers.java:388) - at com.fasterxml.classmate.ResolvedTypeWithMembers.getMemberMethods(ResolvedTypeWithMembers.java:201) - at springfox.documentation.spring.web.readers.operation.HandlerMethodResolver.getMemberMethods(HandlerMethodResolver.java:151) - at springfox.documentation.spring.web.readers.operation.HandlerMethodResolver.resolvedMethod(HandlerMethodResolver.java:136) - at springfox.documentation.spring.web.readers.operation.HandlerMethodResolver.methodReturnType(HandlerMethodResolver.java:65) - at springfox.documentation.spring.web.WebMvcRequestHandler.getReturnType(WebMvcRequestHandler.java:147) - at springfox.documentation.spi.service.contexts.RequestMappingContext.getReturnType(RequestMappingContext.java:213) - at springfox.documentation.spi.service.contexts.Orderings.qualifiedMethodName(Orderings.java:76) - at java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:469) - at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) - at java.util.TimSort.sort(TimSort.java:220) - at java.util.Arrays.sort(Arrays.java:1512) - at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348) - at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) - at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) - at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) - at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) - at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) - at springfox.documentation.spring.web.scanners.ApiListingScanner.sortedByMethods(ApiListingScanner.java:205) - at springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:142) - at springfox.documentation.spring.web.scanners.ApiDocumentationScanner.scan(ApiDocumentationScanner.java:69) - at springfox.documentation.spring.web.plugins.AbstractDocumentationPluginsBootstrapper.scanDocumentation(AbstractDocumentationPluginsBootstrapper.java:97) - at springfox.documentation.spring.web.plugins.AbstractDocumentationPluginsBootstrapper.bootstrapDocumentationPlugins(AbstractDocumentationPluginsBootstrapper.java:83) - at springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.start(DocumentationPluginsBootstrapper.java:94) - at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178) - at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) - at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356) - at java.lang.Iterable.forEach(Iterable.java:75) - at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155) - at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123) - at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) - at cc.yunxi.NxhsApplication.main(NxhsApplication.java:15) -Caused by: java.lang.ClassNotFoundException: cc.yunxi.domain.vo.recycler.RecyclerRespVO - at java.net.URLClassLoader.findClass(URLClassLoader.java:382) - at java.lang.ClassLoader.loadClass(ClassLoader.java:424) - at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) - at java.lang.ClassLoader.loadClass(ClassLoader.java:357) - at java.lang.Class.forName0(Native Method) - at java.lang.Class.forName(Class.java:348) - at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) - ... 50 common frames omitted +2024-05-08 16:35:45.759 [http-nio-8808-exec-4] ERROR cc.yunxi.common.advice.CommonExceptionAdvice - 自定义异常 -> cc.yunxi.common.exception.UnauthorizedException , 异常原因:请登录后访问! diff --git a/log.path_IS_UNDEFINED/log_info.log b/log.path_IS_UNDEFINED/log_info.log index 00c8af9..72202f6 100644 --- a/log.path_IS_UNDEFINED/log_info.log +++ b/log.path_IS_UNDEFINED/log_info.log @@ -28,3 +28,24 @@ 2024-05-08 09:21:07.871 [http-nio-8808-exec-9] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【471】ms 2024-05-08 11:16:22.282 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated... 2024-05-08 11:16:22.298 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed. +2024-05-08 16:35:29.857 [http-nio-8808-exec-3] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/index/products】, 请求方法:【GET】, 协议:【application/json】, 请求数据: 【】 +2024-05-08 16:35:31.023 [http-nio-8808-exec-3] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【1170】ms +2024-05-08 16:35:39.654 [http-nio-8808-exec-8] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/index/products】, 请求方法:【GET】, 协议:【application/json】, 请求数据: 【】 +2024-05-08 16:35:39.780 [http-nio-8808-exec-8] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【126】ms +2024-05-08 16:35:42.439 [http-nio-8808-exec-7] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/index/products】, 请求方法:【GET】, 协议:【application/json】, 请求数据: 【】 +2024-05-08 16:35:42.524 [http-nio-8808-exec-7] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【85】ms +2024-05-08 16:35:45.743 [http-nio-8808-exec-4] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/recycle-order/page】, 请求方法:【POST】, 协议:【application/json】, 请求数据: 【{"pageNo":1,"pageSize":10,"status":"PENDING","location":{"longitude":"121.226540","latitude":"31.032410"},"orderType":"SH_ORDER"}】 +2024-05-08 16:35:45.744 [http-nio-8808-exec-4] INFO cc.yunxi.interceptor.LoginInterceptor - request token = null +2024-05-08 16:35:45.773 [http-nio-8808-exec-4] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【30】ms +2024-05-08 16:35:50.343 [http-nio-8808-exec-7] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/common/shlogin】, 请求方法:【POST】, 协议:【application/json】, 请求数据: 【{"code":"0c3Sha0w3Ig7K238yL2w3h5UKf2Sha0Q","encryptedData":"9tJ8aehez2SY18MXZQuWV9qlMJ8gNZ0TN6bet0j59NbZRHCNv9szw1QUrc53bccxN+r0OQ4wUfO4L1e2fN0vKURsbwZOvD7z4teYlAQaVDlGPs/ndH7ZVzJKkvPzPMbKNL3DYWF6fNHEgqNAc2bAMba5xxF/0t+ehcur4YCMfdAZWSFtMALgzHRK4dzoEZtnIu3DiBbx4twfhrWT685A4g==","iv":"PeN2P67hLi5XT7+/9abSVw==","userType":1}】 +2024-05-08 16:35:50.413 [http-nio-8808-exec-7] INFO cc.yunxi.service.impl.CommonService - login request body:WxLoginDTO(code=0c3Sha0w3Ig7K238yL2w3h5UKf2Sha0Q, encryptedData=9tJ8aehez2SY18MXZQuWV9qlMJ8gNZ0TN6bet0j59NbZRHCNv9szw1QUrc53bccxN+r0OQ4wUfO4L1e2fN0vKURsbwZOvD7z4teYlAQaVDlGPs/ndH7ZVzJKkvPzPMbKNL3DYWF6fNHEgqNAc2bAMba5xxF/0t+ehcur4YCMfdAZWSFtMALgzHRK4dzoEZtnIu3DiBbx4twfhrWT685A4g==, iv=PeN2P67hLi5XT7+/9abSVw==, userType=1) +2024-05-08 16:35:50.567 [http-nio-8808-exec-7] INFO cc.yunxi.service.impl.CommonService - WXserver code2Session return {"session_key":"k3Cw3QKZx2x5tKRe9eHS7w==","openid":"oYkV869ZkwaZFpHERTTsr2EfIuu4"} +2024-05-08 16:35:50.890 [http-nio-8808-exec-7] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【548】ms +2024-05-08 16:35:51.753 [http-nio-8808-exec-8] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/housing-estate/nearby】, 请求方法:【GET】, 协议:【application/json】, 请求数据: 【longitude=121.226540&latitude=31.032410】 +2024-05-08 16:35:51.754 [http-nio-8808-exec-8] INFO cc.yunxi.interceptor.LoginInterceptor - request token = eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyIjp7InVzZXJUeXBlIjoiQ0xJRU5UIiwiaWQiOiIxNzczNTI0NjEzOTYzMzg2ODgxIiwidXNlcm5hbWUiOiIxMzYiLCJwaG9uZSI6IjEzNjAxOTIxNzQ1Iiwib3BlbmlkIjoib1lrVjg2OVprd2FaRnBIRVJUVHNyMkVmSXV1NCIsInRpbWVFeHBpcmUiOjI1OTIwMDAwMDB9LCJleHAiOjE3MTc3NDkzNTB9.AvG24t1oQcMsmHK35ISdMAd9Mgpo9OU7bmr1HGgNG5mimRwTlEozKMmRgjklGIHAakA8a64hUyVJa92bq5fl1MDBUZZ9_sL0qaqk9fjI7sY-OrIK6of6cRI_3UUwhJqObG5_AJmGB5M2TrU4TY-zU7YezNH2hNx8t6txl925ybYmpdo6CEDHXPHDsZKeWeb7LiBgutSo0xG29hwTlsYRjstUVRgabFcQDgUVxEolTCL120QK8R7nv2uHB8T85BU7zFchUAeI1nLYqvJsT_o1fayDXrejQsmTmn9tehQpoauPrL50YgVl9XXbWd5xUKxad6p48hCY8-NLHUxI0x7Now +2024-05-08 16:35:51.798 [http-nio-8808-exec-8] INFO cc.yunxi.interceptor.LoginInterceptor - 当前用户信息: 【UserDTO(userType=CLIENT, id=1773524613963386881, stationId=null, username=136, phone=13601921745, openid=oYkV869ZkwaZFpHERTTsr2EfIuu4, timeExpire=2592000000, token=null, companyId=null)】 +2024-05-08 16:35:51.985 [http-nio-8808-exec-8] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【233】ms +2024-05-08 16:35:52.006 [http-nio-8808-exec-5] INFO cc.yunxi.interceptor.StatsInterceptor - 请求路径:【/api/recycle-station/nearby】, 请求方法:【GET】, 协议:【application/json】, 请求数据: 【longitude=121.226540&latitude=31.032410】 +2024-05-08 16:35:52.006 [http-nio-8808-exec-5] INFO cc.yunxi.interceptor.LoginInterceptor - request token = eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyIjp7InVzZXJUeXBlIjoiQ0xJRU5UIiwiaWQiOiIxNzczNTI0NjEzOTYzMzg2ODgxIiwidXNlcm5hbWUiOiIxMzYiLCJwaG9uZSI6IjEzNjAxOTIxNzQ1Iiwib3BlbmlkIjoib1lrVjg2OVprd2FaRnBIRVJUVHNyMkVmSXV1NCIsInRpbWVFeHBpcmUiOjI1OTIwMDAwMDB9LCJleHAiOjE3MTc3NDkzNTB9.AvG24t1oQcMsmHK35ISdMAd9Mgpo9OU7bmr1HGgNG5mimRwTlEozKMmRgjklGIHAakA8a64hUyVJa92bq5fl1MDBUZZ9_sL0qaqk9fjI7sY-OrIK6of6cRI_3UUwhJqObG5_AJmGB5M2TrU4TY-zU7YezNH2hNx8t6txl925ybYmpdo6CEDHXPHDsZKeWeb7LiBgutSo0xG29hwTlsYRjstUVRgabFcQDgUVxEolTCL120QK8R7nv2uHB8T85BU7zFchUAeI1nLYqvJsT_o1fayDXrejQsmTmn9tehQpoauPrL50YgVl9XXbWd5xUKxad6p48hCY8-NLHUxI0x7Now +2024-05-08 16:35:52.058 [http-nio-8808-exec-5] INFO cc.yunxi.interceptor.LoginInterceptor - 当前用户信息: 【UserDTO(userType=CLIENT, id=1773524613963386881, stationId=null, username=136, phone=13601921745, openid=oYkV869ZkwaZFpHERTTsr2EfIuu4, timeExpire=2592000000, token=null, companyId=null)】 +2024-05-08 16:35:52.175 [http-nio-8808-exec-5] INFO cc.yunxi.interceptor.StatsInterceptor - 请求耗时:【168】ms diff --git a/log.path_IS_UNDEFINED/log_warn.log b/log.path_IS_UNDEFINED/log_warn.log index 563682e..ce0d99b 100644 --- a/log.path_IS_UNDEFINED/log_warn.log +++ b/log.path_IS_UNDEFINED/log_warn.log @@ -9,3 +9,13 @@ 2024-05-08 09:20:20.124 [http-nio-8808-exec-8] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@6983bd42 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. 2024-05-08 09:20:20.126 [http-nio-8808-exec-1] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@30fabcc0 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. 2024-05-08 09:20:20.127 [http-nio-8808-exec-8] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@6b9a20b8 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.451 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@a55bfa (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.466 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@47179500 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.486 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@427814c1 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.497 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@68a8edff (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.508 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@19879b6a (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.601 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@62c3a2cf (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.611 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@609f6c4a (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.639 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@4ff7a2b3 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.647 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@6a0e3cec (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. +2024-05-08 16:35:30.655 [http-nio-8808-exec-3] WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@15a42eb8 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value. diff --git a/nxhs-service/src/main/java/cc/yunxi/domain/dto/UserDTO.java b/nxhs-service/src/main/java/cc/yunxi/domain/dto/UserDTO.java index e327bb3..10ce477 100644 --- a/nxhs-service/src/main/java/cc/yunxi/domain/dto/UserDTO.java +++ b/nxhs-service/src/main/java/cc/yunxi/domain/dto/UserDTO.java @@ -43,13 +43,4 @@ public class UserDTO { @ApiModelProperty(value = "公司id", required = false) private String companyId; - @ApiModelProperty(value = "是否单位散户", required = false) - private String isClientUnit; - - - @ApiModelProperty("订单的散户类型;,1非单位订单,2单位订单") - private Integer clientType; - - @ApiModelProperty("所属单位名称") - private String clientUnitName; } diff --git a/nxhs-service/src/main/java/cc/yunxi/domain/po/Client.java b/nxhs-service/src/main/java/cc/yunxi/domain/po/Client.java index bc05143..b770629 100644 --- a/nxhs-service/src/main/java/cc/yunxi/domain/po/Client.java +++ b/nxhs-service/src/main/java/cc/yunxi/domain/po/Client.java @@ -114,13 +114,4 @@ public class Client { @TableField("f_last_modify_time") private LocalDateTime updateTime; - - @ApiModelProperty("订单的散户类型;1非单位订单,2单位订单") - @TableField("client_type") - private Integer clientType; - - @ApiModelProperty("所属单位名称") - @TableField("client_unit_name") - private String clientUnitName; - } diff --git a/nxhs-service/src/main/java/cc/yunxi/domain/vo/client/ClientRespVO.java b/nxhs-service/src/main/java/cc/yunxi/domain/vo/client/ClientRespVO.java index fcf457a..eba423d 100644 --- a/nxhs-service/src/main/java/cc/yunxi/domain/vo/client/ClientRespVO.java +++ b/nxhs-service/src/main/java/cc/yunxi/domain/vo/client/ClientRespVO.java @@ -82,10 +82,4 @@ public class ClientRespVO { @ApiModelProperty("创建时间") private LocalDateTime creatorTime; - @ApiModelProperty("是否有单位(0-无单位,1-有单位)") - private Integer clientType; - - @ApiModelProperty("所属单位名称") - private String clientUnitName; - } diff --git a/nxhs-service/src/main/java/cc/yunxi/service/IManagerService.java b/nxhs-service/src/main/java/cc/yunxi/service/IManagerService.java index b502d23..e70bc5e 100644 --- a/nxhs-service/src/main/java/cc/yunxi/service/IManagerService.java +++ b/nxhs-service/src/main/java/cc/yunxi/service/IManagerService.java @@ -16,14 +16,6 @@ import java.util.List; * @since 2024-05-06 03:26:39 */ public interface IManagerService extends IService { - - /** - * 根据手机号获取单位散户信息 - * @param mobilePhone - * @return Manager - */ - List getManagerByphone(String mobilePhone); - /** * 根据手机号获取单位散户所在单位信息列表 * @param mobilePhone diff --git a/nxhs-service/src/main/java/cc/yunxi/service/impl/CommonService.java b/nxhs-service/src/main/java/cc/yunxi/service/impl/CommonService.java index ed57410..61ff59e 100644 --- a/nxhs-service/src/main/java/cc/yunxi/service/impl/CommonService.java +++ b/nxhs-service/src/main/java/cc/yunxi/service/impl/CommonService.java @@ -173,21 +173,6 @@ public class CommonService implements ICommonService { userDTO.setUsername(client.getNickName()); userDTO.setToken(this.createToken(userDTO)); - List manager = managerService.getManagerByphone(userDTO.getPhone()); - if (manager !=null) { - // 单位订单 - userDTO.setClientType(2); -// userDTO.setClientUnitName(manager.getName()); - } else { - // 非单位订单 - // 存量数据,默认值 - Integer clientType = client.getClientType(); - if (clientType == 0) { - clientType = 1; - } - userDTO.setClientType(clientType); - } - return userDTO; } diff --git a/nxhs-service/src/main/java/cc/yunxi/service/impl/ManagerServiceImpl.java b/nxhs-service/src/main/java/cc/yunxi/service/impl/ManagerServiceImpl.java index 76480a8..7f9c51d 100644 --- a/nxhs-service/src/main/java/cc/yunxi/service/impl/ManagerServiceImpl.java +++ b/nxhs-service/src/main/java/cc/yunxi/service/impl/ManagerServiceImpl.java @@ -29,14 +29,6 @@ public class ManagerServiceImpl extends ServiceImpl impl @Resource private ManagerMapper managerMapper; - - @Override - public List getManagerByphone(String mobilePhone) { - LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); - wrapper.eq(Manager::getMobilePhone, mobilePhone); - return this.list(wrapper); - } - @Override public List getUnitNamesByphone(String mobilePhone) { return managerMapper.getUnitListByPhone(mobilePhone);