“mitao”
2026-01-05 f07aabaf30a9a73f0da21c6b7ed31577d1f6f93f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.ruoyi.system.service.impl;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.mapper.TPhysicalGoodsMapper;
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;
 
/**
 * <p>
 * 实物商品 服务实现类
 * </p>
 *
 * @author xiaochen
 * @since 2025-12-08
 */
@Service
public class TPhysicalGoodsServiceImpl extends ServiceImpl<TPhysicalGoodsMapper, TPhysicalGoods> implements TPhysicalGoodsService {
    @Override
    public IPage<TPhysicalGoods> getPageList(AppletPhysicalGoodsQuery query) {
        return this.lambdaQuery().like(StringUtils.isNotBlank(query.getName()),TPhysicalGoods::getName, query.getName())
                .page(new Page<>(query.getPageNum(), query.getPageSize()));
    }
}