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

modify

上级 2143039d
......@@ -3,6 +3,7 @@ package cn.ibizlab.core.lite.extensions.service;
import cn.ibizlab.core.lite.extensions.domain.EntityModel;
import cn.ibizlab.core.lite.extensions.domain.EntityObj;
import cn.ibizlab.core.lite.extensions.domain.ModelObj;
import cn.ibizlab.core.rule.domain.ExecResult;
import cn.ibizlab.util.filter.QueryFilter;
import java.sql.Timestamp;
......@@ -17,6 +18,9 @@ public interface CommonEntityService {
List<EntityObj> search(String dsName, String sql, QueryFilter filter);
int saveResultBatch(List<ExecResult> var1);
int clearResultBatch(List<ExecResult> var1);
List<ModelObj> getModelObjs(String metaModelId, Timestamp lastModify);
ModelObj getModelObjs(String metaModelId, Object factKey);
ModelObj getModelObjs(String metaModelId, Object... factUniKey);
......
......@@ -10,6 +10,7 @@ import cn.ibizlab.core.lite.extensions.filter.DbEntitySearchContext;
import cn.ibizlab.core.lite.extensions.model.DataModel;
import cn.ibizlab.core.lite.extensions.model.Property;
import cn.ibizlab.core.lite.service.IMetaModelService;
import cn.ibizlab.core.rule.domain.ExecResult;
import cn.ibizlab.util.filter.QueryFilter;
import com.alibaba.fastjson.JSON;
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
......@@ -135,6 +136,22 @@ public class DbEntityService extends ServiceImpl<DbEntityMapper, EntityObj> impl
}
}
@Autowired
private DbEntityMapper dbEntityMapper;
@Override
public int saveResultBatch(List<ExecResult> var1)
{
return dbEntityMapper.replaceBatch(var1);
}
@Override
public int clearResultBatch(List<ExecResult> var1)
{
return dbEntityMapper.clearBatch(var1);
}
@Autowired
private IMetaModelService metaModelService;
......
......@@ -3,6 +3,7 @@ package cn.ibizlab.core.lite.extensions.service;
import cn.ibizlab.core.lite.extensions.domain.EntityModel;
import cn.ibizlab.core.lite.extensions.domain.EntityObj;
import cn.ibizlab.core.lite.extensions.domain.ModelObj;
import cn.ibizlab.core.rule.domain.ExecResult;
import cn.ibizlab.util.filter.QueryFilter;
import org.springframework.stereotype.Service;
......@@ -32,6 +33,18 @@ public class MongoEntityService implements CommonEntityService{
return null;
}
@Override
public int saveResultBatch(List<ExecResult> var1)
{
return 0;
}
@Override
public int clearResultBatch(List<ExecResult> var1)
{
return 0;
}
@Override
public List<ModelObj> getModelObjs(String metaModelId, Timestamp lastModify) {
return null;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册