sql语句为:select count(ht.id) as counts,lx.htlx from uf_srhtxxtzb ht,uf_htlxjmbd lx where lx.htlxsx=ht.htlx ${if('${htlx}'='科研(渠道科研)',"and ht.htlx in ('2508_3','2508_6')","")} group by lx.htlx
报错提示为:
${if(htlx='科研(渠道科研)',"and ht.htlx in ('2508_3','2508_6')","")}
改成 htlx 就行 不用加${}
select
count(ht.id) as counts,
lx.htlx
from uf_srhtxxtzb ht,uf_htlxjmbd lx
where lx.htlxsx=ht.htlx
group by lx.htlx