This commit is contained in:
2024-01-26 10:34:41 +08:00
parent 32665e44db
commit 49a97737d5
2 changed files with 5 additions and 1 deletions

View File

@@ -116,7 +116,7 @@
<if test="query.brandId!=null and query.brandId!=''">
and brandId =#{query.brandId}
</if>
<if test="query.categoryId!=null and query.categoryId!=''">
<if test="query.categoryId!=null and query.categoryId!='' and query.categoryId!=0 ">
and categoryId=#{query.categoryId}
</if>
<if test="query.name!=null and query.name!=''">

View File

@@ -247,6 +247,10 @@ public class LpkGoodsService extends MybatisBaseService<LpkGoodsMapper, LpkGoods
ResultBean rb=new ResultBean().fail();
GoodsTypeVo vo=new GoodsTypeVo();
List<GoodsTypeVo> list=baseMapper.getType();
GoodsTypeVo vo1=new GoodsTypeVo();
vo1.setName("全部分类");
vo1.setId("0");
list.add(0,vo1);
vo.setTypeVos(list);
List<BrandVo> list1= IPmsBrandService.getList().getData();
vo.setBrandVos(list1);