Browse Source

//tt product

release_toaliyun_real
xhxu 4 years ago
parent
commit
3d011812cd
2 changed files with 7 additions and 2 deletions
  1. +6
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 6
- 1
mallinkAdmin/src/main/java/com/iformall/controller/market/WxCouponController.java View File

@@ -258,7 +258,12 @@ public class WxCouponController extends BaseController {
return new ResultData(ResultData.ERROR, "券未查询到。"+wxCoupon.getId());
}

ResultData result = wxCouponService.updateTtProduct(wxCoupon);
coupon.setProductType(wxCoupon.getProductType());
coupon.setCategoryId(wxCoupon.getCategoryId());
coupon.setProductAttrs(wxCoupon.getProductAttrs());
coupon.setSkuAttrs(wxCoupon.getSkuAttrs());

ResultData result = wxCouponService.updateTtProduct(coupon);
CouponCacheUtils.removeCouponCache(redisTemplate, wxCoupon.getId());
CouponCacheUtils.removeCouponMerchantCache(redisTemplate, wxCoupon.getId());
return result;


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java View File

@@ -680,7 +680,7 @@ public class WxCouponServiceImpl<main> implements WxCouponService {
}
record.setSkuAttrs(JSONObject.toJSONString(skuAttrs));
}catch(Exception e){
e.printStackTrace();
logger.error(e.getMessage(),e);
return new ResultData(ErrorCode.SYS_PARAMETER_CAST_ERROR);
}
WxCoupon coupon = new WxCoupon();


Loading…
Cancel
Save