This commit is contained in:
2025-07-21 17:30:50 +08:00
parent a61249d1f2
commit 4aecd78cae
9179 changed files with 2803647 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package com.system.business.dictionary;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
//@Repository
public interface DictionaryDao extends JpaRepository<Dictionary,Long> ,
JpaSpecificationExecutor<Dictionary>{
@Query(value="from Dictionary where useflag = 1 and (typecode=?1 or typename=?2)")
public Dictionary findType(String typecode, String typename);
@Query(value="from Dictionary where useflag = 1 and typename = ?1 and (typecode=?2 or typename=?3)")
public Dictionary findItem(String typename,String itemname, String itemcode);
@Query(value="from Dictionary where useflag = 1 and itemname is null order by priority")
public List<Dictionary> findAllType();
@Query(value="from Dictionary where useflag = 1 and typecode = ?1 and itemname is not null order by priority")
public List<Dictionary> findByTypecode(String typecode);
}