|
|
@@ -2,6 +2,7 @@ package cc.smtweb.framework.core.db.cache; |
|
|
|
|
|
|
|
import cc.smtweb.framework.core.annotation.SwCache; |
|
|
|
import cc.smtweb.framework.core.cache.AbstractCache; |
|
|
|
import cc.smtweb.framework.core.common.SwConsts; |
|
|
|
import cc.smtweb.framework.core.db.DbEngine; |
|
|
|
import cc.smtweb.framework.core.db.EntityDao; |
|
|
|
import cc.smtweb.framework.core.db.impl.DefaultEntity; |
|
|
@@ -38,10 +39,10 @@ public class EntityCache extends AbstractCache<DefaultEntity> { |
|
|
|
String ret = ""; |
|
|
|
for (String s : StringUtils.split(cache.getFields(), ",")) { |
|
|
|
if (StringUtils.isNotEmpty(s)) { |
|
|
|
ret += "_" + bean.getStr(s); |
|
|
|
ret += SwConsts.SPLIT_CHAR + bean.getStr(s); |
|
|
|
} |
|
|
|
} |
|
|
|
return ret; |
|
|
|
return ret.substring(1); |
|
|
|
}; |
|
|
|
if (cache.isMapType()) { |
|
|
|
regMap(cache.getName(), key); |
|
|
|