[ { "class": "com.baiyue.lastleg.controller.Phase4BrowserApiBoundaryTest", "test": "smartDispatchOnlyExposesCandidatePreArrangeAndDraftLifecycleEndpoints", "type": "failure", "message": "expected: <[/drafts/containers, /draft-locks/lock, /drafts/pre-arrange, /draft-locks/release, /drafts/snapshot, /draft-locks/unlock, /pre-arrange]> but was: <[/draft-locks/lock, /draft-locks/release, /draft-locks/unlock, /drafts/pre-arrange, /drafts/snapshot, /drafts/containers, /drafts]>" }, { "class": "com.baiyue.lastleg.delivery.service.ReturnOutboundClosureTest", "test": "cancellationRejectsPickedNativeBoxWithoutReleasingItsReservation", "type": "failure", "message": "\nExpecting actual throwable to be an instance of:\n org.springframework.web.server.ResponseStatusException\nbut was:\n java.lang.NullPointerException: Cannot invoke \"com.baiyue.lastleg.delivery.repository.DeliveryCancellationRepository.find(String)\" because \".cancellations\" is null\n at com.baiyue.lastleg.delivery.service.DeliveryTransferService.cancelOutbound(DeliveryTransferService.java:895)\n at com.baiyue.lastleg.delivery.service.ReturnOutboundClosureTest.lambda$cancellationRejectsPickedNativeBoxWithoutReleasingItsReservation$7(ReturnOutboundClosureTest.java:138)\n at org.assertj.core.api.ThrowableAssert.catchThrowable(ThrowableAssert.java:63)\n ...(75 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)" }, { "class": "com.baiyue.lastleg.delivery.service.ReturnOutboundClosureTest", "test": "cancelsUntouchedNativeRelabelWithItsOwningApplication", "type": "error", "message": "Cannot invoke \"com.baiyue.lastleg.delivery.repository.DeliveryCancellationRepository.find(String)\" because \".cancellations\" is null" }, { "class": "com.baiyue.lastleg.dispatch.service.DispatchServiceTest", "test": "duplicateAndPartialRelabelSelectionsAreRejectedBeforeMutation", "type": "failure", "message": "\nExpecting throwable message:\n \"Cannot invoke \"com.baiyue.lastleg.relabel.port.RelabelDispatchSourcePort.snapshot(String, java.util.List)\" because \"this.relabelSources\" is null\"\nto contain:\n \"完整选择\"\nbut did not.\n\nThrowable that failed the check:\n\njava.lang.NullPointerException: Cannot invoke \"com.baiyue.lastleg.relabel.port.RelabelDispatchSourcePort.snapshot(String, java.util.List)\" because \"this.relabelSources\" is null\n at com.baiyue.lastleg.dispatch.service.DispatchService.sourceGroup(DispatchService.java:89)\n at com.baiyue.lastleg.dispatch.service.DispatchService.resolveWholeSources(DispatchService.java:213)\n at com.baiyue.lastleg.dispatch.service.DispatchService.lockWholeSources(DispatchService.java:187)\n at com.baiyue.lastleg.dispatch.service.DispatchServiceTest.lambda$2(DispatchServiceTest.java:40)\n at org.assertj.core.api.ThrowableAssert.catchThrowable(ThrowableAssert.java:63)\n at org.assertj.core.api.AssertionsForClassTypes.catchThrowable(AssertionsForClassTypes.java:892)\n at org.assertj.core.api.Assertions.catchThrowable(Assertions.java:1366)\n at org.assertj.core.api.Assertions.assertThatThrownBy(Assertions.java:1210)\n at com.baiyue.lastleg.dispatch.service.DispatchServiceTest.duplicateAndPartialRelabelSelectionsAreRejectedBeforeMutation(DispatchServiceTest.java:40)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n at java.base/java.lang.reflect.Method.invoke(Method.java:569)\n at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728)\n at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)\n at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)\n at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)\n at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)\n at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)\n at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)\n at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)\n at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)\n at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)\n at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)\n at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)\n at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)\n at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)\n at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)\n at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)\n at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)\n at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)\n at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)\n at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)\n at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)\n at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122)\n at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)\n at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)\n at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)\n at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)\n" }, { "class": "com.baiyue.lastleg.dispatch.service.DispatchServiceTest", "test": "nonTruckRelabelCannotReachMeasurementsOrCargoMutation", "type": "failure", "message": "\nExpecting throwable message:\n \"409 CONFLICT \"换标托盘来源已变化\"\"\nto contain:\n \"排车资格\"\nbut did not.\n\nThrowable that failed the check:\n\norg.springframework.web.server.ResponseStatusException: 409 CONFLICT \"换标托盘来源已变化\"\n at com.baiyue.lastleg.dispatch.service.DispatchService.lambda$1(DispatchService.java:68)\n at java.base/java.util.Optional.orElseThrow(Optional.java:403)\n at com.baiyue.lastleg.dispatch.service.DispatchService.readSelection(DispatchService.java:68)\n at com.baiyue.lastleg.dispatch.service.DispatchService.resolveWholeSources(DispatchService.java:213)\n at com.baiyue.lastleg.dispatch.service.DispatchService.lockWholeSources(DispatchService.java:187)\n at com.baiyue.lastleg.dispatch.service.DispatchServiceTest.lambda$4(DispatchServiceTest.java:47)\n at org.assertj.core.api.ThrowableAssert.catchThrowable(ThrowableAssert.java:63)\n at org.assertj.core.api.AssertionsForClassTypes.catchThrowable(AssertionsForClassTypes.java:892)\n at org.assertj.core.api.Assertions.catchThrowable(Assertions.java:1366)\n at org.assertj.core.api.Assertions.assertThatThrownBy(Assertions.java:1210)\n at com.baiyue.lastleg.dispatch.service.DispatchServiceTest.nonTruckRelabelCannotReachMeasurementsOrCargoMutation(DispatchServiceTest.java:47)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n at java.base/java.lang.reflect.Method.invoke(Method.java:569)\n at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728)\n at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)\n at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)\n at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)\n at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)\n at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)\n at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139)\n at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)\n at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)\n at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)\n at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)\n at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)\n at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)\n at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)\n at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)\n at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)\n at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)\n at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)\n at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)\n at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)\n at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)\n at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)\n at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)\n at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)\n at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)\n at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)\n at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)\n at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122)\n at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)\n at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)\n at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)\n at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)\n" }, { "class": "com.baiyue.lastleg.dispatch.service.ReturnDispatchCandidatePersistenceTest", "test": "actualReturnOnANewPalletCanBeSelectedWithoutAnInboundPlanPallet", "type": "failure", "message": "\nExpecting empty but was: [DispatchPalletCandidate(planId=null, planPalletId=null, warehousePalletId=900, orderId=1, customerId=A, customerName=客户A, planNo=null, orderType=FIRST_LEG, volumeWeightKg=null, grossWeightKg=null, containerNo=null, appointmentAt=null, expectedLoadingAt=null, overseasWarehouseId=92, overseasWarehouseCode=WH, overseasWarehouseName=海外仓, orderNo=LM-1, orderRefs=LM-1, inboundCode=IN-1, palletNo=RETURN-PALLET, destinationWarehouseId=null, destinationWarehouseCode=ONT8, destinationWarehouseName=ONT8, fbaWarehouseCode=ONT8, packageCount=2, volumeCbm=null, sourceStage=RECEIVED, cartonMarks=null, relabelCartonMarks=null, destinationType=FBA, deliveryAddress=null, postalCode=null, contactName=null, contactPhone=null, returnReceiptId=6, returnReceiptNo=RSR-6, returnCartonSource=false)]" }, { "class": "com.baiyue.lastleg.inboundplan.service.FbaAppointmentRepartitionPersistenceTest", "test": "existingTransportAndConcurrentRepartitionCannotDuplicateWork", "type": "error", "message": "StatementCallback; bad SQL grammar [INSERT INTO ll_dispatch_order VALUES(10,'A','DRAFT')]" }, { "class": "com.baiyue.lastleg.inboundplan.service.InboundPlanPaginationTest", "test": "mapperSqlProjectsLatestAppointmentAndTenantScopedDispatchState", "type": "failure", "message": "\nExpecting actual:\n \" FROM ll_inbound_plan_line l JOIN ll_inbound_plan p ON p.id=l.plan_id JOIN ll_order o ON o.id=l.order_id AND o.customer_id=p.customer_id AND p.customer_id=#{customerId} AND o.customer_id=#{customerId} LEFT JOIN ll_inbound_fba_appointment_item ai ON ai.order_id=l.order_id AND ai.customer_id=p.customer_id AND ai.id=(SELECT ai2.id FROM ll_inbound_fba_appointment_item ai2 JOIN ll_inbound_fba_appointment a2 ON a2.id=ai2.appointment_id WHERE ai2.order_id=l.order_id AND ai2.customer_id=p.customer_id AND ai2.fba_warehouse_code=l.fba_warehouse_code AND a2.replacement_nos_json IS NULL ORDER BY ai2.active DESC,a2.created_at DESC,ai2.id DESC LIMIT 1) LEFT JOIN ll_inbound_fba_appointment a ON a.id=ai.appointment_id WHERE 1=1 AND p.plan_no LIKE CONCAT('%',#{q.planNo},'%') AND l.inbound_code LIKE CONCAT('%',#{q.inboundCode},'%') AND o.lx_code LIKE CONCAT('%',#{q.lxCode},'%') AND p.status=#{q.status} AND p.overseas_warehouse_id=#{q.overseasWarehouseId} AND l.destination_warehouse_code=#{q.destinationWarehouseCode} AND (l.destination_warehouse_id LIKE CONCAT('%',#{q.warehouse},'%') OR l.destination_warehouse_code LIKE CONCAT('%',#{q.warehouse},'%') OR l.destination_warehouse_name LIKE CONCAT('%',#{q.warehouse},'%')) AND l.fba_warehouse_code LIKE CONCAT('%',#{q.fbaWarehouseCode},'%') AND (ai.id IS NULL OR ai.active=0) AND (CASE WHEN (SELECT COUNT(DISTINCT current_item.appointment_id) FROM ll_inbound_fba_appointment_item current_item WHERE current_item.order_id=l.order_id AND current_item.customer_id=p.customer_id AND current_item.fba_warehouse_code=l.fba_warehouse_code AND current_item.active=1)>1 THEN 'MULTIPLE' ELSE a.appointment_status END)=#{q.appointmentStatus} AND EXISTS (SELECT 1 FROM ll_dispatch_item di JOIN ll_dispatch_order dispatch ON dispatch.id=di.dispatch_order_id WHERE di.customer_id=p.customer_id AND di.order_id=l.order_id AND dispatch.status<>'CANCELLED') AND NOT EXISTS (SELECT 1 FROM ll_dispatch_item di JOIN ll_dispatch_order dispatch ON dispatch.id=di.dispatch_order_id WHERE di.customer_id=p.customer_id AND di.order_id=l.order_id AND dispatch.status<>'CANCELLED') AND p.created_at >=#{q.createdFrom} AND p.created_at <=#{q.createdTo}\"\nto contain:\n [\"di.customer_id=p.customer_id AND di.order_id=l.order_id\",\n \"dispatch.customer_id=di.customer_id\",\n \"dispatch.status<>'CANCELLED'\"]\nbut could not find:\n [\"dispatch.customer_id=di.customer_id\"]\n " }, { "class": "com.baiyue.lastleg.inboundplan.work.AppointmentWorkDomainMapperTest", "test": "originalDomainJoinsExecuteAgainstTheCurrentSchemaWithoutInventedColumns", "type": "error", "message": "Column \"CUSTOMER_ID\" not found; SQL statement:\nINSERT INTO ll_dispatch_order(id,customer_id,dispatch_no,status) VALUES(501,'A','D-1','PENDING_DEPARTURE'),(502,'B','D-2','CANCELLED'),(503,'B','D-3','PENDING_DEPARTURE') [42122-224]" }, { "class": "com.baiyue.lastleg.transfer.service.WarehouseTransferServiceTest", "test": "submittingOldDraftRechecksRelabelCartonOwnership", "type": "error", "message": "\nUnnecessary stubbings detected.\nClean & maintainable test code requires zero unnecessary code.\nFollowing stubbings are unnecessary (click to navigate to relevant line of code):\n 1. -> at com.baiyue.lastleg.transfer.service.WarehouseTransferServiceTest.submittingOldDraftRechecksRelabelCartonOwnership(WarehouseTransferServiceTest.java:526)\nPlease remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryStubbingException class." } ]