@Service(value="departmentService") @CacheConfig(cacheNames="department") public class SimpleDepartmentService extends EnableCacheAllEvictTreeSortService<DepartmentEntity,String> implements DepartmentService
| 限定符和类型 | 字段和说明 |
|---|---|
protected PositionDao |
positionDao |
entityFactory, entityType, logger, logicPrimaryKeyValidator, primaryKeyType, validator| 构造器和说明 |
|---|
SimpleDepartmentService() |
| 限定符和类型 | 方法和说明 |
|---|---|
DepartmentEntity |
deleteByPk(String id) |
DepartmentDao |
getDao() |
protected org.hswebframework.web.id.IDGenerator<String> |
getIDGenerator() |
String |
insert(DepartmentEntity entity) |
DepartmentEntity |
selectByCode(String code) |
List<DepartmentEntity> |
selectByName(String name) |
List<DepartmentEntity> |
selectByOrgId(String orgId) |
List<DepartmentEntity> |
selectByOrgIds(List<String> orgId,
boolean children,
boolean parent) |
int |
updateByPk(String id,
DepartmentEntity entity) |
count, saveOrUpdate, select, selectAllChildNode, selectByPk, selectByPk, selectChildNode, selectParentNode, updateBatch, updateByPkapplyPath, createParentIdOnExists, insertBatch, saveOrUpdateForSingle, updateByPkdataExisted, initassertNotNull, assertNotNull, createEntity, entityFactoryIsEnabled, getEntityInstanceType, getEntityType, getPrimaryKeyType, setEntityFactory, setLogicPrimaryKeyValidator, setValidator, tryValidate, tryValidate, tryValidate, tryValidateProperty, tryValidateProperty, tryValidatePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinsertBatch, selectAllChildNode, selectChildNode, selectParentNode, updateBatchcount, select, selectPager, selectSinglesaveOrUpdate, updateByPkcreateEntity, getEntityInstanceTypecount, select, selectByPk, selectByPkcreateQuery, createQuerycount, select, selectPager, selectSinglecreateUpdate, createUpdate, createUpdate, createUpdatecreateDelete, createDelete, createDelete@Autowired protected PositionDao positionDao
public DepartmentDao getDao()
getDao 在接口中 DefaultDSLDeleteService<DepartmentEntity,String>getDao 在接口中 DefaultDSLUpdateService<DepartmentEntity,String>getDao 在接口中 DefaultQueryByEntityService<DepartmentEntity>getDao 在接口中 GenericService<DepartmentEntity,String>protected org.hswebframework.web.id.IDGenerator<String> getIDGenerator()
@Cacheable(key="\'org-id:\'+#orgId") public List<DepartmentEntity> selectByOrgId(String orgId)
selectByOrgId 在接口中 DepartmentService@Cacheable(key="\'org-ids:\'+#orgId==null?0:orgId.hashCode()+\'_\'+#children+\'_\'+#parent") public List<DepartmentEntity> selectByOrgIds(List<String> orgId, boolean children, boolean parent)
selectByOrgIds 在接口中 DepartmentService@Cacheable(key="\'name:\'+#name") public List<DepartmentEntity> selectByName(String name)
selectByName 在接口中 DepartmentService@Cacheable(key="\'code:\'+#code") public DepartmentEntity selectByCode(String code)
selectByCode 在接口中 DepartmentServicepublic DepartmentEntity deleteByPk(String id)
deleteByPk 在接口中 DefaultDeleteService<DepartmentEntity,String>deleteByPk 在接口中 DeleteService<DepartmentEntity,String>deleteByPk 在类中 EnableCacheAllEvictTreeSortService<DepartmentEntity,String>public String insert(DepartmentEntity entity)
insert 在接口中 InsertService<DepartmentEntity,String>insert 在类中 EnableCacheAllEvictTreeSortService<DepartmentEntity,String>public int updateByPk(String id, DepartmentEntity entity)
Copyright © 2016–2019. All rights reserved.