| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.SitesService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | @Override |
| | | public Locks findOne(Locks locks) { |
| | | QueryWrapper<Locks> wrapper = new QueryWrapper<>(locks); |
| | | return locksMapper.selectOne(wrapper); |
| | | return locksMapper.selectOne(wrapper.last(" limit 1")); |
| | | } |
| | | |
| | | @Override |
| | |
| | | QueryWrapper<Locks> wrapper = new QueryWrapper<>(locks); |
| | | return locksMapper.selectCount(wrapper); |
| | | } |
| | | |
| | | |
| | | } |