Stringsql="select v.UID,count(1) quantity,case when u.BindedMobilePhone !='' then u.BindedMobilePhone else u.MobilePhone end as mobilePhone from bsc_voucher v join bsc_userext u on v.UID=u.UID where v.EndUseDate>=:endUseDateStart and v.EndUseDate<=:endUseDateEnd and Used="
Stringsql="select v.UID,count(1) quantity,case when u.BindedMobilePhone !='' then u.BindedMobilePhone else u.MobilePhone end as mobilePhone from bsc_voucher v join bsc_userext u on v.UID=u.UID where v.EndUseDate>=:endUseDateStart and v.EndUseDate<=:endUseDateEnd and v.deleteStatus = 0 and Used="
+VourcherUsedEnum.UNUSED.getKey()+" group by v.UID";
+VourcherUsedEnum.UNUSED.getKey()+" group by v.UID";