Просмотр исходного кода

商户注券->设置有效期

release_toaliyun_real
Burce 6 лет назад
Родитель
Сommit
86c0fb86e7
1 измененных файлов: 3 добавлений и 3 удалений
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java

+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java Просмотреть файл

@@ -85,9 +85,9 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
JSONObject jo = JSONObject.parseObject(cs.getConditions()); JSONObject jo = JSONObject.parseObject(cs.getConditions());
int inventory = jo.getIntValue(WxCouponSend.KEY_MERCHANT_LNVENTORY); int inventory = jo.getIntValue(WxCouponSend.KEY_MERCHANT_LNVENTORY);
cs.setInventory(inventory); 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); cs.setExpired(expired);
} }


Загрузка…
Отмена
Сохранить