实例如下
@Modifying
@Query(value = "DELETE FROM HOME_ROLE_APARTMENT WHERE ROLE_SID = ?1 AND APARTMENT_SID IN ( ?2 )", nativeQuery = true)
@Transactional
public void deleteByRoleSidAndApartmentSid(String roleSid, List<String> apartmentSidList);
实例如下
@Modifying
@Query(value = "DELETE FROM HOME_ROLE_APARTMENT WHERE ROLE_SID = ?1 AND APARTMENT_SID IN ( ?2 )", nativeQuery = true)
@Transactional
public void deleteByRoleSidAndApartmentSid(String roleSid, List<String> apartmentSidList);