更新了商品管理模块
This commit is contained in:
parent
ef5354abb3
commit
d95a82c2a9
|
@ -62,6 +62,7 @@ public class GoodServiceImpl extends ServiceImpl<GoodMapper, Good> implements Go
|
||||||
public List<Good> getGoodListByTypeName(String typeName) {
|
public List<Good> getGoodListByTypeName(String typeName) {
|
||||||
QueryWrapper<Good> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<Good> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.eq("type", typeName);
|
queryWrapper.eq("type", typeName);
|
||||||
|
queryWrapper.eq("isShelves", 1);
|
||||||
List<Good> list = this.list(queryWrapper);
|
List<Good> list = this.list(queryWrapper);
|
||||||
if (CollectionUtils.isEmpty(list)) {
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user