|
@@ -16,15 +16,14 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="ntzlfl" parameterType="String" resultType="map">
|
|
|
- select t2.*, round(t2.mj*0.0015,2) mj_m, round(t2.mj*0.0001,2) mj_gq, round(t2.mj*0.000001,2) mj_qm,t2.dlmc from
|
|
|
- (
|
|
|
- select round((coalesce(sum(mj::numeric), 0)),2) mj ,count(*) gs ,dlmc from (
|
|
|
- select "${areacolumn}" as mj ,dlmc from vector."${sjy}"
|
|
|
+ select t2.mj, round(t2.mj*0.0015,2) mj_m, round(t2.mj*0.0001,2) mj_gq, round(t2.mj*0.000001,2) mj_qm,t2.dlmc from (
|
|
|
+ select round((coalesce(sum(mj::numeric), 0)),2) mj ,count(*) gs ,dlmc,min(dlbm) dlbm from (
|
|
|
+ select "${areacolumn}" as mj ,case when dlbm like '01%' then dlmc else '其他' end dlmc,dlbm from vector."${sjy}"
|
|
|
where xzqdm like concat(#{xzqhdm},'%')
|
|
|
<if test="dlbm!=null and dlbm!='' ">
|
|
|
and dlbm like concat(#{dlbm},'%')
|
|
|
</if>
|
|
|
- )t1 group by dlmc)t2
|
|
|
+ )t1 group by dlmc)t2 order by t2.dlbm
|
|
|
</select>
|
|
|
|
|
|
<select id="qxfl" parameterType="String" resultType="map">
|