Commit 7a1e6416 by caosy

抵用券定时任务

parent fceaedab
......@@ -828,7 +828,7 @@ public class VoucherDao extends GenericHibernateDao<Voucher, Integer> {
}
public List<LabelValueBean<Integer>> queryRemindExpireVouchers(int remindExpireVoucherDay) {
String sql = "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="
String sql = "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";
Session session = this.getSession();
Query query = session.createSQLQuery(sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment