Przeglądaj źródła

商户注券->设置有效期

release_toaliyun_real
Burce 6 lat temu
rodzic
commit
86c0fb86e7
1 zmienionych plików z 3 dodań i 3 usunięć
  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 Wyświetl plik

@@ -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);
}


Ładowanie…
Anuluj
Zapisz