public interface SysDpResourceRepository extends SysDpBaseRepository<SysDpResource>
| 限定符和类型 | 方法和说明 |
|---|---|
long |
countByOption(SysDpOption option)
根据匹配值模糊查询
|
void |
deleteByColumnId(String columnId)
根据列ID删除资源数据
|
void |
deleteByTableId(String tableId)
根据表ID删除资源数据
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, savevoid deleteByTableId(String tableId)
tableId - 表IDvoid deleteByColumnId(String columnId)
columnId - 列ID@Query(value="select count(r) from SysDpResource r where r.tableId = :#{#option.tableId} and r.columnId = :#{#option.columnId} and r.matchValue like %:#{#option.id}%")
long countByOption(@Param(value="option")
SysDpOption option)
option - 匹配值选项Copyright © 2022. All rights reserved.