@Service(value="userService") public class UserServiceImpl extends Object implements UserService
Constructor and Description |
---|
UserServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
delete(Integer id)
根据主键删除
|
int |
deleteBatch(Integer[] ids)
根据主键批量删除
|
List<UserEntity> |
queryList(Map<String,Object> map)
分页查询
|
UserEntity |
queryObject(Integer id)
根据主键查询实体
|
int |
queryTotal(Map<String,Object> map)
分页统计总数
|
int |
save(UserEntity user)
保存实体
|
int |
update(UserEntity user)
根据主键更新实体
|
public UserEntity queryObject(Integer id)
UserService
queryObject
in interface UserService
id
- 主键public List<UserEntity> queryList(Map<String,Object> map)
UserService
queryList
in interface UserService
map
- 参数public int queryTotal(Map<String,Object> map)
UserService
queryTotal
in interface UserService
map
- 参数public int save(UserEntity user)
UserService
save
in interface UserService
user
- 实体public int update(UserEntity user)
UserService
update
in interface UserService
user
- 实体public int delete(Integer id)
UserService
delete
in interface UserService
public int deleteBatch(Integer[] ids)
UserService
deleteBatch
in interface UserService
Copyright © 2021. All rights reserved.