| | |
| | | import com.ruoyi.system.model.TPhysicalGoods; |
| | | import com.ruoyi.system.query.AppletPhysicalGoodsQuery; |
| | | import com.ruoyi.system.service.TPhysicalGoodsService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | public class TPhysicalGoodsServiceImpl extends ServiceImpl<TPhysicalGoodsMapper, TPhysicalGoods> implements TPhysicalGoodsService { |
| | | @Override |
| | | public IPage<TPhysicalGoods> getPageList(AppletPhysicalGoodsQuery query) { |
| | | return this.lambdaQuery().like(TPhysicalGoods::getName, query.getName()) |
| | | return this.lambdaQuery().like(StringUtils.isNotBlank(query.getName()),TPhysicalGoods::getName, query.getName()) |
| | | .page(new Page<>(query.getPageNum(), query.getPageSize())); |
| | | } |
| | | } |