From b7d83328c1d4cf65f0dc9ec7c17e957afc7e3c76 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 13 一月 2025 17:07:33 +0800
Subject: [PATCH] web文件系统,文件上传返回增加一个属性filePath ;//文件在服务端存储相对路径
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml | 63 +++++++++++++++++++++++++++----
1 files changed, 54 insertions(+), 9 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml
index a41ef3c..c81dd42 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml
@@ -285,11 +285,13 @@
<!--鑾峰彇绱娴侀噺瓒呰繃鎸囧畾鍊肩殑鍙栨按鍙�-->
<select id="getLargeFlowIntakes" resultType="com.dy.pipIrrGlobal.voSt.VoCumulativeFlow">
- SELECT inta.id AS intakeId,
- inta.name AS intakeNum,
- blo.name AS blockName,
- CAST(hou.total_amount AS DECIMAL(10, 2)) AS cumulativeFlow,
- hou.dt AS getDate
+ SELECT inta.id AS intakeId,
+ inta.name AS intakeNum,
+ inta.lng AS lng,
+ inta.lat AS lat,
+ blo.name AS blockName,
+ hou.total_amount AS cumulativeFlow,
+ hou.dt AS getDate
FROM pr_intake inta
INNER JOIN rm_on_hour_report_last hou ON hou.intake_id = inta.id
INNER JOIN ba_block blo ON blo.id = inta.blockId
@@ -317,10 +319,11 @@
<select id="getSmallFlowIntakes" resultType="com.dy.pipIrrGlobal.voSt.VoCumulativeFlow">
SELECT inta.id AS intakeId,
inta.name AS intakeNum,
+ inta.lng AS lng,
+ inta.lat AS lat,
blo.name AS blockName,
- <!-- FORMAT(hou.total_amount,2) AS cumulativeFlow,-->
- CAST(hou.total_amount AS DECIMAL(10, 2)) AS cumulativeFlow,
- hou.dt AS getDate
+ hou.total_amount AS cumulativeFlow,
+ hou.dt AS getDate
FROM pr_intake inta
INNER JOIN rm_on_hour_report_last hou ON hou.intake_id = inta.id
INNER JOIN ba_block blo ON blo.id = inta.blockId
@@ -417,5 +420,47 @@
</if>
</trim>
</select>
-
+ <!--鑾峰彇鏈�杩戞湭鎶ユ暟鐨勫彇姘村彛鏁伴噺-->
+ <select id="getUnReportedIntakesCount" resultType="java.lang.Long">
+ SELECT
+ count(*)
+ FROM pr_intake pit
+ LEFT JOIN `rm_on_hour_report_last` rohrl
+ ON (
+ pit.id = rohrl.intake_id
+ <if test="timeStart != null and timeStart != '' ">
+ AND rohrl.dt > #{timeStart}
+ </if>
+ )
+ LEFT JOIN ba_block bbl ON bbl.id = pit.blockId
+ LEFT JOIN pr_controller pct ON pit.id = pct.intakeId
+ WHERE rohrl.id is NULL
+ </select>
+ <!--鑾峰彇鏈�杩戞湭鎶ユ暟鐨勫彇姘村彛-->
+ <select id="getUnReportedIntakes" resultType="com.dy.pipIrrGlobal.voSt.VoIntakeUnReported">
+ SELECT
+ pit.id AS intakeId,
+ pit.`name` AS intakeNum,
+ pit.lng AS lng,
+ pit.lat AS lat,
+ bbl.name AS blockName,
+ pct.rtuAddr AS rtuAddr
+ FROM pr_intake pit
+ LEFT JOIN `rm_on_hour_report_last` rohrl
+ ON (
+ pit.id = rohrl.intake_id
+ <if test="timeStart != null and timeStart != '' ">
+ AND rohrl.dt > #{timeStart}
+ </if>
+ )
+ LEFT JOIN ba_block bbl ON bbl.id = pit.blockId
+ LEFT JOIN pr_controller pct ON pit.id = pct.intakeId
+ WHERE rohrl.id is NULL
+ ORDER BY pit.id DESC
+ <trim prefix="limit ">
+ <if test="start != null and count != null">
+ #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER}
+ </if>
+ </trim>
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0