| | |
| | | import me.zhengjie.modules.system.domain.DictDetail; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return / |
| | | */ |
| | | List<DictDetail> findByDictName(String name); |
| | | |
| | | /** |
| | | * 根据字典名称和字典值查询 |
| | | * @param name |
| | | * @param value |
| | | * @return |
| | | */ |
| | | DictDetail findByDictNameAndValue(String name, String value); |
| | | |
| | | /** |
| | | * 根据字典value查询 |
| | | * @param |
| | | * @param |
| | | */ |
| | | @Query(value = "SELECT * FROM `sys_dict_detail` where value = ?", nativeQuery = true) |
| | | DictDetail seleteByValue(String value); |
| | | } |