talent-card-server/src/test/java/com/talentcard/server/business/portal/ChildrenEntrustmentPortalServiceTests.java
@@ -39,4 +39,16 @@ .containsEntry("address", "学校地址") .containsEntry("content", "<p>后台配置的学校详情</p>"); } @Test void unconfiguredMerchantHasNoSchools() { Long serviceId = 91L; // 新添加、还没配学校的商家:不能回落到历史全局学校表(否则会显示别人的学校)。 when(jdbc.queryForList(anyString(), eq(serviceId))).thenReturn(List.of(Map.of( "id", serviceId, "merchant_type_code", "children", "usage_instructions", ""))); assertThat(service.schools(serviceId)).isEmpty(); } }