Commit 11edbeb4 authored by hezhen's avatar hezhen

Merge branch 'hz_master' into dev

parents 39eb1eab 4e261ede
......@@ -66,6 +66,10 @@ public class ActivityRuleBiz extends BaseBiz<ActivityRuleMapper,ActivityRule> {
Integer id=array.getJSONObject(i).getInteger("id");
Coupon coupon=couponBiz.selectById(id);
if (coupon!=null&&coupon.getIsDel()==0&&coupon.getStatus()==1){
if (coupon.getValidType()==2){
int days=coupon.getValidDays()==null?0:coupon.getValidDays();
coupon.setValidEndTime(System.currentTimeMillis()+days*24*60*60*1000);
}
coupons.add(couponBiz.selectById(id));
}
}
......
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 to comment