| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.FileDirPath; |
| | |
| | | List<DocUser> list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list.size()>0,list,"返回数据"); |
| | | } |
| | | |
| | | public boolean checkExists(String userName) { |
| | | QueryWrapper<DocUser> query = Wrappers.query(); |
| | | query.eq("name",userName).last(" limit 1"); |
| | | DocUser docUser = mapper.selectOne(query); |
| | | return docUser != null; |
| | | } |
| | | } |