|
@@ -211,7 +211,10 @@ public class ProductInfoHandler {
|
|
|
}
|
|
|
|
|
|
if (StaticInfo.pattern.matcher(productId).find()) {
|
|
|
+ //获取产品详情
|
|
|
Product product = this.productInfoService.getProductByProductId(Integer.parseInt(productId),colorId);
|
|
|
+ //获取该产品所有颜色信息
|
|
|
+ List<ProductColor> colorList = productInfoService.selectColorList(Integer.parseInt(productId));
|
|
|
|
|
|
String[] machineIds = {};
|
|
|
boolean codeFlag = false;
|
|
@@ -228,23 +231,6 @@ public class ProductInfoHandler {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //Map<String,Object> qrCodeMap = createQrCode(productId,colorId,member,codeFlag);
|
|
|
-
|
|
|
- /*//如果是有二维码的商户,进入后显示优惠价
|
|
|
- int num = productInfoService.getQrCodeByPlaceOpenId(member.getUserOpenid());
|
|
|
- if (num > 0) {
|
|
|
- QrcodeGift gift = new QrcodeGift();
|
|
|
- List<QrcodeGift> giftList = productInfoService.listQrcodeGift(gift);
|
|
|
- if (giftList != null && giftList.size() > 0 && product != null) {
|
|
|
- for (QrcodeGift qrcodeGift : giftList) {
|
|
|
- if (product.getColorId().intValue() == qrcodeGift.getQrcodeColorId()
|
|
|
- && qrcodeGift.getQrcodePreDiscount() != null
|
|
|
- && qrcodeGift.getQrcodePreDiscount() > 0) {
|
|
|
- product.setProductDiscount(qrcodeGift.getQrcodePreDiscount());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }*/
|
|
|
|
|
|
//如果用户是扫描二维码进入,则显示优惠价
|
|
|
String userQrcodeType = request.getParameter("userQrcodeType");
|
|
@@ -335,6 +321,7 @@ public class ProductInfoHandler {
|
|
|
map.put("cartDesc", ResultInfo.CARTDESC);
|
|
|
map.put("cart_url", ResultInfo.CART_URL);
|
|
|
map.put("product", product);
|
|
|
+ map.put("colorList",colorList);
|
|
|
map.put("shareOpenid", member.getUserOpenid());
|
|
|
remsg.setData(map);
|
|
|
remsg.setMessage(NameUtils.getConfig("SUCCESSINFO"));
|