|
@@ -9,6 +9,7 @@ import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Optional;
|
|
|
|
|
|
@Repository
|
|
|
public interface TbFcltInfrRepository extends JpaRepository<TbFcltInfr, Long>, JpaSpecificationExecutor<TbFcltInfr> {
|
|
@@ -49,4 +50,7 @@ public interface TbFcltInfrRepository extends JpaRepository<TbFcltInfr, Long>, J
|
|
|
@Modifying
|
|
|
@Query("update TbFcltInfr p set p.mainUserId = :mainUserId, p.subUserId = :subUserId where p.fcltType = :fcltType")
|
|
|
Integer batchUpdateUserId(@Param("fcltType") String fcltType, @Param("mainUserId") String mainUserId, @Param("subUserId") String subUserId);
|
|
|
+
|
|
|
+ @Query("select p from TbFcltInfr p where p.fcltType = :fcltType and p.fcltId = :fcltId")
|
|
|
+ Optional<TbFcltInfr> findByTypeAndId(@Param("fcltType") String fcltType, @Param("fcltId") String fcltId);
|
|
|
}
|