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

修复搜索项in查询配置代码表bug

上级 52eec457
......@@ -78,13 +78,17 @@ public class ${item.codeName}SearchContext extends QueryWrapperContext<${item.co
this.getSearchCond().isNull("${formitem.getPSDEField().getName()?lower_case}");
}
<#elseif formitem.getValueOp() == "IN">
<#assign valueSeparator=";">
<#if formitem.getPSCodeListId()??>
<#assign codeListName=getCodeListName(formitem.getPSCodeListId())>
String defaultSeparator=(CodeListBase.getCodeList("${codeListName}")==null)?";":CodeListBase.getCodeList("${codeListName}").getCodeList().getValueseparator();
<#else >
String defaultSeparator=";";
<#assign codelistId=formitem.getPSCodeListId()>
<#if sys.getPSCodeList(codelistId,true)??>
<#assign codelist=sys.getPSCodeList(codelistId)>
<#if codelist.getValueSeparator?? && codelist.getValueSeparator()?? && codelist.getValueSeparator()!=''>
<#assign valueSeparator=codelist.getValueSeparator()>
</#if>
</#if>
</#if>
this.getSearchCond().in("${formitem.getPSDEField().getName()?lower_case}",this.${formitem.getName()?lower_case}.split(defaultSeparator));
this.getSearchCond().in("${formitem.getPSDEField().getName()?lower_case}",this.${formitem.getName()?lower_case}.split("${valueSeparator}"));
<#elseif formitem.getValueOp() == "NOTIN">
<#if formitem.getPSCodeListId()??>
<#assign codeListName=getCodeListName(formitem.getPSCodeListId())>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册