|
@@ -252,7 +252,6 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements SkuSe
|
|
|
public Page<ReplacePackagingMaterialVo> getReplacePackagingMaterialPage(GetReplaceMaterialListDto dto) {
|
|
|
|
|
|
IWrapper<Object> wrapper = IWrapper.getWrapper()
|
|
|
- .eq("sslt", SkuSpecLink::getType, 1)
|
|
|
.eq("s", Sku::getCode, dto.getSkuCode())
|
|
|
.like("ss", SkuSpec::getCode, dto.getSkuSpecCode())
|
|
|
.eq("bs", BomSpec::getCode, dto.getBomSpecCode())
|
|
@@ -270,8 +269,7 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements SkuSe
|
|
|
List<Long> skuSpecIdList = records.stream().map(ReplacePackagingMaterialVo::getSkuSpecId).collect(Collectors.toList());
|
|
|
|
|
|
List<SkuSpecLink> skuSpecLinkList = skuSpecLinkService.list(q -> q
|
|
|
- .in(SkuSpecLink::getSkuSpecId, skuSpecIdList)
|
|
|
- .eq(SkuSpecLink::getType, 1));
|
|
|
+ .in(SkuSpecLink::getSkuSpecId, skuSpecIdList));
|
|
|
|
|
|
Map<Long, List<SkuSpecLink>> map = skuSpecLinkList.stream().collect(Collectors.groupingBy(SkuSpecLink::getSkuSpecId));
|
|
|
|