修改userid从订单中获取
This commit is contained in:
@@ -261,7 +261,7 @@ public class CouponServiceImpl extends ServiceImpl<CouponDao, CouponEntity> impl
|
|||||||
ShopProduct shopProduct = shopProductDao.selectById(map.get("product_id").toString());
|
ShopProduct shopProduct = shopProductDao.selectById(map.get("product_id").toString());
|
||||||
for (int i=0;i<Integer.parseInt(map.get("quantity").toString());i++){
|
for (int i=0;i<Integer.parseInt(map.get("quantity").toString());i++){
|
||||||
insertCouponHistory(Integer.parseInt(map.get("coupon_id").toString()),
|
insertCouponHistory(Integer.parseInt(map.get("coupon_id").toString()),
|
||||||
ShiroUtils.getUId(), 1,"购买商品"+shopProduct.getProductName()+"赠送");
|
order.getUserId(), 1,"购买商品"+shopProduct.getProductName()+"赠送");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user