|
@@ -6,6 +6,8 @@ import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
|
|
|
|
|
|
+import java.util.Set;
|
|
|
+
|
|
|
public interface TransObjectInfoRepository extends JpaRepository<TransObjectInfo, Integer>, QuerydslPredicateExecutor<TransObjectInfo> {
|
|
|
|
|
|
@Modifying
|
|
@@ -13,8 +15,8 @@ public interface TransObjectInfoRepository extends JpaRepository<TransObjectInfo
|
|
|
int deleteByProjectId(String projectId);
|
|
|
|
|
|
@Modifying
|
|
|
- @Query(nativeQuery = true, value = "delete from admin_trans_object_info where project_id = ? and object_id is not null")
|
|
|
- int deleteByProjectIdAndObjectId(String projectId);
|
|
|
+ @Query(nativeQuery = true, value = "delete from admin_trans_object_info where project_id = ?1 and object_id in ?2")
|
|
|
+ int deleteByProjectIdAndObjectId(String projectId, Set<String> idArray);
|
|
|
|
|
|
}
|
|
|
|