소스 검색

商户注券->设置有效期

release_toaliyun_real
Burce 6 년 전
부모
커밋
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());
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);
}


불러오는 중...
취소
저장