packagecom.tanpu.feo.feojob.service;importcom.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;importcom.tanpu.feo.feojob.dao.DemoMapper;importcom.tanpu.feo.feojob.entity.DemoEntity;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Service;importjava.util.List;/** * created by xd on 2021/5/18 */@ServicepublicclassDemoService{@AutowiredprivateDemoMapperdemoMapper;publicList<DemoEntity>getByName(Stringname){returndemoMapper.selectList(newLambdaQueryWrapper<DemoEntity>().eq(DemoEntity::getName,name));}}