发表于: 2020-07-29 23:39:59
3 1324
今日作为:把Service层写了改改了删。。。。。。。
import java.util.List;
public class RoleServiceImpl implements RoleService {
@Autowired
private RoleDao roleDao;
@Override
public List<Role> findRoleList(){
List<Role> roleList = roleDao.selectRoleList();
return roleList;
}
}
package com.jnshu;
import java.util.List;
@Service("userService")
public class UserServiceImpl implements UserService{
@Autowired
private UserDao userDao;
public List<User> findUserList(String keywords, Integer userListRoleId) {
List<User> userList = this.userDao.selectUserList((keywords, userListRoleId));
return userList;
}
@Override
public User findUser(String loginName, String password) {
User user = this.userDao.findUser(loginName, password);
return user;
}
@Override
public User getUserByUserId(Integer userId) {
User user this.userDao.getUserByUserId(userId);
return this.userDao.getUserByUserId(userId);
}
@Override
public User getUserLoginName(String loginName) {
return this.userDao.getUserByloginName(loginName);
}
@Override
public int addUser(User user) {
return userDao.addUser(user);
}
@Override
public int editUser(User user) {
return this.userDao.updateUser(user);
}
@Override
public int delUser(Integer userId) {
return this.userDao.delUser(userId);
}
@Override
public int setUserStaus(User user) {
return this.userDao.setUserStatus(user);
}
}
今日疑惑:暂无
明天计划:把Control层写完
评论