From ec5c0176b5ecc52a051867b412e541c56b70320b Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Wed, 08 Sep 2021 08:29:57 +0800
Subject: [PATCH] 1.单位
---
src/main/java/org/springblade/modules/mountainrain/mapper/MountainrainMapper.xml | 23 ++++-------------------
1 files changed, 4 insertions(+), 19 deletions(-)
diff --git a/src/main/java/org/springblade/modules/mountainrain/mapper/MountainrainMapper.xml b/src/main/java/org/springblade/modules/mountainrain/mapper/MountainrainMapper.xml
index fd9bfd4..cf67c04 100644
--- a/src/main/java/org/springblade/modules/mountainrain/mapper/MountainrainMapper.xml
+++ b/src/main/java/org/springblade/modules/mountainrain/mapper/MountainrainMapper.xml
@@ -182,7 +182,6 @@
<select id="selectcInfos" resultMap="mountainrainResultMapcInfo">
SELECT
cs.id,
- cs1.c,
cs.cenconding,
cs.crainfall,
isnull(cs.gohour,0) gohour,
@@ -208,24 +207,12 @@
( SELECT id,cenconding,crainfall,township, village, village_group, dj, bw,county,fyear,tyear,oyear,gohour,gthour,gshour,imohour,imthour,imshour FROM blade_mountain ) cs
INNER JOIN (
SELECT
- ISNULL( COUNT ( * ), 0 ) AS c,
- STCD
- FROM
- dbo.ST_PPTN_R
- WHERE
- TM >=#{dateEnd24}
- AND TM <=#{times}
- GROUP BY
- STCD
- ) cs1 ON cs.cenconding = cs1.STCD
- INNER JOIN (
- SELECT
ISNULL( SUM ( str.DRP ), 0 ) AS drp1,
STCD
FROM
dbo.ST_PPTN_R str
WHERE
- str.TM >=#{dateEnd1}
+ str.TM >#{dateEnd1}
AND str.TM <=#{times}
GROUP BY
STCD
@@ -237,7 +224,7 @@
FROM
dbo.ST_PPTN_R s
WHERE
- s.TM >=#{dateEnd3}
+ s.TM >#{dateEnd3}
AND s.TM <=#{times}
GROUP BY
STCD
@@ -249,7 +236,7 @@
FROM
dbo.ST_PPTN_R strs
WHERE
- strs.TM >=#{dateEnd6}
+ strs.TM >#{dateEnd6}
AND strs.TM <=#{times}
GROUP BY
STCD
@@ -260,11 +247,9 @@
FROM
dbo.ST_PPTN_R strd
WHERE
- strd.TM >=#{timess}
+ strd.TM >#{timess}
AND strd.TM <=#{times}
GROUP BY STCD
) csd on csd.STCD=cs.cenconding
- WHERE
- cs.cenconding IS NOT NULL order by id
</select>
</mapper>
--
Gitblit v1.9.3