!102 适配优化更新索引促销方式的结算
Merge pull request !102 from OceansDeep/feature/pg
This commit is contained in:
commit
a318eb82c7
@ -1,6 +1,6 @@
|
||||
package cn.lili.controller.promotion;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.lili.common.enums.ResultUtil;
|
||||
import cn.lili.common.security.context.UserContext;
|
||||
import cn.lili.common.vo.PageVO;
|
||||
@ -79,7 +79,7 @@ public class KanjiaGoodsActivityBuyerController {
|
||||
@ApiOperation(value = "获取砍价活动")
|
||||
public ResultMessage<KanjiaActivityVO> getKanJiaActivity(KanjiaActivitySearchParams kanjiaActivitySearchParams) {
|
||||
//如果是非被邀请关系则填写会员ID
|
||||
if (StrUtil.isEmpty(kanjiaActivitySearchParams.getKanjiaActivityId())) {
|
||||
if (CharSequenceUtil.isEmpty(kanjiaActivitySearchParams.getKanjiaActivityId())) {
|
||||
kanjiaActivitySearchParams.setMemberId(UserContext.getCurrentUser().getId());
|
||||
}
|
||||
return ResultUtil.data(kanJiaActivityService.getKanjiaActivityVO(kanjiaActivitySearchParams));
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user