Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-springboot-train
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fcant
hls-springboot-train
Commits
12b3c48f
Commit
12b3c48f
authored
Dec 03, 2019
by
Fcant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Code-Updates]:添加注解
parent
b5cfcdc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
UserServiceImpl.java
...n/springboot/springboot/service/impl/UserServiceImpl.java
+39
-0
No files found.
SpringBoot_HLS/src/main/java/org/hand/train/springboot/springboot/service/impl/UserServiceImpl.java
View file @
12b3c48f
...
@@ -22,26 +22,65 @@ public class UserServiceImpl implements UserService {
...
@@ -22,26 +22,65 @@ public class UserServiceImpl implements UserService {
@Autowired
@Autowired
UserMapper
userMapper
;
UserMapper
userMapper
;
/**
* 查询所有用户
*
* @return List<UserInfo>
* @author Fcant
* @date 18:39 2019/12/3
*/
@Override
@Override
public
List
<
UserInfo
>
selectAllUser
()
{
public
List
<
UserInfo
>
selectAllUser
()
{
return
userMapper
.
selectAllUser
();
return
userMapper
.
selectAllUser
();
}
}
/**
* 根据用户ID查询用户信息
*
* @param id
* @return UserInfo
* @author Fcant
* @date 18:40 2019/12/3
*/
@Override
@Override
public
UserInfo
selectUserById
(
int
id
)
{
public
UserInfo
selectUserById
(
int
id
)
{
return
userMapper
.
selectUserById
(
id
);
return
userMapper
.
selectUserById
(
id
);
}
}
/**
* 添加用户
*
* @param userInfo
* @return int
* @author Fcant
* @date 18:40 2019/12/3
*/
@Override
@Override
public
int
addUser
(
UserInfo
userInfo
)
{
public
int
addUser
(
UserInfo
userInfo
)
{
return
userMapper
.
addUser
(
userInfo
);
return
userMapper
.
addUser
(
userInfo
);
}
}
/**
* 更新用户信息
*
* @param userInfo
* @return int
* @author Fcant
* @date 18:41 2019/12/3
*/
@Override
@Override
public
int
updateUser
(
UserInfo
userInfo
)
{
public
int
updateUser
(
UserInfo
userInfo
)
{
return
userMapper
.
updateUser
(
userInfo
);
return
userMapper
.
updateUser
(
userInfo
);
}
}
/**
* 删除用户
*
* @param userInfo
* @return int
* @author Fcant
* @date 18:41 2019/12/3
*/
@Override
@Override
public
int
delUser
(
UserInfo
userInfo
)
{
public
int
delUser
(
UserInfo
userInfo
)
{
return
userMapper
.
delUser
(
userInfo
);
return
userMapper
.
delUser
(
userInfo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment