zhouhao 7 年 前
コミット
e27e09f377

+ 7 - 2
hsweb-commons/hsweb-commons-service/hsweb-commons-service-simple/src/main/java/org/hswebframework/web/service/EnableCacheGernericEntityService.java

@@ -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")

+ 2 - 2
hsweb-system/hsweb-system-organizational/hsweb-system-organizational-service/hsweb-system-organizational-service-simple/src/main/java/org/hswebframework/web/service/organizational/simple/SimplePersonService.java

@@ -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";