提交 c12a3ed3 编写于 作者: zhouweidong's avatar zhouweidong

修复工作流交互连接表达式问题

上级 80bcc614
......@@ -467,10 +467,10 @@ public class WorkflowModel extends BaseModel{
strRuleCond=strRuleCond+conn;
strRuleCond = strRuleCond + getGroupCond((IPSWFLinkGroupCond) childWFLinkCond);
}
else if(childWFLinkCond instanceof IPSWFLinkSingleCond ) {
else if(childWFLinkCond instanceof PSWFLinkSingleCondImpl ) {
if(!strRuleCond.equalsIgnoreCase("("))
strRuleCond=strRuleCond+conn;
strRuleCond = strRuleCond + getFieldCond((IPSWFLinkSingleCond) childWFLinkCond);
strRuleCond = strRuleCond + getFieldCond((PSWFLinkSingleCondImpl) childWFLinkCond);
}
}
......@@ -479,13 +479,13 @@ public class WorkflowModel extends BaseModel{
return strRuleCond;
}
private String getFieldCond(IPSWFLinkSingleCond WFLinkCond)
private String getFieldCond(PSWFLinkSingleCondImpl WFLinkCond)
{
String fieldCond="(";
String condBody="";
String paramType=WFLinkCond.getParamType()==null?"":WFLinkCond.getParamType();
String targetField=WFLinkCond.getFieldName()==null?"":WFLinkCond.getFieldName().toLowerCase();
String targetDBValueOP=WFLinkCond.getCondType();
String targetDBValueOP=WFLinkCond.getCondOP();
String targetValue=WFLinkCond.getParamValue();
if("ISNULL".equalsIgnoreCase(targetDBValueOP)||"ISNOTNULL".equalsIgnoreCase(targetDBValueOP))
condBody="wfCoreService.test(activedata."+targetField+", '"+targetDBValueOP+"', null)";
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册