|
@@ -1,5 +1,6 @@
|
|
package com.yiqi.admin.controller.core;
|
|
package com.yiqi.admin.controller.core;
|
|
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.yiqi.common.annotation.Log;
|
|
import com.yiqi.common.annotation.Log;
|
|
@@ -182,6 +183,9 @@ public class GoodsInfoController extends BaseController {
|
|
.eq(GoodsSku::getGoodsId, goodsSkuQueryByCommentDTO.getGoodsId())
|
|
.eq(GoodsSku::getGoodsId, goodsSkuQueryByCommentDTO.getGoodsId())
|
|
.eq(GoodsSku::getDelFlag, DeleteStatus.OK.getCode())
|
|
.eq(GoodsSku::getDelFlag, DeleteStatus.OK.getCode())
|
|
.eq(GoodsSku::getStatus, DeleteStatus.OK.getCode())).stream().map(GoodsSku::getId).collect(Collectors.toSet());
|
|
.eq(GoodsSku::getStatus, DeleteStatus.OK.getCode())).stream().map(GoodsSku::getId).collect(Collectors.toSet());
|
|
|
|
+ if (CollUtil.isEmpty(skuIdList)) {
|
|
|
|
+ skuIdList.add(0L);
|
|
|
|
+ }
|
|
Map<Long, List<GoodsSkuSpec>> listMap = goodsSkuSpecService.list(new QueryWrapper<GoodsSkuSpec>().lambda()
|
|
Map<Long, List<GoodsSkuSpec>> listMap = goodsSkuSpecService.list(new QueryWrapper<GoodsSkuSpec>().lambda()
|
|
.in(GoodsSkuSpec::getGoodsSkuId, skuIdList)
|
|
.in(GoodsSkuSpec::getGoodsSkuId, skuIdList)
|
|
.eq(GoodsSkuSpec::getDelFlag, DeleteStatus.OK.getCode())).stream().collect(Collectors.groupingBy(GoodsSkuSpec::getGoodsSkuId));
|
|
.eq(GoodsSkuSpec::getDelFlag, DeleteStatus.OK.getCode())).stream().collect(Collectors.groupingBy(GoodsSkuSpec::getGoodsSkuId));
|