소스 검색

[卡][修改]:卡有效期修改

release_toaliyun_real
Stormeye Wu 6 년 전
부모
커밋
3c35399750
2개의 변경된 파일13개의 추가작업 그리고 2개의 파일을 삭제
  1. +11
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java
  2. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 11
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java 파일 보기

@@ -265,4 +265,15 @@ public class WxCoupon extends BaseEntity {
return false;
}

public boolean checkIsCard() {
if(type == null) {
return false;
}

if(type == EnumCouponType.CARD_MULTIMCH.getCode()) {
return true;
}
return false;
}

}

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java 파일 보기

@@ -644,7 +644,7 @@ public class WxOrderServiceImpl implements WxOrderService {
if (coupon.getValidType().equals(EnumValidStatus.VALID_RANGE.getCode()) ||
coupon.getType().equals(EnumCouponType.COUPON_TINGCHE.getCode())) {
valid_date = coupon.getValidEndDate();
if (coupon.getSalePrice() > 0) {
if (coupon.getSalePrice() > 0 && !coupon.checkIsCard()) {
// 有价券核销有效期不能大于分账过期时间
Date limit_date = DateUtils.getTimeAfterDays(limit_days, curr);
if (valid_date.after(limit_date)) {
@@ -652,7 +652,7 @@ public class WxOrderServiceImpl implements WxOrderService {
}
}
} else {
if (coupon.getSalePrice() > 0) {
if (coupon.getSalePrice() > 0 && !coupon.checkIsCard()) {
// 有价券核销有效期不能大于分账过期时间
if (coupon.getValidDays() < Constant.WX_LIMIT_DAYS) {
limit_days = coupon.getValidDays();


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