Commit a1b9c8c0 authored by 麻笑宇's avatar 麻笑宇

施工单位施工总量排名TOP10下钻列表

代码修改
parent 228a98ff
...@@ -130,10 +130,11 @@ ...@@ -130,10 +130,11 @@
</select> </select>
<select id="getNormalPage" resultType="java.util.Map"> <select id="getNormalPage" resultType="java.util.Map">
SELECT SELECT
tbei.use_unit_code AS useNnitCode tbei.use_unit_code AS useUnitCode
FROM FROM
tz_base_enterprise_info tbei tz_base_enterprise_info tbei
INNER JOIN tz_cylinder_offloading co ON tbei.app_id = co.app_id LEFT JOIN tz_cylinder_offloading co ON tbei.app_id = co.app_id
LEFT JOIN tz_cylinder_filling_record cfr ON tbei.app_id = cfr.app_id
WHERE WHERE
tbei.unit_type LIKE'%充装单位%' tbei.unit_type LIKE'%充装单位%'
<if test="dpFilterParamForDetailDto.timeSearchOne != null"> <if test="dpFilterParamForDetailDto.timeSearchOne != null">
...@@ -148,10 +149,10 @@ ...@@ -148,10 +149,10 @@
AND tbei.supervise_org_code like concat(#{dpFilterParamForDetailDto.orgCode},'%') AND tbei.supervise_org_code like concat(#{dpFilterParamForDetailDto.orgCode},'%')
</if> </if>
<if test="dpFilterParamForDetailDto.isDock == 0"> <if test="dpFilterParamForDetailDto.isDock == 0">
AND ( fillingCount is null and offloadingVolume is null ) AND ( filling_quantity is null and offloading_volume is null )
</if> </if>
<if test="dpFilterParamForDetailDto.isDock == 1"> <if test="dpFilterParamForDetailDto.isDock == 1">
AND ( fillingCount is not null OR offloadingVolume is not null ) AND ( filling_quantity is not null OR offloading_volume is not null )
</if> </if>
<if test="dpFilterParamForDetailDto.companyName != null and dpFilterParamForDetailDto.companyName != '' "> <if test="dpFilterParamForDetailDto.companyName != null and dpFilterParamForDetailDto.companyName != '' ">
AND tbei.use_unit LIKE concat ( '%', #{dpFilterParamForDetailDto.companyName}, '%' ) AND tbei.use_unit LIKE concat ( '%', #{dpFilterParamForDetailDto.companyName}, '%' )
......
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