上面sql if判断写法在帆软不行吗,应该怎么写?
${if(cndOrderType==0 && len(dingdan2)>0," and order_status in ('"+dingdan2+"') "," ")}
in 两侧的引号,另外控件的分隔符改成','
这样写${if(and(cndOrderType==0 , len(dingdan2))>0," and order_status in ("+dingdan2+") "," select 2")}
${if(cndOrderType==0 && len(dingdan2)>0," and order_status in ('"+substitute(dingdan2,",","','")+"') "," ")}