package com.ycl.service.equipment.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; 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.ycl.entity.equipment.Loudspeaker; import com.ycl.mapper.equipment.LoudspeakerMapper; import com.ycl.service.equipment.ILoudspeakerService; import com.ycl.vo.equipment.HandheldTerminalVo; import org.springframework.stereotype.Service; /** *

* 音柱管理 服务实现类 *

* * @author zhanghua * @since 2022-10-14 */ @Service public class LoudspeakerServiceImpl extends ServiceImpl implements ILoudspeakerService { @Override public IPage search(Integer pageSize, Integer currentPage, Short state) { Page page = new Page<>(currentPage, pageSize); LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper() .eq(state != null, Loudspeaker::getState, state) .orderByDesc(Loudspeaker::getId); return baseMapper.selectPage(page, queryWrapper); } }