Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
13515684
Commit
13515684
authored
Jan 25, 2024
by
王果
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加根据公司id获取人员接口
parent
91beaed6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
PrivilegeFeginService.java
...s/boot/module/jg/flc/api/fegin/PrivilegeFeginService.java
+1
-1
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+7
-3
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+0
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/flc/api/fegin/PrivilegeFeginService.java
View file @
13515684
...
...
@@ -41,7 +41,7 @@ public interface PrivilegeFeginService {
@RequestMapping
(
value
=
"/privilege/v1/agencyuser/list/company/{companyId}"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
AgencyUserModel
>
getCompanyUser
(
@PathVariable
(
value
=
"companyId"
)
Long
companyId
);
FeignClientResult
getCompanyUser
(
@PathVariable
(
value
=
"companyId"
)
Long
companyId
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/CommonController.java
View file @
13515684
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
...
@@ -198,9 +199,12 @@ public class CommonController extends BaseController {
*
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/getCompanyUser"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据公司id获取公司下人员"
,
notes
=
"根据公司id获取公司下人员"
)
public
ResponseModel
<
Object
>
getCompanyUser
(
@RequestParam
(
value
=
"companyId"
)
Long
companyId
)
{
@GetMapping
(
value
=
"/getCompanyUser"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"根据公司id获取公司下人员"
,
notes
=
"根据公司id获取公司下人员"
)
public
ResponseModel
<
Object
>
getCompanyUser
(
@RequestParam
(
value
=
"companyId"
,
required
=
false
)
Long
companyId
)
{
if
(
ObjectUtils
.
isEmpty
(
companyId
)){
return
null
;
}
Object
result
=
commonService
.
getCompanyUser
(
companyId
);
return
ResponseHelper
.
buildResponse
(
result
);
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
13515684
...
...
@@ -1034,9 +1034,6 @@ public class CommonServiceImpl implements ICommonService {
public
List
<
LinkedHashMap
>
getCompanyUser
(
Long
companyId
)
{
FeignClientResult
result
=
privilegeFeginService
.
getCompanyUser
(
companyId
);
List
<
LinkedHashMap
>
list
=
(
List
<
LinkedHashMap
>)
result
.
getResult
();
for
(
LinkedHashMap
linkedHashMap
:
list
)
{
linkedHashMap
.
put
(
"sequenceNbr"
,
linkedHashMap
.
get
(
"regionCode"
));
}
return
list
;
}
}
\ No newline at end of file
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