mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 19:02:44 +08:00
修改类名
This commit is contained in:
@@ -7,11 +7,16 @@ import org.springframework.cache.annotation.Cacheable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* TODO 完成注释
|
||||
* 启用缓冲的通用实体曾删改查服务,继承此类
|
||||
* 在类上注解{@link org.springframework.cache.annotation.CacheConfig}即可
|
||||
*
|
||||
* @author zhouhao
|
||||
* @see org.springframework.cache.annotation.CacheConfig
|
||||
* @see Cacheable
|
||||
* @see CacheEvict
|
||||
* @since 3.0
|
||||
*/
|
||||
public abstract class EnableCacheGernericEntityService<E extends GenericEntity<PK>, PK> extends GenericEntityService<E, PK> {
|
||||
public abstract class EnableCacheGenericEntityService<E extends GenericEntity<PK>, PK> extends GenericEntityService<E, PK> {
|
||||
|
||||
@Override
|
||||
@Cacheable(key = "'ids:'+#id.hashCode()", condition = "#id!=null")
|
||||
@@ -30,7 +30,7 @@ import org.hswebframework.web.organizational.authorization.TreeNode;
|
||||
import org.hswebframework.web.organizational.authorization.simple.SimplePersonnel;
|
||||
import org.hswebframework.web.organizational.authorization.simple.SimplePersonnelAuthorization;
|
||||
import org.hswebframework.web.service.DefaultDSLQueryService;
|
||||
import org.hswebframework.web.service.EnableCacheGernericEntityService;
|
||||
import org.hswebframework.web.service.EnableCacheGenericEntityService;
|
||||
import org.hswebframework.web.service.authorization.AuthorizationSettingTypeSupplier;
|
||||
import org.hswebframework.web.service.authorization.UserService;
|
||||
import org.hswebframework.web.service.organizational.PersonService;
|
||||
@@ -56,7 +56,7 @@ import static org.springframework.util.StringUtils.isEmpty;
|
||||
*/
|
||||
@Service("personService")
|
||||
@CacheConfig(cacheNames = "person")
|
||||
public class SimplePersonService extends EnableCacheGernericEntityService<PersonEntity, String>
|
||||
public class SimplePersonService extends EnableCacheGenericEntityService<PersonEntity, String>
|
||||
implements PersonService, PersonnelAuthorizationManager, AuthorizationSettingTypeSupplier {
|
||||
|
||||
private static String SETTING_TYPE_PERSON = "person";
|
||||
|
||||
Reference in New Issue
Block a user