|
最佳回答 |
0
|
snrtuemcLv8专家互助发布于7 天前(编辑于 7 天前)
|
and有问题,不支持这个写法 
================ 改成这个样 ${if(len(code1) == 0,"",if(and(len(code1)<>=0,type=1),"and a.lng_station_code = '" +code1 + "'","and a.customer_code = '" +code1 + "'"))}
|
-
snrtuemc 回复 0035705(提问者)
- 看修改答案,你的and的后面括号放错地方了
-
0035705(提问者)
- 还是不行啊,下面参数没出来
-
snrtuemc 回复 0035705(提问者)
- 帆软语句不等于是 != 这个写法,不是<>,改成
${if(len(code1) == 0,"",if(and(len(code1) != 0,type=1)," and a.lng_station_code = '"+code1+"'","and a.customer_code='"+code1+"'"))}
|
|
|
最佳回答 |
0
|
微笑背后的无奈Lv4见习互助发布于7 天前
|
图片上面 你type=1 右边没有括号, 你的and函数没有结束。 此外, len(code1) <> 0 或者 len(code1) !=0 就行,你这 <>和= 一起放了
|
|
|
|
最佳回答 |
0
|
帆软用户POdvwWdKZ4Lv3见习互助发布于7 天前
|
${if(len(code1) = 0,"",if(and(len(code1)<>0,type=1),"and a.lng_station_code = '" +code1+ "'","and a.customer_code = '" +code1+ "'"))}
用这段 给你修改好了
|
|
|
|
最佳回答 |
0
|
期待遇见youLv4初级互助发布于7 天前
|
这么写有个问题 type会识别为参数 ${if(len(code1)==0,"" ,if( and(len(code1)<>0, type=1),"and a.lng_station_code = ('"+code1+"')","and a.customer_code >= ('"+code1+"')" ))}
|
|
|