列表过滤及枚举字段特殊处理

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

列表过滤及枚举字段特殊处理

 

/*列表过滤示例代码*/
var jobNature =rowData.jobNature ;
if(jobNature != null){
    filterParam = filterParam +" and EnterpriseJobIntension.jobNature in('"+jobNature+"','0') ";
    //filterParam = filterParam +" and EnterpriseJobIntension.jobNature ='全职' ";
    //filterParam = filterParam +" and id in (select farchivesBaseid from T_REC_EnterpriseJobIntension where    
    fjobNature='"+jobNature+"') ";
}


数据为枚举时,且QUERY里的字段类型int时,为过滤条件里必须设置int条件。

如果扩展QUERY的枚举字段EnterpriseJobIntension.jobNature在列表界面不正常,在Handler类中扩展afterGetListData方法,强制把字段值设置为String


image.webp

列表过滤及枚举字段特殊处理

/*列表过滤示例代码*/var jobNature =rowData.jobNature ;if(jobNature != null){ filterParam = filterParam +" and EnterpriseJobInt...
点击下载文档
分享:
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息