|
|
|
@@ -19,6 +19,7 @@ import com.iformall.mapper.*; |
|
|
|
import com.iformall.service.*; |
|
|
|
import com.iformall.service.pay.PayServiceFactory; |
|
|
|
import com.iformall.service.pay.service.fee.ServiceFeeAdapterService; |
|
|
|
import com.iformall.service.util.CouponCacheUtils; |
|
|
|
import com.iformall.utils.Constant; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
import me.chanjar.weixin.common.error.WxErrorException; |
|
|
|
@@ -27,7 +28,9 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Qualifier; |
|
|
|
import org.springframework.context.annotation.Lazy; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Isolation; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
@@ -98,6 +101,10 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
@Autowired |
|
|
|
PayServiceFactory payServiceFactory; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Qualifier("objectCommonRedisTemplate") |
|
|
|
RedisTemplate<String, Object> redisTemplate; |
|
|
|
|
|
|
|
// @Override |
|
|
|
// public ResultData couponList(TtCouponVo ttCouponVo, Integer pageNum, Integer pageSize) { |
|
|
|
// PageInfo<TtCouponVo> pageInfo = PageHelper.startPage(pageNum, pageSize).doSelectPageInfo(() -> wxCouponMapper.ttCouponList(ttCouponVo)); |
|
|
|
@@ -552,11 +559,10 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
wxCouponMerchantMapper.insert(cmt); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//审核通过即上架 |
|
|
|
handlePullOn(ttCouponChannelPoi,now); |
|
|
|
} |
|
|
|
} |
|
|
|
//审核通过即上架 |
|
|
|
handlePullOn(ttCouponChannelPoi,now); |
|
|
|
|
|
|
|
return new ResultData(product); |
|
|
|
}else{ |
|
|
|
@@ -650,6 +656,9 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
wxCouponChannelMapper.insert(addCouponChannel); |
|
|
|
} |
|
|
|
|
|
|
|
CouponCacheUtils.removeCouponCache(redisTemplate, wxCoupon.getId()); |
|
|
|
CouponCacheUtils.removeCouponMerchantCache(redisTemplate, wxCoupon.getId(),null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|