提交 9258de9e 编写于 作者: xuhui961310148's avatar xuhui961310148

update:规则构建结果不满足条件时,业务类别(businesscat)属性进行赋值操作

上级 fb5107c5
...@@ -131,6 +131,11 @@ public class BaseEntityServiceImpl implements BaseEntityService ...@@ -131,6 +131,11 @@ public class BaseEntityServiceImpl implements BaseEntityService
if(!StringUtils.isEmpty(ext2)) if(!StringUtils.isEmpty(ext2))
result.setExt2Field(ext2); result.setExt2Field(ext2);
} }
}else{
if(BUSINESSCAT==null)
BUSINESSCAT=param.getEmpty();
if((!BUSINESSCAT.getDataModelName().equals(DIMFIELD.getDataModelName()))||BUSINESSCAT.isSingle()||DIMFIELD.isSingle())
result.setBusinessCat(BUSINESSCAT.getValue(String.class,null));
} }
...@@ -241,6 +246,8 @@ public class BaseEntityServiceImpl implements BaseEntityService ...@@ -241,6 +246,8 @@ public class BaseEntityServiceImpl implements BaseEntityService
} }
else else
{ {
if(BUSINESSCAT.getDataModelName().equals(DIMFIELD.getDataModelName())&&BUSINESSCAT.getCount()==DIMFIELD.getCount()&&DIMFIELD.isMultiple())
result2.setBusinessCat(BUSINESSCAT.getItemValue(i,String.class,null));
result2.setId(result2.getDefaultKey(true).toString()); result2.setId(result2.getDefaultKey(true).toString());
result2.setRuleId(RULECODE); result2.setRuleId(RULECODE);
if (bSyncRun){ if (bSyncRun){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册