Commit 1df6ea625dce203866a0a4e989d2d54dd4aeb316

Authored by liuzhixin
1 parent d3bf339d

整合抽取的epc数据保存

logs/info.log
... ... @@ -99009,3 +99009,115 @@
99009 99009 2023-01-11 18:21:20.024 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
99010 99010 2023-01-11 18:21:20.085 [main] INFO o.s.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana]
99011 99011 2023-01-12 07:41:26.076 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@6b5894c8: startup date [Wed Jan 11 18:18:26 CST 2023]; root of context hierarchy
  99012 +2024-01-10 16:49:05.864 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99013 +2024-01-10 16:49:05.869 [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}.
  99014 +2024-01-10 16:49:05.932 [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]
  99015 +2024-01-10 16:49:05.949 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2e385cce, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2ddc9a9f, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@298a5e20, org.springframework.test.context.support.DirtiesContextTestExecutionListener@2a7f1f10, org.springframework.test.context.transaction.TransactionalTestExecutionListener@46cdf8bd, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@f0c8a99, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@740cae06, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@26d9b808, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@f78a47e, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@644baf4a, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7526515b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@1ed4ae0f]
  99016 +2024-01-10 16:49:06.308 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 5260 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99017 +2024-01-10 16:49:06.308 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99018 +2024-01-10 16:49:06.338 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 16:49:06 CST 2024]; root of context hierarchy
  99019 +2024-01-10 16:49:06.523 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99020 +2024-01-10 16:49:09.574 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 16:49:06 CST 2024]; root of context hierarchy
  99021 +2024-01-10 16:49:10.008 [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)
  99022 +2024-01-10 16:49:10.013 [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)
  99023 +2024-01-10 16:49:10.155 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99024 +2024-01-10 16:49:10.157 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99025 +2024-01-10 16:49:10.402 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99026 +2024-01-10 16:49:11.504 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 5.462 seconds (JVM running for 6.684)
  99027 +2024-01-10 16:49:47.983 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 16:49:06 CST 2024]; root of context hierarchy
  99028 +2024-01-10 16:50:14.795 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99029 +2024-01-10 16:50:14.801 [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}.
  99030 +2024-01-10 16:50:14.867 [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]
  99031 +2024-01-10 16:50:14.883 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@60099951, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@20140db9, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1e6a3214, org.springframework.test.context.support.DirtiesContextTestExecutionListener@368247b9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a6d8329, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1a942c18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@55a147cc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@71ba6d4e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@738dc9b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@3c77d488, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@63376bed, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4145bad8]
  99032 +2024-01-10 16:50:15.280 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 2064 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99033 +2024-01-10 16:50:15.280 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99034 +2024-01-10 16:50:15.310 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@7b64240d: startup date [Wed Jan 10 16:50:15 CST 2024]; root of context hierarchy
  99035 +2024-01-10 16:50:15.512 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99036 +2024-01-10 16:50:17.865 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@7b64240d: startup date [Wed Jan 10 16:50:15 CST 2024]; root of context hierarchy
  99037 +2024-01-10 16:50:18.019 [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)
  99038 +2024-01-10 16:50:18.020 [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)
  99039 +2024-01-10 16:50:18.052 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99040 +2024-01-10 16:50:18.053 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99041 +2024-01-10 16:50:18.127 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99042 +2024-01-10 16:50:18.511 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.529 seconds (JVM running for 4.189)
  99043 +2024-01-10 16:51:16.371 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@7b64240d: startup date [Wed Jan 10 16:50:15 CST 2024]; root of context hierarchy
  99044 +2024-01-10 16:53:44.119 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99045 +2024-01-10 16:53:44.133 [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}.
  99046 +2024-01-10 16:53:44.267 [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]
  99047 +2024-01-10 16:53:44.294 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2e385cce, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2ddc9a9f, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@298a5e20, org.springframework.test.context.support.DirtiesContextTestExecutionListener@2a7f1f10, org.springframework.test.context.transaction.TransactionalTestExecutionListener@46cdf8bd, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@f0c8a99, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@740cae06, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@26d9b808, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@f78a47e, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@644baf4a, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7526515b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@1ed4ae0f]
  99048 +2024-01-10 16:53:44.690 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 3992 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99049 +2024-01-10 16:53:44.690 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99050 +2024-01-10 16:53:44.722 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 16:53:44 CST 2024]; root of context hierarchy
  99051 +2024-01-10 16:53:45.112 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99052 +2024-01-10 16:53:47.611 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 16:53:44 CST 2024]; root of context hierarchy
  99053 +2024-01-10 16:53:47.808 [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)
  99054 +2024-01-10 16:53:47.810 [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)
  99055 +2024-01-10 16:53:47.856 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99056 +2024-01-10 16:53:47.857 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99057 +2024-01-10 16:53:47.929 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99058 +2024-01-10 16:53:48.333 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.903 seconds (JVM running for 4.889)
  99059 +2024-01-10 16:57:37.284 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 16:53:44 CST 2024]; root of context hierarchy
  99060 +2024-01-10 17:00:40.015 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99061 +2024-01-10 17:00:40.020 [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}.
  99062 +2024-01-10 17:00:40.073 [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]
  99063 +2024-01-10 17:00:40.088 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@23282c25, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7920ba90, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6b419da, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3b2da18f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@5906ebcb, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@258e2e41, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@3d299e3, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@55a561cf, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@3b938003, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@6f3b5d16, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@78b1cc93, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6646153]
  99064 +2024-01-10 17:00:40.407 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 5916 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99065 +2024-01-10 17:00:40.407 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99066 +2024-01-10 17:00:40.434 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:00:40 CST 2024]; root of context hierarchy
  99067 +2024-01-10 17:00:40.621 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99068 +2024-01-10 17:00:42.780 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:00:40 CST 2024]; root of context hierarchy
  99069 +2024-01-10 17:00:42.850 [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)
  99070 +2024-01-10 17:00:42.852 [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)
  99071 +2024-01-10 17:00:42.890 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99072 +2024-01-10 17:00:42.891 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99073 +2024-01-10 17:00:42.951 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99074 +2024-01-10 17:00:43.266 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.098 seconds (JVM running for 3.743)
  99075 +2024-01-10 17:01:24.880 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:00:40 CST 2024]; root of context hierarchy
  99076 +2024-01-10 17:06:26.458 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99077 +2024-01-10 17:06:26.462 [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}.
  99078 +2024-01-10 17:06:26.514 [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]
  99079 +2024-01-10 17:06:26.530 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@23282c25, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7920ba90, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6b419da, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3b2da18f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@5906ebcb, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@258e2e41, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@3d299e3, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@55a561cf, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@3b938003, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@6f3b5d16, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@78b1cc93, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6646153]
  99080 +2024-01-10 17:06:26.911 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 17540 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99081 +2024-01-10 17:06:26.912 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99082 +2024-01-10 17:06:26.946 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:06:26 CST 2024]; root of context hierarchy
  99083 +2024-01-10 17:06:27.186 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99084 +2024-01-10 17:06:29.968 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:06:26 CST 2024]; root of context hierarchy
  99085 +2024-01-10 17:06:30.081 [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)
  99086 +2024-01-10 17:06:30.083 [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)
  99087 +2024-01-10 17:06:30.138 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99088 +2024-01-10 17:06:30.140 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99089 +2024-01-10 17:06:30.239 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99090 +2024-01-10 17:06:30.646 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 4.023 seconds (JVM running for 4.764)
  99091 +2024-01-10 17:07:04.427 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:06:26 CST 2024]; root of context hierarchy
  99092 +2024-01-10 17:16:44.104 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99093 +2024-01-10 17:16:44.110 [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}.
  99094 +2024-01-10 17:16:44.173 [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]
  99095 +2024-01-10 17:16:44.188 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2e385cce, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2ddc9a9f, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@298a5e20, org.springframework.test.context.support.DirtiesContextTestExecutionListener@2a7f1f10, org.springframework.test.context.transaction.TransactionalTestExecutionListener@46cdf8bd, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@f0c8a99, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@740cae06, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@26d9b808, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@f78a47e, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@644baf4a, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7526515b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@1ed4ae0f]
  99096 +2024-01-10 17:16:44.539 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 18708 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99097 +2024-01-10 17:16:44.539 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99098 +2024-01-10 17:16:44.573 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 17:16:44 CST 2024]; root of context hierarchy
  99099 +2024-01-10 17:16:44.782 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99100 +2024-01-10 17:16:47.242 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 17:16:44 CST 2024]; root of context hierarchy
  99101 +2024-01-10 17:16:47.400 [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)
  99102 +2024-01-10 17:16:47.402 [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)
  99103 +2024-01-10 17:16:47.481 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99104 +2024-01-10 17:16:47.482 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99105 +2024-01-10 17:16:47.593 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99106 +2024-01-10 17:16:48.613 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 4.331 seconds (JVM running for 5.002)
  99107 +2024-01-10 17:16:51.168 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@773cbf4f: startup date [Wed Jan 10 17:16:44 CST 2024]; root of context hierarchy
  99108 +2024-01-10 17:17:24.571 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader
  99109 +2024-01-10 17:17:24.576 [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}.
  99110 +2024-01-10 17:17:24.632 [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]
  99111 +2024-01-10 17:17:24.646 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@23282c25, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7920ba90, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6b419da, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3b2da18f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@5906ebcb, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@258e2e41, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@3d299e3, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@55a561cf, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@3b938003, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@6f3b5d16, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@78b1cc93, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6646153]
  99112 +2024-01-10 17:17:24.965 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-M5G0GUI with PID 16436 (started by INTEL in C:\lzx\app\java\data\sbmp)
  99113 +2024-01-10 17:17:24.965 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default
  99114 +2024-01-10 17:17:24.990 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:17:24 CST 2024]; root of context hierarchy
  99115 +2024-01-10 17:17:25.150 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
  99116 +2024-01-10 17:17:27.111 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:17:24 CST 2024]; root of context hierarchy
  99117 +2024-01-10 17:17:27.181 [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)
  99118 +2024-01-10 17:17:27.182 [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)
  99119 +2024-01-10 17:17:27.234 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99120 +2024-01-10 17:17:27.234 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99121 +2024-01-10 17:17:27.275 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  99122 +2024-01-10 17:17:27.598 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 2.878 seconds (JVM running for 3.434)
  99123 +2024-01-10 17:17:56.051 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@4082ba93: startup date [Wed Jan 10 17:17:24 CST 2024]; root of context hierarchy
... ...
src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java
... ... @@ -65,6 +65,12 @@ public class ChanganAutoEpcPartsBiz {
65 65 @Autowired
66 66 private TempScSystemService tempScSystemService;
67 67  
  68 + @Autowired
  69 + private PartEpcService partEpcService;
  70 +
  71 + @Autowired
  72 + private SpecPartEpcService specPartEpcService;
  73 +
68 74 public static void main(String[] args) {
69 75  
70 76 /*ChanganAutoEpcPartsBiz biz = new ChanganAutoEpcPartsBiz();
... ... @@ -986,5 +992,90 @@ public class ChanganAutoEpcPartsBiz {
986 992 }*//*
987 993 // }
988 994 }*/
  995 +
  996 + @Transactional(rollbackFor = Exception.class)
  997 + public void addPart(List<Long> scCodeId,List<Long> scNameId,Long brandId,Long userId){
  998 + List<TempCarSeries> tempCarSeriesList = tempCarSeriesService.list(Wrappers.<TempCarSeries>lambdaQuery()
  999 + .eq(TempCarSeries::getYn,Boolean.TRUE)
  1000 + .last("limit 1"));
  1001 + if(com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isEmpty(tempCarSeriesList)){
  1002 + throw new RuntimeException("TempCarSeries未查询到");
  1003 + }
  1004 + for (TempCarSeries tempCarSeries : tempCarSeriesList) {
  1005 + addPartInfo(tempCarSeries.getSeriesId(), scCodeId, scNameId, brandId, userId);
  1006 + tempCarSeries.setYn(Boolean.FALSE);
  1007 + tempCarSeriesService.updateById(tempCarSeries);
  1008 + }
  1009 +
  1010 + }
  1011 +
  1012 + private void addPartInfo(String seriesId, List<Long> scCodeId, List<Long> scNameId, Long brandId, Long userId) {
  1013 + List<TempScCode> tempScCodes = tempScCodeService.list(Wrappers.<TempScCode>lambdaQuery()
  1014 + .eq(TempScCode::getSeriesId, seriesId)
  1015 + .eq(TempScCode::getYn, Boolean.TRUE)
  1016 + .in(com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isNotEmpty(scCodeId), TempScCode::getId, scCodeId));
  1017 + if(com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isEmpty(tempScCodes)){
  1018 + throw new RuntimeException("TempScCode未查询到");
  1019 + }
  1020 + List<String> specCode = tempScCodes.stream().map(TempScCode::getScCode).collect(Collectors.toList());
  1021 + List<TempScName> tempScNames = tempScNameService.list(Wrappers.<TempScName>lambdaQuery()
  1022 + .in(com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isNotEmpty(scNameId),TempScName::getId, scNameId)
  1023 + .in(TempScName::getPreCode, specCode)
  1024 + .eq(TempScName::getYn,Boolean.TRUE));
  1025 + if(com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isEmpty(tempScNames)){
  1026 + throw new RuntimeException("TempScName未查询到");
  1027 + }
  1028 + Map<String, List<TempScName>> codeConfigPartMap = tempScNames.stream()
  1029 + .collect(Collectors.collectingAndThen(
  1030 + Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(TempScName::getCode))),
  1031 + ArrayList::new))
  1032 + .stream()
  1033 + .collect(Collectors.groupingBy(TempScName::getCode));
  1034 +
  1035 + List<SpecPartEpc> SpecPartEpcList = codeConfigPartMap.values().stream()
  1036 + .flatMap(Collection::stream)
  1037 + .flatMap(tempScName -> {
  1038 + List<TempScParts> list = tempScPartsService.list(Wrappers.<TempScParts>lambdaQuery().eq(TempScParts::getScId, tempScName.getScId()));
  1039 + return list.stream().map(tempScParts -> {
  1040 + SpecPartEpc specPartEpc = new SpecPartEpc();
  1041 + specPartEpc.setPartCode(tempScParts.getPartNumber());
  1042 + specPartEpc.setPartNo(tempScParts.getCompCode());
  1043 + specPartEpc.setPartName(tempScParts.getCompNmCn());
  1044 + specPartEpc.setPartCount(tempScParts.getCompAmount());
  1045 + specPartEpc.setStdType(1);
  1046 + specPartEpc.setBrandId(brandId);
  1047 + specPartEpc.setSpecCode(tempScName.getCode());
  1048 + specPartEpc.setCarSpecCode(tempScName.getPreCode());
  1049 + return specPartEpc;
  1050 + });
  1051 + })
  1052 + .collect(Collectors.toList());
  1053 +
  1054 + if(com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isEmpty(SpecPartEpcList)){
  1055 + throw new RuntimeException("TempScParts未查询到");
  1056 + }
  1057 + //配件去重
  1058 + List<SpecPartEpc> partEpcList = SpecPartEpcList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() ->
  1059 + new TreeSet<>(Comparator.comparing(SpecPartEpc::getPartCode))), ArrayList::new));
  1060 + List<PartEpc> partEpcs = partEpcList.stream().map(i -> {
  1061 + PartEpc partEpc = new PartEpc();
  1062 + partEpc.setPartName(i.getPartName());
  1063 + partEpc.setPartCode(i.getPartCode());
  1064 + partEpc.setPartNo(i.getPartNo());
  1065 + partEpc.setUnit("个");
  1066 + partEpc.setFactory(Boolean.TRUE);
  1067 + partEpc.setType("1");
  1068 + partEpc.setCreateBy(userId);
  1069 + partEpc.setCreateTime(new Date());
  1070 + partEpc.setUpdateBy(userId);
  1071 + partEpc.setUpdateTime(new Date());
  1072 + partEpc.setYn(Boolean.TRUE);
  1073 + return partEpc;
  1074 + }).collect(Collectors.toList());
  1075 + partEpcService.saveBatch(partEpcs);
  1076 + specPartEpcService.saveBatch(SpecPartEpcList);
  1077 + }
  1078 +
  1079 +
989 1080 }
990 1081  
... ...
src/main/java/com/sucl/sbmp/sys/entity/PartEpc.java 0 → 100644
  1 +package com.sucl.sbmp.sys.entity;
  2 +
  3 +import lombok.Data;
  4 +import lombok.NoArgsConstructor;
  5 +import lombok.ToString;
  6 +
  7 +/**
  8 + * @author liuzhixin
  9 + * @date 2024-01-10 15:23
  10 + */
  11 +@Data
  12 +@ToString(callSuper = true)
  13 +@NoArgsConstructor
  14 +public class PartEpc extends BaseEntity {
  15 +
  16 + /**
  17 + * 配件名称
  18 + */
  19 + private String partName;
  20 + /**
  21 + * 配件件号
  22 + */
  23 + private String partNo;
  24 + /**
  25 + * 配件编码
  26 + */
  27 + private String partCode;
  28 + /**
  29 + * 计量单位
  30 + */
  31 + private String unit;
  32 + /**
  33 + * 是否厂家配件;0:否 1:是
  34 + */
  35 + private Boolean factory;
  36 + /**
  37 + * 配件类型1配件2装潢4养护5机修辅料6钣金辅料7喷漆辅料8装潢辅料9打磨辅料
  38 + */
  39 + private String type;
  40 + /**
  41 + * 配件品牌
  42 + */
  43 + private String brandIds;
  44 + /**
  45 + * 规格
  46 + */
  47 + private String specification;
  48 +
  49 + /**
  50 + * 创建人
  51 + */
  52 + private Long createBy;
  53 + /**
  54 + * 更新人
  55 + */
  56 + private Long updateBy;
  57 +
  58 +}
... ...
src/main/java/com/sucl/sbmp/sys/entity/SpecPartEpc.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 +import lombok.ToString;
  8 +
  9 +import java.util.Date;
  10 +
  11 +/**
  12 + * 车型关联配件数据
  13 + *
  14 + * @author liuzhixin
  15 + * @date 2024-01-10 15:52
  16 + */
  17 +@Data
  18 +@ToString(callSuper = true)
  19 +@NoArgsConstructor
  20 +public class SpecPartEpc {
  21 +
  22 +
  23 + @TableId(type = IdType.AUTO)
  24 + private Long id;
  25 + /**
  26 + * 品牌id
  27 + */
  28 + private Long brandId;
  29 + /**
  30 + * 车系id
  31 + */
  32 + private Long seriesId;
  33 + /**
  34 + * 车型id
  35 + */
  36 + private Long modelId;
  37 + /**
  38 + * 配件ID
  39 + */
  40 + private Long partId;
  41 +
  42 + /**
  43 + * 车型代码(用于查询正式环境车系id)
  44 + */
  45 + private String carSpecCode;
  46 +
  47 + /**
  48 + * 配件件号(用于补充part表字段数据)
  49 + */
  50 + private String partNo;
  51 +
  52 + /**
  53 + * 配置代码
  54 + */
  55 + private String specCode;
  56 + /**
  57 + * 配件代码
  58 + */
  59 + private String partCode;
  60 + /**
  61 + * 配件名称
  62 + */
  63 + private String partName;
  64 + /**
  65 + * 使用数量
  66 + */
  67 + private Integer partCount;
  68 + /**
  69 + * 标准类型 (1:厂家标准,2:霏微标准 3关单工单知识库)
  70 + */
  71 + private Integer stdType;
  72 + /**
  73 + * 创建时间
  74 + */
  75 + private Date createTime;
  76 +}
... ...
src/main/java/com/sucl/sbmp/sys/mapper/PartEpcMapper.java 0 → 100644
  1 +package com.sucl.sbmp.sys.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.sucl.sbmp.sys.entity.PartEpc;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * epc配件整合数据
  9 + *
  10 + * @author liuzhixin
  11 + * @date 2024-01-10 16:20
  12 + */
  13 +@Repository
  14 +public interface PartEpcMapper extends BaseMapper<PartEpc> {
  15 +}
... ...
src/main/java/com/sucl/sbmp/sys/mapper/SpecPartEpcMapper.java 0 → 100644
  1 +package com.sucl.sbmp.sys.mapper;
  2 +
  3 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4 +import com.sucl.sbmp.sys.entity.SpecPartEpc;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * epc整合车型配件关联数据
  9 + *
  10 + * @author liuzhixin
  11 + * @date 2024-01-10 16:20
  12 + */
  13 +@Repository
  14 +public interface SpecPartEpcMapper extends BaseMapper<SpecPartEpc> {
  15 +}
... ...
src/main/java/com/sucl/sbmp/sys/service/PartEpcService.java 0 → 100644
  1 +package com.sucl.sbmp.sys.service;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.IService;
  4 +import com.sucl.sbmp.sys.entity.PartEpc;
  5 +
  6 +/**
  7 + * partEpc
  8 + *
  9 + * @author liuzhixin
  10 + * @date 2024-01-10 16:21
  11 + */
  12 +public interface PartEpcService extends IService<PartEpc> {
  13 +}
... ...
src/main/java/com/sucl/sbmp/sys/service/SpecPartEpcService.java 0 → 100644
  1 +package com.sucl.sbmp.sys.service;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.IService;
  4 +import com.sucl.sbmp.sys.entity.SpecPartEpc;
  5 +
  6 +/**
  7 + * specPartEpc
  8 + *
  9 + * @author liuzhixin
  10 + * @date 2024-01-10 16:22
  11 + */
  12 +public interface SpecPartEpcService extends IService<SpecPartEpc> {
  13 +}
... ...
src/main/java/com/sucl/sbmp/sys/service/impl/PartEpcImpl.java 0 → 100644
  1 +package com.sucl.sbmp.sys.service.impl;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4 +import com.sucl.sbmp.sys.entity.PartEpc;
  5 +import com.sucl.sbmp.sys.mapper.PartEpcMapper;
  6 +import com.sucl.sbmp.sys.service.PartEpcService;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +/**
  10 + * partEpc
  11 + *
  12 + * @author liuzhixin
  13 + * @date 2024-01-10 16:24
  14 + */
  15 +@Service
  16 +public class PartEpcImpl extends ServiceImpl<PartEpcMapper,PartEpc> implements PartEpcService {
  17 +}
... ...
src/main/java/com/sucl/sbmp/sys/service/impl/SpecPartEpcService.java 0 → 100644
  1 +package com.sucl.sbmp.sys.service.impl;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4 +import com.sucl.sbmp.sys.entity.SpecPartEpc;
  5 +import com.sucl.sbmp.sys.mapper.SpecPartEpcMapper;
  6 +import org.springframework.stereotype.Service;
  7 +
  8 +/**
  9 + * specPartEpc
  10 + *
  11 + * @author liuzhixin
  12 + * @date 2024-01-10 16:22
  13 + */
  14 +@Service
  15 +public class SpecPartEpcService extends ServiceImpl<SpecPartEpcMapper, SpecPartEpc> implements com.sucl.sbmp.sys.service.SpecPartEpcService {
  16 +}
... ...
src/main/resources/application.yml
... ... @@ -23,7 +23,7 @@ mybatis-plus:
23 23 mp:
24 24 datasource:
25 25 driver-class-name: com.mysql.jdbc.Driver
26   - url: jdbc:mysql://139.9.235.218:3306/fw_epc?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  26 + url: jdbc:mysql://139.9.235.218:3306/fw_epc_1?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
27 27 username: root
28 28 password: zhong2010
29 29  
... ...
src/test/java/cn/fw/parts/AcquirePartsTest.java
... ... @@ -65,6 +65,21 @@ public class AcquirePartsTest {
65 65 // this.changanAutoEpcPartsBiz.selectPartsByModule(token);
66 66 }
67 67  
  68 +
  69 + @Test
  70 + public void addParts(){
  71 + /**
  72 + * 整合配件数据
  73 + * 操作前清空 “specPartEpc/partEpc” 两个表数据!!!!
  74 + * 把需要导入的车系/车型代码/车型代码配置 yn字段修改成 0 不需要导入的统一修改成 1
  75 + * List<Long> scCodeId 指定 scCode表的id,只导入id内的数据
  76 + * List<Long> scNameId, 指定 scName表的id,只导入id内的数据
  77 + * Long brandId, 品牌id
  78 + * Long userId 操作者id
  79 + */
  80 + this.changanAutoEpcPartsBiz.addPart(null,null,180L,777L);
  81 + }
  82 +
68 83 /**
69 84 * 老版EPC数据抽取
70 85 */
... ...