|
@@ -39,10 +39,19 @@ public class LiftBrandServiceImpl extends ServiceImpl<LiftBrandMapper, LiftBrand
|
|
|
List<LiftBrandEntity> selectList = null;
|
|
|
List<LiftBrandEntity> hotList = null;
|
|
|
if (StringUtils.isNotBlank(lt.getSercheKey())) {
|
|
|
- selectList = liftBrandMapper.selectList(new QueryWrapper<LiftBrandEntity>().like("name", lt.getSercheKey()));
|
|
|
- hotList = liftBrandMapper.selectList(new QueryWrapper<LiftBrandEntity>().like("name", lt.getSercheKey()).eq("hot_flag", 1));
|
|
|
+ selectList = liftBrandMapper.selectList(new QueryWrapper<LiftBrandEntity>()
|
|
|
+ .like("name", lt.getSercheKey())
|
|
|
+ .eq("statuz",1)
|
|
|
+ );
|
|
|
+ hotList = liftBrandMapper.selectList(new QueryWrapper<LiftBrandEntity>()
|
|
|
+ .like("name", lt.getSercheKey())
|
|
|
+ .eq("hot_flag", 1)
|
|
|
+ .eq("statuz",1)
|
|
|
+ );
|
|
|
} else {
|
|
|
- selectList = liftBrandMapper.selectList(null);
|
|
|
+ selectList = liftBrandMapper.selectList(new QueryWrapper<LiftBrandEntity>()
|
|
|
+ .eq("statuz",1)
|
|
|
+ );
|
|
|
hotList = liftBrandMapper.getHotList();
|
|
|
}
|
|
|
List<LiftBrandVo> result = new ArrayList<>();
|