pull/50/head
shao1121353141 2023-09-16 23:31:58 +08:00
parent 4c80f8023d
commit 5c2524d12b
1 changed files with 2 additions and 3 deletions

View File

@ -66,7 +66,6 @@ public interface AppGroupAssociationRepository extends
+ " WHERE app_id = :appId", nativeQuery = true) + " WHERE app_id = :appId", nativeQuery = true)
void deleteAllByAppId(@Param(value = "appId") Long appId); void deleteAllByAppId(@Param(value = "appId") Long appId);
/** /**
* ID * ID
* *
@ -92,6 +91,6 @@ public interface AppGroupAssociationRepository extends
* @param appId {@link Long} * @param appId {@link Long}
* @return {@link List} * @return {@link List}
*/ */
@Query(value = "SELECT group_id FROM `app_group_association` WHERE app_id = :appId AND is_deleted = '0'", nativeQuery = true) @Query(value = "SELECT group_id FROM `app_group_association` ass LEFT JOIN app_group `group` ON ass.group_id = `group`.id_ WHERE ass.app_id = :appId AND ass.is_deleted = '0' AND `group`.is_deleted = '0'", nativeQuery = true)
List<Long> findGroupIdByAppId(Long appId); List<Long> findGroupIdByAppId(Long appId);
} }