Commit d74cb7a1 authored by tianbo's avatar tianbo

fix(jg): 优化大屏安全追溯统计

- 明确指定 SafetyProblemTracing 查询返回的具体字段 - 将 is_delete 的布尔值比较改为字符串比较以匹配数据库存储格式
parent 9003aef3
...@@ -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}, '%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment