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
d74cb7a1
Commit
d74cb7a1
authored
Dec 16, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg): 优化大屏安全追溯统计
- 明确指定 SafetyProblemTracing 查询返回的具体字段 - 将 is_delete 的布尔值比较改为字符串比较以匹配数据库存储格式
parent
9003aef3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
SafetyProblemTracingMapper.xml
.../src/main/resources/mapper/SafetyProblemTracingMapper.xml
+11
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/SafetyProblemTracingMapper.xml
View file @
d74cb7a1
...
@@ -6,7 +6,16 @@
...
@@ -6,7 +6,16 @@
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.SafetyProblemTracingDto"
>
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.SafetyProblemTracingDto"
>
SELECT
SELECT
spt.*,
spt.sequence_nbr,
spt.problem_type,
spt.problem_desc,
spt.source_type,
spt.problem_time,
spt.principal_unit,
spt.principal_unit_type,
spt.governing_body,
spt.region_name,
spt.problem_status,
CASE
CASE
WHEN spt.problem_status_code = '0' THEN '红'
WHEN spt.problem_status_code = '0' THEN '红'
ELSE '绿'
ELSE '绿'
...
@@ -17,7 +26,7 @@
...
@@ -17,7 +26,7 @@
ON cdd.type = 'ISSUE_TYPE'
ON cdd.type = 'ISSUE_TYPE'
AND cdd.code = spt.problem_type_code
AND cdd.code = spt.problem_type_code
<where>
<where>
spt.is_delete =
FALSE
spt.is_delete =
'0'
<if
test=
"problemModel.problemNum != null and problemModel.problemNum != ''"
>
<if
test=
"problemModel.problemNum != null and problemModel.problemNum != ''"
>
AND spt.problem_num LIKE CONCAT('%', #{problemModel.problemNum}, '%')
AND spt.problem_num LIKE CONCAT('%', #{problemModel.problemNum}, '%')
...
...
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