这是本文档旧的修订版!
框架 | 版本 |
---|---|
springmvc | 4.0.5.RELEASE |
mybatis | 3.2.7 |
spring | 4.0.5.RELEASE |
freemarker | 2.3.20 |
maven | 3.0 |
package com.gxx.record.base.dao; import org.springframework.stereotype.Repository; import com.gxx.record.base.vo.User; @Repository public interface UserMapper { int deleteByPrimaryKey(Integer id); int insert(User record); int insertSelective(User record); User selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(User record); int updateByPrimaryKey(User record); /** * 根据姓名查用户 * @param name * @return */ User getUserByName(String name); }