“mitao”
2026-02-03 6b56672a7e02a0bf340021f00a4898bee9b13834
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TPhysicalGoodsServiceImpl.java
@@ -7,6 +7,7 @@
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;
/**
@@ -21,7 +22,7 @@
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()));
    }
}