提交 cf0db727 编写于 作者: sq3536's avatar sq3536

resetcache

上级 446b3663
...@@ -3,10 +3,13 @@ package cn.ibizlab.core.extensions.service; ...@@ -3,10 +3,13 @@ package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.lite.service.impl.MetaEntityServiceImpl; import cn.ibizlab.core.lite.service.impl.MetaEntityServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.lite.domain.MetaEntity; import cn.ibizlab.core.lite.domain.MetaEntity;
import cn.ibizlab.core.lite.extensions.service.LiteModelService;
import cn.ibizlab.core.lite.extensions.util.LiteStorage; import cn.ibizlab.core.lite.extensions.util.LiteStorage;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
import java.util.*; import java.util.*;
...@@ -34,12 +37,16 @@ public class MetaEntityExService extends MetaEntityServiceImpl { ...@@ -34,12 +37,16 @@ public class MetaEntityExService extends MetaEntityServiceImpl {
return super.getDefaultModel(et); return super.getDefaultModel(et);
} }
@Autowired
@Lazy
private LiteModelService liteModelService;
@Override @Override
public boolean update(MetaEntity et) public boolean update(MetaEntity et)
{ {
if(!super.update(et)) if(!super.update(et))
return false; return false;
LiteStorage.resetMetaEntity(et.getEntityId()); liteModelService.resetEntityModel(et.getSystemId(), et.getEntityName());
return true; return true;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册