Commit d88addb7 by chongli

解决非电话号码发券报错问题

parent 51544dda
......@@ -144,7 +144,7 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
Date now = new Date();
if(sendBeginTime.getTime()<now.getTime()&&now.getTime()<sendEndTime.getTime()){
VoucherRule voucherRule = this.getVoucherRuleDao().findById(Integer.parseInt(jsobj.getString("id")));
this.getVoucherDao().sendVoucherToSpecificUsers(voucherRule, order.getUid(), voucherRule.getQuantity());
this.getVoucherDao().sendVoucherToSpecificUsers(voucherRule, "'"+order.getUid()+"'", voucherRule.getQuantity());
}
} catch (ParseException e) {
e.printStackTrace();
......
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