|
@@ -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");
|
|
@@ -326,15 +312,16 @@ public class ProductInfoHandler {
|
|
|
*/
|
|
|
map = new HashMap<String, Object>();
|
|
|
|
|
|
- if ((boolean)qrCodeMap.get("flag")) {
|
|
|
+ /*if ((boolean)qrCodeMap.get("flag")) {
|
|
|
map.put("qrCode", qrCodeMap.get("qrCode"));
|
|
|
map.put("shopQrCode", qrCodeMap.get("shopQrCode"));
|
|
|
- }
|
|
|
- map.put("flag", (boolean)qrCodeMap.get("flag")); //判断是否有商户个人二维码
|
|
|
+ }*/
|
|
|
+ map.put("flag", false); //判断是否有商户个人二维码
|
|
|
map.put("isShow", ResultInfo.ISSHOW);
|
|
|
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"));
|