Commit 011b5b67 authored by 麻笑宇's avatar 麻笑宇

1.大屏业务/dp/cylinder/stationRate接口优化

parent 65abfe99
...@@ -65,13 +65,14 @@ ...@@ -65,13 +65,14 @@
E.supervise_org_code LIKE concat ( #{orgCode}, '%' ) E.supervise_org_code LIKE concat ( #{orgCode}, '%' )
</select> </select>
<select id="countEnterpriseUsed" resultType="java.lang.Long"> <select id="countEnterpriseUsed" resultType="java.lang.Long">
SELECT COUNT SELECT COUNT(1)
( DISTINCT ( E.app_id ) ) FROM tz_base_enterprise_info E
FROM WHERE E.unit_type LIKE '%充装单位%' AND E.supervise_org_code LIKE concat ( #{orgCode}, '%' )
tz_cylinder_filling_record AND EXISTS (
T INNER JOIN tz_base_enterprise_info E ON T.app_id = E.app_id and E.unit_type like '%充装单位%' SELECT 1
WHERE FROM tz_cylinder_filling_record T
E.supervise_org_code LIKE concat ( #{orgCode}, '%' ) WHERE T.app_id = E.app_id
)
</select> </select>
<select id="getStationRateSubPage" <select id="getStationRateSubPage"
resultType="com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto"> resultType="com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto">
......
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