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

resetcache

上级 27f9e1f1
...@@ -3,8 +3,13 @@ package cn.ibizlab.core.extensions.service; ...@@ -3,8 +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 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.*;
...@@ -31,5 +36,18 @@ public class MetaEntityExService extends MetaEntityServiceImpl { ...@@ -31,5 +36,18 @@ public class MetaEntityExService extends MetaEntityServiceImpl {
public MetaEntity getDefaultModel(MetaEntity et) { public MetaEntity getDefaultModel(MetaEntity et) {
return super.getDefaultModel(et); return super.getDefaultModel(et);
} }
@Autowired
@Lazy
private LiteModelService liteModelService;
@Override
public boolean update(MetaEntity et)
{
if(!super.update(et))
return false;
liteModelService.resetEntityModel(et.getSystemId(), et.getEntityName());
return true;
}
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册