From 241a49f9653aa83d1dcd9bf646208da3157df35a Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Mon, 05 Apr 2021 22:48:14 +0800 Subject: [PATCH] 合并BizUser表与SysVipInfo表 大部分逻辑已经修正 可能存在问题的 1、拼团秒杀 2、分享图 3、分销结算 --- zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxShopProduct.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxShopProduct.java b/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxShopProduct.java index 8b408f8..ac983d3 100644 --- a/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxShopProduct.java +++ b/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxShopProduct.java @@ -1,6 +1,6 @@ package com.matrix.system.shopXcx.api.action; -import com.matrix.biz.bean.BizUser; +import com.matrix.system.hive.bean.SysVipInfo; import com.matrix.component.redis.RedisUserLoginUtils; import com.matrix.core.pojo.AjaxResult; import com.matrix.core.tools.StringUtils; @@ -111,7 +111,7 @@ //查询产品适配的优惠券 result.putInMap("couponList", shopCouponService.getCouponListByProductId(id)); //查询产品是否被用户收藏 - result.putInMap("checkCollect", CollectionUtils.isNotEmpty(collectionDao.selectByUserIdAndProid(id, redisUserLoginUtils.getLoginUser(BizUser.class).getOpenId()))); + result.putInMap("checkCollect", CollectionUtils.isNotEmpty(collectionDao.selectByUserIdAndProid(id, redisUserLoginUtils.getLoginUser(SysVipInfo.class).getOpenId()))); } else { result.putInMap("checkCollect", false); } @@ -209,13 +209,13 @@ * @param shopProduct */ private void saveSearchHistroy(@RequestBody ShopProduct shopProduct) { - BizUser bigUser = redisUserLoginUtils.getLoginUser(BizUser.class); + SysVipInfo bigUser = redisUserLoginUtils.getLoginUser(SysVipInfo.class); ShopSearchRecord searchBean = new ShopSearchRecord(); if (StringUtils.isNotBlank(shopProduct.getTitle())) { searchBean.setSearchType(AppConstance.SEARCH_TYPE); searchBean.setSearchContent(shopProduct.getTitle()); } - searchBean.setUserId(bigUser.getOpenId()); + searchBean.setUserId(bigUser.getId()); searchBean.setSearchPriceStart(shopProduct.getStartPrice()); searchBean.setSearchPriceEnd(shopProduct.getEndPrice()); searchBean.setSearchDel(AppConstance.DATA_USEABLE); -- Gitblit v1.9.1