|
|
|
@@ -85,9 +85,9 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
JSONObject jo = JSONObject.parseObject(cs.getConditions()); |
|
|
|
int inventory = jo.getIntValue(WxCouponSend.KEY_MERCHANT_LNVENTORY); |
|
|
|
cs.setInventory(inventory); |
|
|
|
int expired = 1; |
|
|
|
if (DateUtils.isDateBefore(cs.getValidEndDate())) { |
|
|
|
expired = 0; |
|
|
|
int expired = 0; |
|
|
|
if (!DateUtils.isDateBefore(cs.getValidEndDate())) { |
|
|
|
expired = 1; |
|
|
|
} |
|
|
|
cs.setExpired(expired); |
|
|
|
} |
|
|
|
|