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
6307da3b
Commit
6307da3b
authored
Jan 25, 2024
by
王果
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加根据公司id获取人员接口
parent
835a9013
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
PrivilegeFeginService.java
...s/boot/module/jg/flc/api/fegin/PrivilegeFeginService.java
+6
-0
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+11
-1
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+2
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+9
-0
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 @
6307da3b
...
...
@@ -39,4 +39,10 @@ public interface PrivilegeFeginService {
FeignClientResult
mobileVerifyCode
(
@RequestBody
VerifyCodeAuthModel
model
)
throws
InnerInvokException
;
@RequestMapping
(
value
=
"/privilege/v1/agencyuser/list/company/{companyId}"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
AgencyUserModel
>
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 @
6307da3b
...
...
@@ -192,5 +192,15 @@ public class CommonController extends BaseController {
Object
result
=
commonService
.
invokeBusinessProcess
(
submitType
,
map
,
reginParams
);
return
ResponseHelper
.
buildResponse
(
result
);
}
/**
* 根据公司id获取公司下人员
*
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/getCompanyUser"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据公司id获取公司下人员"
,
notes
=
"根据公司id获取公司下人员"
)
public
ResponseModel
<
Object
>
getCompanyUser
(
@RequestParam
(
value
=
"companyId"
)
Long
companyId
)
{
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/ICommonService.java
View file @
6307da3b
...
...
@@ -43,4 +43,6 @@ public interface ICommonService {
List
<
Map
<
String
,
Object
>>
superviseBusinessCategory
(
String
type
);
Object
invokeBusinessProcess
(
String
submitType
,
Map
<
String
,
Object
>
obj
,
ReginParams
reginParams
);
Object
getCompanyUser
(
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/service/impl/CommonServiceImpl.java
View file @
6307da3b
...
...
@@ -1031,4 +1031,12 @@ public class CommonServiceImpl implements ICommonService {
});
return
workflowResultDtoList
;
}
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