单位暂态算法调整

This commit is contained in:
wr
2024-02-23 15:21:48 +08:00
parent dcdc23feea
commit ea6b951b11
9 changed files with 62 additions and 30 deletions

View File

@@ -45,7 +45,7 @@
TRUNCATE( c.average_over_day, 2)as averageOverDay
FROM
r_stat_harmonic_q c
RIGHT JOIN r_stat_org_q AS rso ON rso.org_no = c.org_no
RIGHT JOIN r_stat_org_q AS rso ON rso.org_no = c.org_no and c.measurement_type_class = rso.measurement_type_class
<where>
c.data_Type=#{dataType} and rso.data_Type=#{dataType}
<if test="param != null and param.ids != null and param.ids.size > 0">

View File

@@ -45,7 +45,7 @@
c.average_over_day
FROM
r_stat_harmonic_y c
RIGHT JOIN r_stat_org_y AS rso ON rso.org_no = c.org_no
RIGHT JOIN r_stat_org_y AS rso ON rso.org_no = c.org_no and c.measurement_type_class = rso.measurement_type_class
<where>
c.data_Type=#{dataType} and rso.data_Type=#{dataType}
<if test="param != null and param.ids != null and param.ids.size > 0">