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

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

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