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
248629d5
Commit
248629d5
authored
Jul 06, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.拦截器多个sql key被清空问题
2.删除多余bizOrgCode ,原因拼接有拦截器实现
parent
f10a0b9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+0
-3
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+3
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
248629d5
...
...
@@ -937,9 +937,6 @@ LEFT JOIN (
AND ( usr.biz_org_type = 'COMPANY' OR usr.biz_org_type = 'DEPARTMENT')
</otherwise>
</choose>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND usr.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
order by usr.rec_date
</where>
</select>
...
...
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 @
248629d5
...
...
@@ -1739,9 +1739,10 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
public
List
<
OrgMenuDto
>
companyTreeByUserAndType
(
ReginParams
reginParams
,
String
type
)
{
String
authKey
=
PermissionInterceptorContext
.
getDataAuthRule
();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
PermissionInterceptorContext
.
clean
();
if
(
StringUtils
.
isNotEmpty
(
type
)
&&
type
.
equals
(
"COMPANY"
)){
//查询当前登录人所属单位/部门
OrgUsr
orgUsr
=
orgUsrMapper
.
selectById
(
reginParams
.
getPersonIdentity
().
getCompanyId
());
...
...
@@ -1754,6 +1755,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
}
}
PermissionInterceptorContext
.
setDataAuthRule
(
authKey
);
param
.
put
(
"bizOrgCode"
,
bizOrgCode
);
param
.
put
(
"type"
,
type
);
List
<
OrgUsr
>
list
=
orgUsrMapper
.
companyTreeByUserAndType
(
param
);
...
...
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