Explorar el Código

商户注券->设置有效期

release_toaliyun_real
Burce hace 6 años
padre
commit
86c0fb86e7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar