| | |
| | | import com.matrix.system.shopXcx.api.vo.WxActivitiesGroupBuyVO; |
| | | import com.matrix.system.shopXcx.bean.*; |
| | | import com.matrix.system.shopXcx.dao.*; |
| | | import org.jetbrains.annotations.NotNull; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | } |
| | | ShopShareQrcord queryOrcode = new ShopShareQrcord(); |
| | | queryOrcode.setProductId(qrcodeVo.getProductId()); |
| | | queryOrcode.setUserId(loginUser.getOpenId()); |
| | | queryOrcode.setUserId(loginUser.getId()); |
| | | |
| | | if (isGroupProduct ) { |
| | | queryOrcode.setProductId(Integer.parseInt(qrcodeVo.getActId() + "")); |
| | |
| | | //如果未查询到就先插入数据再更新数据 |
| | | shareQrcord.setCreateBy(loginUser.getOpenId()); |
| | | shareQrcord.setUpdateBy(loginUser.getOpenId()); |
| | | shareQrcord.setUserId(loginUser.getOpenId()); |
| | | shareQrcord.setUserId(loginUser.getId()); |
| | | shareQrcord.setShopId(qrcodeVo.getShopId()); |
| | | //拼团活动 |
| | | if (isGroupProduct ) { |
| | |
| | | return qrcodeImgParam; |
| | | } |
| | | |
| | | @NotNull |
| | | private QrcodeImgParam getQrcodeImgParam(SysVipInfo loginUser, QrcodeVo qrcodeVo) throws Exception { |
| | | |
| | | ShopProduct shopProduct = shopProductDao.selectById(qrcodeVo.getProductId()); |