你ds2数据集里面的根据控件过滤数据了吗
============
例如你的ds2数据集sql可以这样写
select * from 表
where 1=1
${if(len(省份)==0,""," and 省份字段='"+省份+"'")}
${if(len(性别)==0,""," and 性别字段='"+性别+"'")}
${if(len(政治面貌)==0,""," and 政治面貌字段='"+政治面貌+"'")}
${if(len(出生日期)==0,""," and 出生日期字段='"+出生日期+"'")}
=================
select * from 表
where 1=1
${if(len(省份)==0,""," and 省份字段 in ('"+省份+"')")}
${if(len(性别)==0,""," and 性别字段 in ('"+性别+"')")}
${if(len(政治面貌)==0,""," and 政治面貌字段 in ('"+政治面貌+"')")}
${if(len(出生日期)==0,""," and 出生日期字段='"+出生日期+"'")}