|
@@ -3,6 +3,7 @@ package com.its.op.dao.repository.its.facility;
|
|
|
import com.its.op.entity.its.facility.TbFcltInfr;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
+import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
@@ -45,6 +46,7 @@ public interface TbFcltInfrRepository extends JpaRepository<TbFcltInfr, Long>, J
|
|
|
@Query("select count(p.fcltId) from TbFcltInfr p where p.fcltId = :fcltId")
|
|
|
Integer findUsageId(@Param("fcltId") String fcltId);
|
|
|
|
|
|
- @Query("update TbFcltInfr p set p.mainUserId = :mainUserId, p.subUserId = :subUserId where p.fcltId = :fcltType")
|
|
|
+ @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);
|
|
|
}
|