适配优化更新索引促销方式的结算。

This commit is contained in:
paulGao
2021-12-30 09:52:54 +08:00
parent 5a6012530e
commit 6465dc2b73
6 changed files with 10 additions and 8 deletions

View File

@@ -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) {

View File

@@ -137,7 +137,7 @@ public class CouponActivityServiceImpl extends AbstractPromotionsServiceImpl<Cou
* 更新优惠券活动商品信息
*
* @param couponActivity 优惠券活动实体
* @return
* @return 是否更新成功
*/
@Override
public boolean updatePromotionsGoods(CouponActivity couponActivity) {

View File

@@ -107,7 +107,7 @@ public class FullDiscountServiceImpl extends AbstractPromotionsServiceImpl<FullD
* 更新促销商品信息
*
* @param promotions 促销实体
* @return
* @return 是否更新成功
*/
@Override
public boolean updatePromotionsGoods(FullDiscount promotions) {

View File

@@ -204,7 +204,7 @@ public class PintuanServiceImpl extends AbstractPromotionsServiceImpl<PintuanMap
* 更新促销商品信息
*
* @param promotions 促销实体
* @return
* @return 是否更新成功
*/
@Override
public boolean updatePromotionsGoods(Pintuan promotions) {

View File

@@ -204,7 +204,7 @@ public class PointsGoodsServiceImpl extends AbstractPromotionsServiceImpl<Points
* 更新促销商品信息
*
* @param promotions 促销实体
* @return
* @return 是否更新成功
*/
@Override
public boolean updatePromotionsGoods(PointsGoods promotions) {