首页>代码>Myeclipse搭建Spring+Spring Mvc+Mybatis+Maven+数据库Mysql项目demo,实现ajax分页>/ssm Maven Webapp/src/main/java/com/java/service/iml/UserServiceiml.java
package com.java.service.iml; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.java.dao.UsermMapper; import com.java.model.Userm; import com.java.service.UserService; @Service("userService") public class UserServiceiml implements UserService { @Resource private UsermMapper Userdao; public Userm selectByPrimaryKey(int id) { // TODO Auto-generated method stub return Userdao.selectByPrimaryKey(id); } public Userm selectByname(String username) { // TODO Auto-generated method stub return Userdao.selectByname(username); } @Override public int insertUserm(Userm userm) { // TODO Auto-generated method stub return Userdao.insert(userm); } @Override public Userm queryUser(Userm record) { // TODO Auto-generated method stub return Userdao.queryUser(record); } @Override public int updateUser(Userm userm) { // TODO Auto-generated method stub return Userdao.updateByPrimaryKey(userm); } @Override public int delUser( int userid) { // TODO Auto-generated method stub return Userdao.deleteByPrimaryKey(userid); } @Override public List<Userm> selectUseifo(Map<String, Object> map) { // TODO Auto-generated method stub return Userdao.selectUseifo(map); } @Override public int selectCount(Map<String, Object> map) { // TODO Auto-generated method stub return Userdao.selectCount(map); } }
最近下载更多