From c8b2311124fd5785b90d2fb4bd9ae0078aa13055 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 03 一月 2025 11:26:08 +0800 Subject: [PATCH] 1、查询农户年月的各日用水信息; 2、修改文档名称为《管系统系统增加一个客户的方法》; 3、增加一个文档《洒泉职业技术学院设备配置》。 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml index f09df25..946ed18 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOpenCloseValveHistoryMapper.xml @@ -1367,4 +1367,34 @@ </if> </trim> </select> + + + + <!-- /////////////////////////////////// --> + <!-- 缁熻鐩稿叧 --> + <!-- /////////////////////////////////// --> + <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcConsumeStatistics"> + select ocvh.client_id as clientId, + cc.id as cardId, + sum(ocvh.cl_this_amount) as water, + sum(ocvh.cl_this_money) as amount, + sum(ocvh.cl_this_time) as duration, + count(ocvh.id) as times + from rm_open_close_valve_history ocvh + inner join se_client_card cc on CAST(cc.cardNum AS CHAR) = ocvh.cl_ic_card_no + where ocvh.cl_dt <![CDATA[>=]]> #{startDt, jdbcType=BIGINT} + and ocvh.cl_dt <![CDATA[<=]]> #{endDt, jdbcType=BIGINT} + group by ocvh.client_id, cc.id + </select> + <select id="statisticsByClient" resultType="com.dy.pipIrrGlobal.voSt.VoClientConsumeStatistics"> + select client_id as clientId, + sum(cl_this_amount) as water, + sum(cl_this_money) as amount, + sum(cl_this_time) as duration, + count(id) as times + from rm_open_close_valve_history + where cl_dt <![CDATA[>=]]> #{startDt, jdbcType=BIGINT} + and cl_dt <![CDATA[<=]]> #{endDt, jdbcType=BIGINT} + group by client_id + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0