Class DictDAO
java.lang.Object
io.github.xezzon.zeroweb.common.jpa.BaseDAO<Dict,String,DictRepository>
io.github.xezzon.zeroweb.dict.internal.DictDAO
- All Implemented Interfaces:
io.github.xezzon.tao.trait.NewType<DictRepository>
@Repository
public class DictDAO
extends io.github.xezzon.zeroweb.common.jpa.BaseDAO<Dict,String,DictRepository>
- Author:
- xezzon
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<Dict>findAll(io.github.xezzon.zeroweb.core.odata.ODataQueryOption odata) 分页查询io.github.xezzon.zeroweb.common.jpa.BaseDAO.ICopier<Dict>longupdateStatus(Collection<String> ids, Boolean enabled) 更新字典项的状态void根据 tag、code 判断,如果字典存在,则跳过;否则保存Methods inherited from class io.github.xezzon.zeroweb.common.jpa.BaseDAO
get, partialUpdate
-
Method Details
-
getCopier
- Specified by:
getCopierin classio.github.xezzon.zeroweb.common.jpa.BaseDAO<Dict,String, DictRepository>
-
findAll
public org.springframework.data.domain.Page<Dict> findAll(io.github.xezzon.zeroweb.core.odata.ODataQueryOption odata) 分页查询- Overrides:
findAllin classio.github.xezzon.zeroweb.common.jpa.BaseDAO<Dict,String, DictRepository> - Parameters:
odata- 前端查询参数- Returns:
- 字典列表
-
upsert
根据 tag、code 判断,如果字典存在,则跳过;否则保存- Parameters:
dict- 字典信息
-
updateStatus
更新字典项的状态- Parameters:
ids- 需要更新的字典项ID集合enabled- 更新后的启用状态,true为启用,false为禁用- Returns:
- 更新影响的行数
-