fix(firstleg): execute container customer scope query
This commit is contained in:
+9
@@ -48,6 +48,15 @@ class ContainerBookingMapperContractTest {
|
||||
.contains("customer_item.account_id = #{query.customerId}");
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("首次关联客户隔离查询使用原生不等号")
|
||||
void customerMismatchQueryUsesNativeSqlOperator() throws Exception {
|
||||
String sql = ContainerBookingMapper.class
|
||||
.getDeclaredMethod("hasMismatchedCustomerItems", long.class, long.class)
|
||||
.getAnnotation(Select.class).value()[0];
|
||||
assertThat(sql).contains("i.account_id<>#{customerId}").doesNotContain("<>");
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("草稿完整更新和预装运输白名单都带版本与状态门禁")
|
||||
void guardsUpdatesInSql() {
|
||||
|
||||
Reference in New Issue
Block a user