更新了商品管理模块

This commit is contained in:
chen-xin-zhi 2024-12-16 16:56:43 +08:00
parent ef5354abb3
commit d95a82c2a9

View File

@ -62,6 +62,7 @@ public class GoodServiceImpl extends ServiceImpl<GoodMapper, Good> implements Go
public List<Good> getGoodListByTypeName(String typeName) {
QueryWrapper<Good> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("type", typeName);
queryWrapper.eq("isShelves", 1);
List<Good> list = this.list(queryWrapper);
if (CollectionUtils.isEmpty(list)) {
return new ArrayList<>();