52eae2eb 张雷

集团日均水量接口修改

1 个父辈 b609ff3e
...@@ -361,18 +361,27 @@ ...@@ -361,18 +361,27 @@
361 </if> 361 </if>
362 ) f 362 ) f
363 left join ( 363 left join (
364 select 364 SELECT
365 ROUND(SUM(v.CSL)/10000,2) as clsl, 365 ROUND( SUM( v2119.CSL ) / 10000, 2 ) AS clsl,
366 ROUND(AVG(v.CSL)/10000,2) as rjclsl, 366 ROUND( AVG( v2119.CSL ) / 10000, 2 ) AS rjclsl,
367 'sl' AS type 367 'sl' AS type
368 from ${dataView2119} v 368 FROM
369 where v.time &gt;= #{startDate} and v.time &lt;= #{endDate} 369 (
370 <if test="departId!=null and departId!=''"> 370 SELECT
371 AND v.depart_id in 371 SUM( v.CSL ) AS CSL,
372 <foreach item="item" index="index" collection="departId.split(',')" open="(" separator="," close=")"> 372 v.depart_id
373 '${item}' 373 FROM
374 </foreach> 374 ${dataView2119} v
375 </if> 375 WHERE
376 v.time &gt;= #{startDate} and v.time &lt;= #{endDate}
377 <if test="departId!=null and departId!=''">
378 AND v.depart_id in
379 <foreach item="item" index="index" collection="departId.split(',')" open="(" separator="," close=")">
380 '${item}'
381 </foreach>
382 </if>
383 GROUP BY v.depart_id
384 ) v2119
376 ) v2 ON f.type = v2.type 385 ) v2 ON f.type = v2.type
377 </select> 386 </select>
378 <select id="getDsdhListGroupByDepart" resultType="java.util.HashMap"> 387 <select id="getDsdhListGroupByDepart" resultType="java.util.HashMap">
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!