test: align domestic PDA operator mapper contract

This commit is contained in:
2026-09-23 10:47:04 +08:00
parent 52fad8505b
commit 267e32ba0f
@@ -10,7 +10,7 @@ class DomesticPdaOperatorSqlContractTest {
@Test @Test
void candidatesUseActivePlatformRoleAndAuthAccountIdentity() throws Exception { void candidatesUseActivePlatformRoleAndAuthAccountIdentity() throws Exception {
String sql = IamMembershipRoleMapper.class.getDeclaredMethod("findActiveUsersByRoleCode", String sql = IamMembershipRoleMapper.class.getDeclaredMethod("findActiveUsersByRoleCode",
long.class, String.class, String.class, Long.class).getAnnotation(Select.class).value()[0]; long.class, String.class, String.class, Long.class, Long.class).getAnnotation(Select.class).value()[0];
assertThat(sql).contains("u.auth_user_id AS userId", "role.role_code = #{roleCode}", assertThat(sql).contains("u.auth_user_id AS userId", "role.role_code = #{roleCode}",
"role.app_code = 'PLATFORM'", "role.status = 'ACTIVE'", "m.status = 'ACTIVE'", "role.app_code = 'PLATFORM'", "role.status = 'ACTIVE'", "m.status = 'ACTIVE'",