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
0ce63a97
Commit
0ce63a97
authored
Dec 12, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改责任人
parent
a5a61190
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
PersonIdentifyAspect.java
...odule/common/api/core/framework/PersonIdentifyAspect.java
+1
-0
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+19
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+5
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/core/framework/PersonIdentifyAspect.java
View file @
0ce63a97
...
...
@@ -47,6 +47,7 @@ public class PersonIdentifyAspect {
personIdentity
.
setPersonSeq
(
userDto
.
getPersonSeq
());
personIdentity
.
setPersonName
(
userDto
.
getPersonName
());
personIdentity
.
setIdentityType
(
userDto
.
getIdentityType
());
personIdentity
.
setCompanyBizOrgCode
(
userDto
.
getCompanyBizOrgCode
());
reginParam
.
setPersonIdentity
(
personIdentity
);
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgPersonController.java
View file @
0ce63a97
...
...
@@ -245,6 +245,25 @@ public class OrgPersonController extends BaseController {
}
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/listAllByCurrentUserALL"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询(表单用)"
,
notes
=
"列表分页查询(表单用)"
)
public
ResponseModel
<
Object
>
listAllByCurrentUserALL
()
{
Map
<
String
,
Object
>
req
=
new
HashMap
<>();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
req
.
put
(
"bizOrgCode"
,
bizOrgCode
);
// if(redisUtils.get("userList:" + bizOrgCode) != null){
// return ResponseHelper.buildResponse(redisUtils.get("userList:" + bizOrgCode));
// }
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
listAllByCurrentUser
(
null
,
null
,
req
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getUserByCode/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
0ce63a97
...
...
@@ -2798,6 +2798,11 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
userDto
.
setBizOrgCode
(
bizOrg
.
getBizOrgCode
());
userDto
.
setCompanyId
(
String
.
valueOf
(
bizOrg
.
getSequenceNbr
()));
userDto
.
setCompanyName
(
bizOrg
.
getBizOrgName
());
if
(
bizOrg
.
getBizOrgType
().
equals
(
"COMPANY"
)){
userDto
.
setCompanyBizOrgCode
(
bizOrg
.
getBizOrgCode
());
}
else
{
userDto
.
setCompanyBizOrgCode
(
getCompany
(
bizOrg
));
}
}
else
{
throw
new
RuntimeException
(
"人员所在公司不存在"
);
}
...
...
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