select * from aaa where 1=1
${if(len(aa) == 0,"","and sto.up_store_code in ('" + aa + "')")}
${if(aa == 1,"and substr(a.pay_time ,1,10)>=('" + start_time + "') and
substr(a.pay_time ,1,10)<=('" + end_time + "')","and substr(a.pay_time ,1,7)>=('" + start_time + "') and
substr(a.pay_time ,1,7)<=('" + end_time + "')")}