本帖最后由 香肠炒年糕 于 2016-12-21 15:25 编辑 通过下拉复选框传递参数,参数都是字符串,也参考了论坛内的一些帖子,依旧无解,所以来求教大神们了 SELECT * FROM ZYOA.view_formmain_2720 where 审核状态=1 and 流程状态=1 and 1=1 ${if(len(age)=0,""," and 司龄 = "+age+"")} and 1=1${if(len(com)==0,"","and 所在单位 in ('"+ com +"')")} and 1=1 ${if(len(post)=0,""," and 岗位 = "+post+"")} 数据集的sql是这么写的。我在预览的时候,com参数输入一个就没问题,输入两个就问题了?是否是我的字符串设置的有问题呢? 下图是控件的属性 |
最佳回答 |
||||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|