提交 ae8e51f6 编写于 作者: hebao@lab.ibiz5.com's avatar hebao@lab.ibiz5.com

result传参bug修复

上级 124f6d85
......@@ -6,6 +6,7 @@ import cn.ibizlab.core.rule.domain.ExecLog;
import cn.ibizlab.core.rule.domain.ExecResult;
import cn.ibizlab.core.rule.service.IExecLogService;
import cn.ibizlab.core.rule.service.IExecResultService;
import cn.ibizlab.util.helper.CachedBeanCopier;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.helper.RuleUtils;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
......@@ -29,7 +30,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
......@@ -129,21 +129,24 @@ public class BaseEntityServiceImpl implements BaseEntityService
result.setDimField(DataObject.getStringValue(obj,null));
if(StringUtils.isEmpty(result.getDimField()))
continue;
result.setId(result.getDefaultKey(true).toString());
if(result.getRetValue()==1)
ExecResult result2=new ExecResult();
CachedBeanCopier.copy(result, result2);
result2.setId(result.getDefaultKey(true).toString());
if(result2.getRetValue()==1)
{
result.setRuleId(RULECODE);
result.setDomainsField(DataObject.getStringValue(valueOf(DOMAINSFIELD),result.getDimField()));
ruExecResultService.saveAsync(result);
result2.setRuleId(RULECODE);
result2.setDomainsField(DataObject.getStringValue(valueOf(DOMAINSFIELD),result.getDimField()));
ruExecResultService.saveAsync(result2);
}
else
{
ruExecResultService.deleteAsync(result);
ruExecResultService.deleteAsync(result2);
}
}
}
private Object valueOf(Object val)
protected Object valueOf(Object val)
{
Object rt=null;
if(val!=null && val instanceof List)
......@@ -162,7 +165,7 @@ public class BaseEntityServiceImpl implements BaseEntityService
return rt;
}
private String valuesOf(Object val)
protected String valuesOf(Object val)
{
String rt=null;
if(val!=null && val instanceof List)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册