修改用户端首页精品推荐和促销商品的销量和商品详情页销量不一样。
This commit is contained in:
@ -91,6 +91,7 @@ import com.github.binarywang.wxpay.bean.order.WxPayMwebOrderResult;
|
|||||||
import com.github.binarywang.wxpay.exception.WxPayException;
|
import com.github.binarywang.wxpay.exception.WxPayException;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.cache.annotation.CacheEvict;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@ -589,6 +590,7 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<YxStoreOrderMapper,
|
|||||||
* @param orderId
|
* @param orderId
|
||||||
* @param uid
|
* @param uid
|
||||||
*/
|
*/
|
||||||
|
@CacheEvict(cacheNames = ShopConstants.YSHOP_REDIS_INDEX_KEY,allEntries = true)
|
||||||
@Override
|
@Override
|
||||||
public void takeOrder(String orderId, int uid) {
|
public void takeOrder(String orderId, int uid) {
|
||||||
YxStoreOrderQueryVo order = getOrderInfo(orderId,uid);
|
YxStoreOrderQueryVo order = getOrderInfo(orderId,uid);
|
||||||
|
Reference in New Issue
Block a user