Package io.github.xezzon.zeroweb.dict
Class DictDAO
java.lang.Object
io.github.xezzon.zeroweb.common.jpa.BaseDAO<Dict,String,DictRepository>
io.github.xezzon.zeroweb.dict.DictDAO
- All Implemented Interfaces:
io.github.xezzon.tao.trait.NewType<DictRepository>
- Author:
- xezzon
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.xezzon.zeroweb.common.jpa.BaseDAO
BaseDAO.ICopier<T>, BaseDAO.UpdateCriteriaBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<Dict>
findAll
(ODataQueryOption odata) 分页查询long
updateStatus
(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:
getCopier
in classBaseDAO<Dict,
String, DictRepository>
-
findAll
分页查询- Overrides:
findAll
in classBaseDAO<Dict,
String, DictRepository> - Parameters:
odata
- 前端查询参数- Returns:
- 字典列表
-
upsert
根据 tag、code 判断,如果字典存在,则跳过;否则保存- Parameters:
dict
- 字典信息
-
updateStatus
更新字典项的状态- Parameters:
ids
- 需要更新的字典项ID集合enabled
- 更新后的启用状态,true为启用,false为禁用- Returns:
- 更新影响的行数
-