Commit a84e55624c198b03a72adda8d0e0b2154ec7d28f
1 parent
178cc586
将抽取的数据转换为partspec数据
Showing
7 changed files
with
249 additions
and
2 deletions
logs/info.log
@@ -98802,3 +98802,96 @@ | @@ -98802,3 +98802,96 @@ | ||
98802 | 2023-01-07 11:45:10.242 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | 98802 | 2023-01-07 11:45:10.242 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] |
98803 | 2023-01-07 11:45:10.290 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | 98803 | 2023-01-07 11:45:10.290 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] |
98804 | 2023-01-07 11:45:10.670 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.53 seconds (JVM running for 4.528) | 98804 | 2023-01-07 11:45:10.670 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.53 seconds (JVM running for 4.528) |
98805 | +2023-01-10 14:34:37.813 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader | ||
98806 | +2023-01-10 14:34:37.827 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. | ||
98807 | +2023-01-10 14:34:38.083 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] | ||
98808 | +2023-01-10 14:34:38.147 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@7a5ceedd, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4201c465, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5b799640, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6cb107fd, org.springframework.test.context.transaction.TransactionalTestExecutionListener@710636b0, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3de8f619, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2ab4bc72, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4e5ed836, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@eadd4fb, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@740fb309, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7bd7d6d6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@43f02ef2] | ||
98809 | +2023-01-10 14:34:38.894 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on baiyun with PID 22939 (started by macbookpro in /Users/baiyun/develop/sbmp) | ||
98810 | +2023-01-10 14:34:38.895 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default | ||
98811 | +2023-01-10 14:34:38.942 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:34:38 CST 2023]; root of context hierarchy | ||
98812 | +2023-01-10 14:34:39.425 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final | ||
98813 | +2023-01-10 14:34:42.380 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:34:38 CST 2023]; root of context hierarchy | ||
98814 | +2023-01-10 14:34:42.584 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) | ||
98815 | +2023-01-10 14:34:42.585 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) | ||
98816 | +2023-01-10 14:34:42.621 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98817 | +2023-01-10 14:34:42.622 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98818 | +2023-01-10 14:34:42.673 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98819 | +2023-01-10 14:34:43.075 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 4.609 seconds (JVM running for 7.341) | ||
98820 | +2023-01-10 14:34:53.489 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:34:38 CST 2023]; root of context hierarchy | ||
98821 | +2023-01-10 14:42:05.958 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader | ||
98822 | +2023-01-10 14:42:05.965 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. | ||
98823 | +2023-01-10 14:42:06.049 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] | ||
98824 | +2023-01-10 14:42:06.074 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@7a5ceedd, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4201c465, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5b799640, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6cb107fd, org.springframework.test.context.transaction.TransactionalTestExecutionListener@710636b0, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3de8f619, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2ab4bc72, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4e5ed836, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@eadd4fb, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@740fb309, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7bd7d6d6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@43f02ef2] | ||
98825 | +2023-01-10 14:42:06.623 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on baiyun with PID 23138 (started by macbookpro in /Users/baiyun/develop/sbmp) | ||
98826 | +2023-01-10 14:42:06.624 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default | ||
98827 | +2023-01-10 14:42:06.674 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:42:06 CST 2023]; root of context hierarchy | ||
98828 | +2023-01-10 14:42:07.126 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final | ||
98829 | +2023-01-10 14:42:10.067 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader | ||
98830 | +2023-01-10 14:42:10.077 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. | ||
98831 | +2023-01-10 14:42:10.157 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] | ||
98832 | +2023-01-10 14:42:10.175 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@3c87521, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2aece37d, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@548a102f, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5762806e, org.springframework.test.context.transaction.TransactionalTestExecutionListener@17c386de, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5af97850, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@5ef60048, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@1d548a08, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@16aa0a0a, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@780cb77, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@691a7f8f, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@50a7bc6e] | ||
98833 | +2023-01-10 14:42:10.631 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on baiyun with PID 23144 (started by macbookpro in /Users/baiyun/develop/sbmp) | ||
98834 | +2023-01-10 14:42:10.632 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default | ||
98835 | +2023-01-10 14:42:10.678 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@cecf639: startup date [Tue Jan 10 14:42:10 CST 2023]; root of context hierarchy | ||
98836 | +2023-01-10 14:42:11.195 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final | ||
98837 | +2023-01-10 14:42:14.060 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@cecf639: startup date [Tue Jan 10 14:42:10 CST 2023]; root of context hierarchy | ||
98838 | +2023-01-10 14:42:14.147 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) | ||
98839 | +2023-01-10 14:42:14.148 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) | ||
98840 | +2023-01-10 14:42:14.184 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98841 | +2023-01-10 14:42:14.184 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98842 | +2023-01-10 14:42:14.233 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98843 | +2023-01-10 14:42:14.607 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 4.318 seconds (JVM running for 5.148) | ||
98844 | +2023-01-10 14:42:16.879 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] | ||
98845 | +2023-01-10 14:42:16.913 [main] INFO o.s.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana] | ||
98846 | +2023-01-10 14:42:20.742 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@cecf639: startup date [Tue Jan 10 14:42:10 CST 2023]; root of context hierarchy | ||
98847 | +2023-01-10 14:43:31.996 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader | ||
98848 | +2023-01-10 14:43:32.004 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. | ||
98849 | +2023-01-10 14:43:32.111 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] | ||
98850 | +2023-01-10 14:43:32.141 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@7a5ceedd, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4201c465, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5b799640, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6cb107fd, org.springframework.test.context.transaction.TransactionalTestExecutionListener@710636b0, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3de8f619, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2ab4bc72, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4e5ed836, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@eadd4fb, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@740fb309, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7bd7d6d6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@43f02ef2] | ||
98851 | +2023-01-10 14:43:32.702 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on baiyun with PID 23186 (started by macbookpro in /Users/baiyun/develop/sbmp) | ||
98852 | +2023-01-10 14:43:32.703 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default | ||
98853 | +2023-01-10 14:43:32.748 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:43:32 CST 2023]; root of context hierarchy | ||
98854 | +2023-01-10 14:43:33.218 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final | ||
98855 | +2023-01-10 14:43:35.763 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:43:32 CST 2023]; root of context hierarchy | ||
98856 | +2023-01-10 14:43:35.916 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) | ||
98857 | +2023-01-10 14:43:35.917 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) | ||
98858 | +2023-01-10 14:43:35.946 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98859 | +2023-01-10 14:43:35.946 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98860 | +2023-01-10 14:43:35.984 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98861 | +2023-01-10 14:43:36.268 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.976 seconds (JVM running for 4.975) | ||
98862 | +2023-01-10 14:43:38.640 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] | ||
98863 | +2023-01-10 14:43:38.686 [main] INFO o.s.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana] | ||
98864 | +2023-01-10 14:46:37.642 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:43:32 CST 2023]; root of context hierarchy | ||
98865 | +2023-01-10 14:46:52.489 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader | ||
98866 | +2023-01-10 14:46:52.494 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. | ||
98867 | +2023-01-10 14:46:52.571 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] | ||
98868 | +2023-01-10 14:46:52.592 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@7a5ceedd, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4201c465, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5b799640, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6cb107fd, org.springframework.test.context.transaction.TransactionalTestExecutionListener@710636b0, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3de8f619, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2ab4bc72, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4e5ed836, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@eadd4fb, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@740fb309, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7bd7d6d6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@43f02ef2] | ||
98869 | +2023-01-10 14:46:53.122 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on baiyun with PID 23287 (started by macbookpro in /Users/baiyun/develop/sbmp) | ||
98870 | +2023-01-10 14:46:53.123 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default | ||
98871 | +2023-01-10 14:46:53.173 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:46:53 CST 2023]; root of context hierarchy | ||
98872 | +2023-01-10 14:46:53.685 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final | ||
98873 | +2023-01-10 14:46:56.321 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:46:53 CST 2023]; root of context hierarchy | ||
98874 | +2023-01-10 14:46:56.498 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) | ||
98875 | +2023-01-10 14:46:56.516 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) | ||
98876 | +2023-01-10 14:46:56.558 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98877 | +2023-01-10 14:46:56.558 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98878 | +2023-01-10 14:46:56.606 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98879 | +2023-01-10 14:46:56.963 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 4.229 seconds (JVM running for 5.191) | ||
98880 | +2023-01-10 14:46:59.375 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] | ||
98881 | +2023-01-10 14:46:59.409 [main] INFO o.s.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana] | ||
98882 | +2023-01-10 14:50:11.250 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Tue Jan 10 14:46:53 CST 2023]; root of context hierarchy | ||
98883 | +2023-01-10 14:50:46.451 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader | ||
98884 | +2023-01-10 14:50:46.465 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. | ||
98885 | +2023-01-10 14:50:46.711 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] | ||
98886 | +2023-01-10 14:50:46.845 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@7a5ceedd, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4201c465, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@5b799640, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6cb107fd, org.springframework.test.context.transaction.TransactionalTestExecutionListener@710636b0, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3de8f619, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2ab4bc72, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4e5ed836, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@eadd4fb, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@740fb309, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7bd7d6d6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@43f02ef2] | ||
98887 | +2023-01-10 14:50:48.048 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on baiyun with PID 23416 (started by macbookpro in /Users/baiyun/develop/sbmp) | ||
98888 | +2023-01-10 14:50:48.048 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default | ||
98889 | +2023-01-10 14:50:48.111 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@1433046b: startup date [Tue Jan 10 14:50:48 CST 2023]; root of context hierarchy | ||
98890 | +2023-01-10 14:50:48.676 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final | ||
98891 | +2023-01-10 14:50:52.008 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@1433046b: startup date [Tue Jan 10 14:50:48 CST 2023]; root of context hierarchy | ||
98892 | +2023-01-10 14:50:52.245 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) | ||
98893 | +2023-01-10 14:50:52.246 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) | ||
98894 | +2023-01-10 14:50:52.298 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98895 | +2023-01-10 14:50:52.299 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98896 | +2023-01-10 14:50:52.352 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] | ||
98897 | +2023-01-10 14:50:52.727 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 5.491 seconds (JVM running for 8.252) |
src/main/java/com/sucl/sbmp/sys/biz/SpecPartBiz.java
0 → 100644
1 | +package com.sucl.sbmp.sys.biz; | ||
2 | + | ||
3 | +import com.baomidou.mybatisplus.core.metadata.IPage; | ||
4 | +import com.baomidou.mybatisplus.core.toolkit.Wrappers; | ||
5 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
6 | +import com.sucl.sbmp.sys.entity.SpecPart; | ||
7 | +import com.sucl.sbmp.sys.entity.TempScName; | ||
8 | +import com.sucl.sbmp.sys.entity.TempScParts; | ||
9 | +import com.sucl.sbmp.sys.service.SpecPartService; | ||
10 | +import com.sucl.sbmp.sys.service.TempScNameService; | ||
11 | +import com.sucl.sbmp.sys.service.TempScPartsService; | ||
12 | +import lombok.AllArgsConstructor; | ||
13 | +import org.springframework.stereotype.Service; | ||
14 | + | ||
15 | +import java.util.ArrayList; | ||
16 | +import java.util.List; | ||
17 | +import java.util.Map; | ||
18 | + | ||
19 | +@Service | ||
20 | +@AllArgsConstructor | ||
21 | +public class SpecPartBiz { | ||
22 | + private final TempScPartsService partsService; | ||
23 | + private final TempScNameService nameService; | ||
24 | + private final SpecPartService specPartService; | ||
25 | + /** | ||
26 | + * 将抽取的数据转换到spec_part表中 | ||
27 | + * | ||
28 | + * 调用接口之前将TempScName的yn数据设置为0 | ||
29 | + */ | ||
30 | + public void transferData() { | ||
31 | + for (int i = 1; i < 100; i++) { | ||
32 | + Page<TempScName> page = new Page<>(i, 1000); | ||
33 | + nameService.page(page, Wrappers.<TempScName>lambdaQuery().eq(TempScName::getYn, false)); | ||
34 | + for (TempScName tempScName : page.getRecords()) { | ||
35 | + try { | ||
36 | + List<SpecPart> specParts = new ArrayList<>(); | ||
37 | + List<TempScParts> scParts = partsService.list(Wrappers.<TempScParts>lambdaQuery() | ||
38 | + .eq(TempScParts::getScId, tempScName.getScId())); | ||
39 | + List<String> oldCodes = U.collIds(specPartService.list(Wrappers.<SpecPart>lambdaQuery() | ||
40 | + .select(SpecPart::getPartCode) | ||
41 | + .eq(SpecPart::getSpecCode, tempScName.getCode())), SpecPart::getPartCode); | ||
42 | + Map<String, Integer> partCodeMap = U.transferMap(scParts, TempScParts::getPartNumber, it -> 1, Integer::sum); | ||
43 | + partCodeMap.forEach((k, v) -> { | ||
44 | + if (!oldCodes.contains(k)) { | ||
45 | + SpecPart specPart = new SpecPart(); | ||
46 | + specPart.setPartCode(k); | ||
47 | + specPart.setPartCount(v); | ||
48 | + specPart.setSpecCode(tempScName.getCode()); | ||
49 | + specPart.setStdType(1); | ||
50 | + specParts.add(specPart); | ||
51 | + } | ||
52 | + }); | ||
53 | + tempScName.setYn(Boolean.TRUE); | ||
54 | + nameService.updateById(tempScName); | ||
55 | + U.groupUpdateData(specParts, specPartService::saveOrUpdateBatch); | ||
56 | + } catch (Exception e) { | ||
57 | + e.printStackTrace(); | ||
58 | + } | ||
59 | + } | ||
60 | + } | ||
61 | + } | ||
62 | +} |
src/main/java/com/sucl/sbmp/sys/entity/SpecPart.java
0 → 100644
1 | +package com.sucl.sbmp.sys.entity; | ||
2 | + | ||
3 | +import com.baomidou.mybatisplus.annotation.IdType; | ||
4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
5 | +import lombok.Data; | ||
6 | +import lombok.NoArgsConstructor; | ||
7 | + | ||
8 | +/** | ||
9 | + * 车型配件 | ||
10 | + * <p> | ||
11 | + * create at 2019-12-31 | ||
12 | + * | ||
13 | + * @author 钟奉池 | ||
14 | + */ | ||
15 | +@Data | ||
16 | +@NoArgsConstructor | ||
17 | +public class SpecPart{ | ||
18 | + @TableId(type = IdType.AUTO) | ||
19 | + protected Long id; | ||
20 | + /** | ||
21 | + * 品牌id | ||
22 | + */ | ||
23 | + private Long brandId; | ||
24 | + /** | ||
25 | + * 车系id | ||
26 | + */ | ||
27 | + private Long seriesId; | ||
28 | + /** | ||
29 | + * 车型id | ||
30 | + */ | ||
31 | + private Long modelId; | ||
32 | + /** | ||
33 | + * 配置代码 | ||
34 | + */ | ||
35 | + private String specCode; | ||
36 | + /** | ||
37 | + * 配件代码 | ||
38 | + */ | ||
39 | + private String partCode; | ||
40 | + /** | ||
41 | + * 配件名称 | ||
42 | + */ | ||
43 | + private String partName; | ||
44 | + /** | ||
45 | + * 使用数量 | ||
46 | + */ | ||
47 | + private Integer partCount; | ||
48 | + /** | ||
49 | + * 标准类型 (1:厂家标准,2:霏微标准) | ||
50 | + */ | ||
51 | + private Integer stdType; | ||
52 | +} |
src/main/java/com/sucl/sbmp/sys/mapper/SpecPartMapper.java
0 → 100644
src/main/java/com/sucl/sbmp/sys/service/SpecPartService.java
0 → 100644
src/main/java/com/sucl/sbmp/sys/service/impl/SpecPartServiceImpl.java
0 → 100644
1 | +package com.sucl.sbmp.sys.service.impl; | ||
2 | + | ||
3 | + | ||
4 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
5 | +import com.sucl.sbmp.sys.entity.SpecPart; | ||
6 | +import com.sucl.sbmp.sys.mapper.SpecPartMapper; | ||
7 | +import com.sucl.sbmp.sys.service.SpecPartService; | ||
8 | +import org.springframework.stereotype.Service; | ||
9 | + | ||
10 | +@Service | ||
11 | +public class SpecPartServiceImpl extends ServiceImpl<SpecPartMapper, SpecPart> implements SpecPartService { | ||
12 | +} |
src/test/java/cn/fw/parts/AcquirePartsTest.java
@@ -3,6 +3,7 @@ package cn.fw.parts; | @@ -3,6 +3,7 @@ package cn.fw.parts; | ||
3 | import com.sucl.sbmp.MpStartApplication; | 3 | import com.sucl.sbmp.MpStartApplication; |
4 | import com.sucl.sbmp.sys.biz.ChanganAutoEpcPartsBiz; | 4 | import com.sucl.sbmp.sys.biz.ChanganAutoEpcPartsBiz; |
5 | import com.sucl.sbmp.sys.biz.OldChanganAutoEpcPartsBiz; | 5 | import com.sucl.sbmp.sys.biz.OldChanganAutoEpcPartsBiz; |
6 | +import com.sucl.sbmp.sys.biz.SpecPartBiz; | ||
6 | import org.junit.Before; | 7 | import org.junit.Before; |
7 | import org.junit.Test; | 8 | import org.junit.Test; |
8 | import org.junit.runner.RunWith; | 9 | import org.junit.runner.RunWith; |
@@ -26,7 +27,8 @@ import java.util.concurrent.CompletableFuture; | @@ -26,7 +27,8 @@ import java.util.concurrent.CompletableFuture; | ||
26 | //@TestPropertySource(properties = { "spring.config.location = classpath:test.properties" }) | 27 | //@TestPropertySource(properties = { "spring.config.location = classpath:test.properties" }) |
27 | public class AcquirePartsTest { | 28 | public class AcquirePartsTest { |
28 | private HashMap<String, String> token; | 29 | private HashMap<String, String> token; |
29 | - | 30 | + @Autowired |
31 | + private SpecPartBiz specPartBiz; | ||
30 | @Autowired | 32 | @Autowired |
31 | private ChanganAutoEpcPartsBiz changanAutoEpcPartsBiz; | 33 | private ChanganAutoEpcPartsBiz changanAutoEpcPartsBiz; |
32 | 34 | ||
@@ -36,6 +38,14 @@ public class AcquirePartsTest { | @@ -36,6 +38,14 @@ public class AcquirePartsTest { | ||
36 | // this.token = this.changanAutoEpcPartsBiz.setToken("381ec1fa12a84dce81e1d05db15bcc34"); | 38 | // this.token = this.changanAutoEpcPartsBiz.setToken("381ec1fa12a84dce81e1d05db15bcc34"); |
37 | this.token = this.changanAutoEpcPartsBiz.setToken("77054ffe926c416bb0d48412ab734f3f"); | 39 | this.token = this.changanAutoEpcPartsBiz.setToken("77054ffe926c416bb0d48412ab734f3f"); |
38 | } | 40 | } |
41 | + | ||
42 | + /** | ||
43 | + * 将抽取的数据转换到specpart表中 | ||
44 | + */ | ||
45 | + @Test | ||
46 | + public void transferData(){ | ||
47 | + specPartBiz.transferData(); | ||
48 | + } | ||
39 | /** | 49 | /** |
40 | * 新版EPC数据抽取 | 50 | * 新版EPC数据抽取 |
41 | */ | 51 | */ |
@@ -52,7 +62,7 @@ public class AcquirePartsTest { | @@ -52,7 +62,7 @@ public class AcquirePartsTest { | ||
52 | // 根据具体车款获取备件模块 | 62 | // 根据具体车款获取备件模块 |
53 | // this.changanAutoEpcPartsBiz.selectModuleByScId(token); | 63 | // this.changanAutoEpcPartsBiz.selectModuleByScId(token); |
54 | // 根据模块获取备件 | 64 | // 根据模块获取备件 |
55 | - this.changanAutoEpcPartsBiz.selectPartsByModule(token); | 65 | +// this.changanAutoEpcPartsBiz.selectPartsByModule(token); |
56 | } | 66 | } |
57 | 67 | ||
58 | /** | 68 | /** |