Commit 2055ee50 authored by tianbo's avatar tianbo

fix(statistics): 更新统计查询中的时间字段条件

- 将统计查询中的 rec_date 条件更改为 audit_pass_date - 确保统计数据基于审核通过时间进行筛选
parent ee9d436d
......@@ -121,7 +121,7 @@
INNER JOIN tzs_jg_use_registration_eq te ON te.equip_transfer_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date >= #{startTime}
pc.company_code = #{cityCode} and ur.audit_pass_date >= #{startTime}
GROUP BY
jri.equ_category
</select>
......@@ -138,7 +138,7 @@
INNER JOIN tzs_jg_change_registration_reform_eq te ON te.equip_transfer_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date &gt;= #{startTime}
pc.company_code = #{cityCode} and ur.audit_pass_date &gt;= #{startTime}
GROUP BY
jri.equ_category
......@@ -156,7 +156,7 @@
INNER JOIN tzs_jg_change_registration_transfer_eq te ON te.equip_transfer_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date &gt;= #{startTime}
pc.company_code = #{cityCode} and ur.audit_pass_date &gt;= #{startTime}
GROUP BY
jri.equ_category
</select>
......@@ -173,7 +173,7 @@
INNER JOIN tzs_jg_change_registration_unit_eq te ON te.unit_change_registration_id = ur.sequence_nbr
INNER JOIN idx_biz_jg_register_info jri ON te.equ_id = jri.record
WHERE
pc.company_code = #{cityCode} and ur.rec_date &gt;= #{startTime}
pc.company_code = #{cityCode} and ur.audit_pass_date &gt;= #{startTime}
GROUP BY
jri.equ_category
......
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