| | |
| | | import com.ruoyi.goods.controller.management.dto.GoodsBrandDTO; |
| | | import com.ruoyi.goods.controller.management.dto.GoodsBrandQuery; |
| | | import com.ruoyi.goods.controller.management.vo.GoodsBrandVO; |
| | | import com.ruoyi.system.api.domain.GoodsBrand; |
| | | import com.ruoyi.goods.mapper.GoodsBrandMapper; |
| | | import com.ruoyi.goods.service.IGoodsBrandService; |
| | | import com.ruoyi.system.api.domain.GoodsBrand; |
| | | import java.util.List; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | Page<GoodsBrand> page = this.lambdaQuery() |
| | | .like(StringUtils.isNotEmpty(query.getBrandName()), GoodsBrand::getBrandName, |
| | | query.getBrandName()) |
| | | .orderByDesc(GoodsBrand::getCreateTime) |
| | | .page(new Page<>(query.getPageCurr(), query.getPageSize())); |
| | | if (StringUtils.isEmpty(page.getRecords())) { |
| | | return PageDTO.empty(page.getTotal(), page.getPages()); |