Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
Details
Activity
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
station
YeeAmosFireAutoSysRoot
Commits
959c7e9b
Commit
959c7e9b
authored
Feb 13, 2020
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加查询公司下所有人信息接口
parent
a361df30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
+22
-7
CommonController.java
...eejoin/amos/fas/business/controller/CommonController.java
+8
-6
IUserDao.java
...om/yeejoin/amos/fas/business/dao/repository/IUserDao.java
+3
-0
CommonService.java
...yeejoin/amos/fas/business/service/impl/CommonService.java
+4
-1
ICommonService.java
...ejoin/amos/fas/business/service/intfc/ICommonService.java
+7
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/CommonController.java
View file @
959c7e9b
...
...
@@ -17,12 +17,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -117,4 +112,11 @@ public class CommonController extends BaseController {
List
<
SUser
>
users
=
commonService
.
getUsers
(
departmentId
);
return
CommonResponseUtil
.
success
(
users
);
}
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取公司下人员列表"
,
notes
=
"获取公司下人员列表"
)
@GetMapping
(
value
=
"/user/list"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
getAllUser
()
{
List
<
SUser
>
users
=
commonService
.
getAllUser
();
return
CommonResponseUtil
.
success
(
users
);
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/repository/IUserDao.java
View file @
959c7e9b
...
...
@@ -11,5 +11,8 @@ public interface IUserDao extends BaseDao<SUser, Long> {
public
List
<
SUser
>
findUserByDeptmentId
(
BigInteger
departmentId
,
byte
isDel
);
SUser
findById
(
Long
id
);
@Query
(
value
=
"select * from s_user u where u.is_delete = 0"
,
nativeQuery
=
true
)
List
<
SUser
>
findAllUser
();
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/CommonService.java
View file @
959c7e9b
...
...
@@ -54,5 +54,8 @@ public class CommonService implements ICommonService {
return
userDao
.
findUserByDeptmentId
(
new
BigInteger
(
departmentId
.
toString
()),
(
byte
)
0
);
}
@Override
public
List
<
SUser
>
getAllUser
()
{
return
userDao
.
findAllUser
();
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/ICommonService.java
View file @
959c7e9b
...
...
@@ -23,4 +23,11 @@ public interface ICommonService {
* @return
*/
List
<
SUser
>
getUsers
(
Long
departmentId
);
/**
* 获取公司下所有用户
*
* @return
*/
List
<
SUser
>
getAllUser
();
}
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