| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.ss.util.CellRangeAddress; |
| | | import org.apache.poi.ss.util.CellRangeAddressList; |
| | |
| | | * @since 2020-02-23 15:18:56 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> implements GoodsSkuService { |
| | | |
| | | /** |
| | |
| | | if (goodsIndex == null) { |
| | | goodsIndex = goodsIndexService.getResetEsGoodsIndex(goodsSku, goodsVO.getGoodsParamsDTOList()); |
| | | } |
| | | |
| | | log.info("获取到商品信息----------------->{}",JSONUtil.toJsonStr(goodsIndex)); |
| | | //商品规格 |
| | | GoodsSkuVO goodsSkuDetail = this.getGoodsSkuVO(goodsSku); |
| | | |
| | | Map<String, Object> promotionMap = goodsIndex.getPromotionMap(); |
| | | log.info("获取促销活动信息----------------->{}",JSONUtil.toJsonStr(promotionMap)); |
| | | |
| | | AuthUser currentUser = UserContext.getCurrentUser(); |
| | | //设置当前商品的促销价格 |
| | | if (promotionMap != null && !promotionMap.isEmpty()) { |