适配优化更新索引促销方式的结算。
This commit is contained in:
@@ -154,8 +154,10 @@ public class CheckDataRender implements CartRenderStep {
|
||||
try {
|
||||
//筛选属于当前店铺的优惠券
|
||||
storeCart.getValue().forEach(i -> i.getPromotionMap().forEach((key, value) -> {
|
||||
if (key.contains(PromotionTypeEnum.COUPON.name()) && ((Coupon) value).getStoreId().equals(storeCart.getKey())) {
|
||||
cartVO.getCanReceiveCoupon().add(new CouponVO((Coupon) value));
|
||||
JSONObject promotionsObj = JSONUtil.parseObj(value);
|
||||
Coupon coupon = JSONUtil.toBean(promotionsObj, Coupon.class);
|
||||
if (key.contains(PromotionTypeEnum.COUPON.name()) && coupon.getStoreId().equals(storeCart.getKey())) {
|
||||
cartVO.getCanReceiveCoupon().add(new CouponVO(coupon));
|
||||
}
|
||||
}));
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -137,7 +137,7 @@ public class CouponActivityServiceImpl extends AbstractPromotionsServiceImpl<Cou
|
||||
* 更新优惠券活动商品信息
|
||||
*
|
||||
* @param couponActivity 优惠券活动实体
|
||||
* @return
|
||||
* @return 是否更新成功
|
||||
*/
|
||||
@Override
|
||||
public boolean updatePromotionsGoods(CouponActivity couponActivity) {
|
||||
|
||||
@@ -107,7 +107,7 @@ public class FullDiscountServiceImpl extends AbstractPromotionsServiceImpl<FullD
|
||||
* 更新促销商品信息
|
||||
*
|
||||
* @param promotions 促销实体
|
||||
* @return
|
||||
* @return 是否更新成功
|
||||
*/
|
||||
@Override
|
||||
public boolean updatePromotionsGoods(FullDiscount promotions) {
|
||||
|
||||
@@ -204,7 +204,7 @@ public class PintuanServiceImpl extends AbstractPromotionsServiceImpl<PintuanMap
|
||||
* 更新促销商品信息
|
||||
*
|
||||
* @param promotions 促销实体
|
||||
* @return
|
||||
* @return 是否更新成功
|
||||
*/
|
||||
@Override
|
||||
public boolean updatePromotionsGoods(Pintuan promotions) {
|
||||
|
||||
@@ -204,7 +204,7 @@ public class PointsGoodsServiceImpl extends AbstractPromotionsServiceImpl<Points
|
||||
* 更新促销商品信息
|
||||
*
|
||||
* @param promotions 促销实体
|
||||
* @return
|
||||
* @return 是否更新成功
|
||||
*/
|
||||
@Override
|
||||
public boolean updatePromotionsGoods(PointsGoods promotions) {
|
||||
|
||||
Reference in New Issue
Block a user