标签:div criteria alt lis sel tween span sql 手动
Example example = new Example(User.class); Example.Criteria criteria = example.createCriteria(); User u = new User(null,"陈乐乐",null); criteria.andEqualTo(u); criteria.andNotBetween("id",1,4); criteria.andBetween("id",13,13); List<User> users = userMapper.selectByExample(example);
criteria有很多方法,单表查询操作基本不需要手动写sql了
标签:div criteria alt lis sel tween span sql 手动
原文地址:http://www.cnblogs.com/loger1995/p/7287350.html