mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-03-04 03:13:43 +08:00
feat: 解决商品先上架在下架后,商品无法真正下架的问题
This commit is contained in:
parent
00a12efe2a
commit
6bf45be8d0
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ public class ShopMaterialServiceImpl extends SkyeyeBusinessServiceImpl<ShopMater
|
|||
MPJLambdaWrapper<ShopMaterial> wrapper = new MPJLambdaWrapper<ShopMaterial>()
|
||||
.innerJoin(Material.class, Material::getId, ShopMaterial::getMaterialId)
|
||||
.innerJoin(Brand.class, Brand::getId, Material::getBrandId)
|
||||
.eq(Brand::getEnabled, EnableEnum.ENABLE_USING.getKey());
|
||||
.eq(Brand::getEnabled, EnableEnum.ENABLE_USING.getKey())
|
||||
.in(Material::getShelvesState, Arrays.asList(MaterialShelvesState.ON_SHELVE.getKey(), MaterialShelvesState.PART_ON_SHELVE.getKey()));
|
||||
List<ShopMaterial> shopMaterialList = skyeyeBaseMapper.selectJoinList(ShopMaterial.class, wrapper);
|
||||
// 根据id批量查询详细的商品信息
|
||||
List<String> idList = shopMaterialList.stream().map(ShopMaterial::getId).collect(Collectors.toList());
|
||||
|
|
Loading…
Reference in a new issue