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
12f3ae08
Commit
12f3ae08
authored
Apr 02, 2026
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(safety-problem): 修复安全问题追溯查询权限控制
- 防止越权查询其他组织的安全问题数据 - 当治理机构组织代码不以当前公司组织代码开头时返回空结果
parent
505579ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
SafetyProblemTracingController.java
...ule/jg/biz/controller/SafetyProblemTracingController.java
+6
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/SafetyProblemTracingController.java
View file @
12f3ae08
...
@@ -12,6 +12,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -12,6 +12,7 @@ import io.swagger.annotations.ApiOperation;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -110,7 +111,11 @@ public class SafetyProblemTracingController extends BaseController {
...
@@ -110,7 +111,11 @@ public class SafetyProblemTracingController extends BaseController {
Page
<
SafetyProblemTracingDto
>
page
=
new
Page
<>();
Page
<
SafetyProblemTracingDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
problemModel
.
setGoverningBodyOrgCode
(
loginParams
.
getCompany
().
getOrgCode
());
if
(!
ValidationUtil
.
isEmpty
(
problemModel
.
getGoverningBodyOrgCode
()))
{
if
(!
problemModel
.
getGoverningBodyOrgCode
().
startsWith
(
loginParams
.
getCompany
().
getOrgCode
()))
{
return
ResponseHelper
.
buildResponse
(
new
Page
<>());
}
}
return
ResponseHelper
.
buildResponse
(
safetyProblemTracingServiceImpl
.
queryForSafetyProblemTracingPage
(
page
,
problemModel
));
return
ResponseHelper
.
buildResponse
(
safetyProblemTracingServiceImpl
.
queryForSafetyProblemTracingPage
(
page
,
problemModel
));
}
}
...
...
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