@ -22,11 +22,11 @@ public interface DictionaryRepository extends JpaRepository<Dictionary, String>{
@Modifying
@Modifying
@Transactional(rollbackFor=Exception.class)
@Transactional(rollbackFor=Exception.class)
@Query(nativeQuery=true,value="delete from sys_dictionary where id in ?1 ")
@Query(nativeQuery=true,value="delete from archives_dictionary_config where id in ?1 ")
voiddeleteByIds(List<String>ids);
voiddeleteByIds(List<String>ids);
@Query(nativeQuery=true,
@Query(nativeQuery=true,
countQuery="SELECT count(1) FROM sys_dictionary where dic_pid = ?1",
value="SELECT id,dic_name as dicName,dic_code as dicCode,dic_explain as dicExplain,dic_sequence as dicSequence,dic_type as dicType,dic_pid as dicPid FROM sys_dictionary where dic_pid = ?1")
countQuery="SELECT count(1) FROM archives_dictionary_config where dic_pid = ?1",
value="SELECT id,dic_name as dicName,dic_code as dicCode,dic_explain as dicExplain,dic_sequence as dicSequence,dic_type as dicType,dic_pid as dicPid FROM archives_dictionary_config where dic_pid = ?1")