Commit de7c8636 authored by tianbo's avatar tianbo

fix:大屏充装单位统计查询调整

parent e702f4b7
...@@ -622,8 +622,9 @@ ...@@ -622,8 +622,9 @@
tz_base_enterprise_info i tz_base_enterprise_info i
WHERE WHERE
i.app_id = f.app_id i.app_id = f.app_id
AND f.filling_endtime >= concat(#{startTime}, ' 00:00:00') AND f.filling_endtime >= concat(#{startTime}, ' 00:00:00')
AND i.org_code like concat(#{orgCode}, '%') AND i.org_code like concat(#{orgCode}, '%')
AND i.unit_type like '%充装单位%'
GROUP BY GROUP BY
filling_time filling_time
ORDER BY ORDER BY
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
( T.filling_quantity ) ( T.filling_quantity )
FROM FROM
tz_cylinder_filling_record T tz_cylinder_filling_record T
INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id and E.unit_type like '%充装单位%'
WHERE WHERE
E.supervise_org_code LIKE concat ( #{orgCode}, '%' ) E.supervise_org_code LIKE concat ( #{orgCode}, '%' )
</select> </select>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
( T.offloading_volume ) ( T.offloading_volume )
FROM FROM
tz_cylinder_offloading T tz_cylinder_offloading T
INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id and E.unit_type like '%充装单位%'
WHERE WHERE
E.supervise_org_code LIKE concat ( #{orgCode}, '%' ) E.supervise_org_code LIKE concat ( #{orgCode}, '%' )
</select> </select>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
( DISTINCT ( E.app_id ) ) ( DISTINCT ( E.app_id ) )
FROM FROM
tz_cylinder_filling_record tz_cylinder_filling_record
T INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id T INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id and E.unit_type like '%充装单位%'
WHERE WHERE
E.supervise_org_code LIKE concat ( #{orgCode}, '%' ) E.supervise_org_code LIKE concat ( #{orgCode}, '%' )
</select> </select>
......
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