|
|
@@ -3,6 +3,7 @@ package com.its.op.repository.database;
|
|
|
import com.its.op.model.entity.database.GropMenuAthr;
|
|
|
import com.its.op.model.entity.database.GropMenuAthrKey;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
+import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
@@ -13,4 +14,12 @@ public interface GropMenuAthrRepository extends JpaRepository<GropMenuAthr, Grop
|
|
|
|
|
|
@Query(value = "select p from GropMenuAthr p inner join fetch p.operMenu inner join fetch p.userGrop")
|
|
|
List<GropMenuAthr> findAll();
|
|
|
+
|
|
|
+ @Modifying // select 문이 아님을 나타낸다
|
|
|
+ @Query("delete from GropMenuAthr p where p.GROP_ID = :GROP_ID and p.OPERSYST_MENU_ID = :OPERSYST_MENU_ID")
|
|
|
+ void deleteByMenuId(String GROP_ID, String OPERSYST_MENU_ID) throws Exception;
|
|
|
+
|
|
|
+ @Modifying // select 문이 아님을 나타낸다
|
|
|
+ @Query(value = "insert into TB_GROP_MENU_ATHR(GROP_ID, OPERSYST_MENU_ID, ATHR_YN) values(:grop_id, :menu_id, :authr_yn)", nativeQuery = true)
|
|
|
+ void insertValue(String grop_id, String menu_id, String authr_yn) throws Exception;
|
|
|
}
|