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

配置完成

上级 cf6ced9c
......@@ -11,4 +11,7 @@ spring:
discovery:
server-addr: 172.16.100.77:8848
redis:
host: 172.16.100.77
\ No newline at end of file
host: 172.16.100.77
cache:
caffeine:
spec: initialCapacity=5,maximumSize=50000,expireAfterWrite=3600s
\ No newline at end of file
......@@ -6,6 +6,8 @@ import cn.ibizlab.core.rule.domain.RuleItem;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import org.springframework.util.StringUtils;
import java.util.*;
/**
......@@ -29,6 +31,10 @@ public class RuleItemExService extends RuleItemServiceImpl {
@Override
@Transactional
public RuleItem modelchange(RuleItem et) {
if((!StringUtils.isEmpty(et.getModelId())) && (et.getModelId().equalsIgnoreCase("4dfba2a475c4fb83cd50b9d316f3e7b6")||et.getModelId().equalsIgnoreCase("4dfba2a475c4fb83cd50b9d316f3e7b6")))
{
et.setFieldSet("{\"modelid\":\"a37711c0157cbd8e6ed121de8fc5a118\",\"metricentity\":\"TYYW_GG_AJJBXX\",\"metricfield\":\"TYYW_GG_AJJBXX.BMSAH\",\"timeentity\":\"TYYW_GG_AJJBXX\",\"timefield\":\"TYYW_GG_AJJBXX.SLRQ\",\"domainsentity\":\"TYYW_GG_AJJBXX\",\"domainsfield\":\"TYYW_GG_AJJBXX.CBDW_BM\",\"dimentity\":\"DL_GG_AJBLRY\",\"dimfield\":\"DL_GG_AJBLRY.CBRY\",\"keyvalueentity\":\"TYYW_GG_AJJBXX\",\"keyvaluefield\":\"TYYW_GG_AJJBXX.BMSAH\",\"businesscatentity\":\"DL_GG_AJXX\",\"businesscatfield\":\"DL_GG_AJXX.BZTXBM\",\"ext1entity\":\"\",\"ext1field\":\"\",\"ext2entity\":\"\",\"ext2field\":\"\"}");
}
return super.modelchange(et);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册