里面的可以单独执行,但是再加个参数定义就报错
${if(len(one) == 0 && two=='00000001' || len(two)==0,
"select sum(a) from dm_dwlwslhz_info
where 1=1
${if(len(ks) == 0,"","and tjny >= '" +ks + "'")}
${if(len(js) == 0,"","and tjny <= '" +js + "'")}
",
"")}
"+if(len(ks) == 0,"","and tjny >= '" +ks + "'")+if(len(js) == 0,"","and tjny <= '" +js + "'"),