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-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientCtrl.java |   57 ++++
 pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientQo.java   |   34 ++
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voSt/VoStClientAmountDay.java                     |  517 +++++++++++++++++++++++++++++++++++++++
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StClientAmountDayMapper.java                |   17 +
 pipIrr-platform/文档/SaaS/管灌系统增加一个客户方法.docx                                                                         |    0 
 pipIrr-platform/文档/SaaS/酒泉职业技术学院设备配置.docx                                                                         |    0 
 pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientSv.java   |   60 ++++
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/StClientAmountDayMapper.xml                               |   59 ++++
 8 files changed, 744 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StClientAmountDayMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StClientAmountDayMapper.java
index 098fe61..d952f4a 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StClientAmountDayMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StClientAmountDayMapper.java
@@ -3,10 +3,12 @@
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.dy.pipIrrGlobal.pojoSt.StClientAmountDay;
 import com.dy.pipIrrGlobal.voSt.VoClientAmountStatistics;
+import com.dy.pipIrrGlobal.voSt.VoStClientAmountDay;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  * @Author: liurunyu
@@ -65,6 +67,21 @@
 
 
     //////////////////////////////////////
+    //鏌ヨ缁熻缁撴灉
+    /**
+     * 鏌ヨ鎬绘暟閲�
+     * @param params
+     * @return
+     */
+    Long selectCountDayStatistics(Map<?, ?> params) ;
+    /**
+     * 鏌ヨ鍒嗛〉鏁版嵁
+     * @param params
+     * @return
+     */
+    List<VoStClientAmountDay> selectDayStatistics(Map<?, ?> params) ;
+
+    //////////////////////////////////////
     //缁熻鐩稿叧
     /**
      * 鏌ヨ鐢ㄦ按鎴蜂竴涓湀鎵�鏈夋棩鐨勭敤姘撮噺
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voSt/VoStClientAmountDay.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voSt/VoStClientAmountDay.java
new file mode 100644
index 0000000..60445bb
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voSt/VoStClientAmountDay.java
@@ -0,0 +1,517 @@
+package com.dy.pipIrrGlobal.voSt;
+
+import com.alibaba.fastjson2.annotation.JSONField;
+import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
+import lombok.Data;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2025/1/3 10:47
+ * @Description
+ */
+@Data
+public class VoStClientAmountDay {
+
+    public static final long serialVersionUID = 202412300924001L;
+    /**
+     * 涓婚敭
+     */
+    @JSONField(serializeUsing= ObjectWriterImplToString.class)
+    public Long id;
+
+    /**
+     * 澶栭敭锛屾寚鍚戝啘鎴�
+     */
+    @JSONField(serializeUsing= ObjectWriterImplToString.class)
+    public Long clientId;
+
+    /**
+     * 鍐滄埛缂栧彿
+     */
+    public String clientNum ;
+
+    /**
+     * 鍐滄埛鍚嶇О
+     */
+    public String clientName ;
+
+    /**
+     * 鍐滄埛鍦板潃
+     */
+    public String clientAddress ;
+
+    /**
+     * 骞村害
+     */
+    public Integer year;
+
+    /**
+     * 鏈堜唤
+     */
+    public Integer month;
+
+    /**
+     * 1鍙风敤姘撮噺缁熻
+     */
+    public Double amount1;
+
+    /**
+     * 1鍙疯姳璐归噾棰�
+     */
+    public Double money1;
+
+    /**
+     * 1鍙风敤姘存鏁�
+     */
+    public Integer times1;
+
+    /**
+     * 2鍙风敤姘撮噺缁熻
+     */
+    public Double amount2;
+
+    /**
+     * 2鍙疯姳璐归噾棰�
+     */
+    public Double money2;
+
+    /**
+     * 2鍙风敤姘存鏁�
+     */
+    public Integer times2;
+
+    /**
+     * 3鍙风敤姘撮噺缁熻
+     */
+    public Double amount3;
+
+    /**
+     * 3鍙疯姳璐归噾棰�
+     */
+    public Double money3;
+
+    /**
+     * 3鍙风敤姘存鏁�
+     */
+    public Integer times3;
+
+    /**
+     * 4鍙风敤姘撮噺缁熻
+     */
+    public Double amount4;
+
+    /**
+     * 4鍙疯姳璐归噾棰�
+     */
+    public Double money4;
+
+    /**
+     * 4鍙风敤姘存鏁�
+     */
+    public Integer times4;
+
+    /**
+     * 5鍙风敤姘撮噺缁熻
+     */
+    public Double amount5;
+
+    /**
+     * 5鍙疯姳璐归噾棰�
+     */
+    public Double money5;
+
+    /**
+     * 5鍙风敤姘存鏁�
+     */
+    public Integer times5;
+
+    /**
+     * 6鍙风敤姘撮噺缁熻
+     */
+    public Double amount6;
+
+    /**
+     * 6鍙疯姳璐归噾棰�
+     */
+    public Double money6;
+
+    /**
+     * 6鍙风敤姘存鏁�
+     */
+    public Integer times6;
+
+    /**
+     * 7鍙风敤姘撮噺缁熻
+     */
+    public Double amount7;
+
+    /**
+     * 7鍙疯姳璐归噾棰�
+     */
+    public Double money7;
+
+    /**
+     * 7鍙风敤姘存鏁�
+     */
+    public Integer times7;
+
+    /**
+     * 8鍙风敤姘撮噺缁熻
+     */
+    public Double amount8;
+
+    /**
+     * 8鍙疯姳璐归噾棰�
+     */
+    public Double money8;
+
+    /**
+     * 8鍙风敤姘存鏁�
+     */
+    public Integer times8;
+
+    /**
+     * 9鍙风敤姘撮噺缁熻
+     */
+    public Double amount9;
+
+    /**
+     * 9鍙疯姳璐归噾棰�
+     */
+    public Double money9;
+
+    /**
+     * 9鍙风敤姘存鏁�
+     */
+    public Integer times9;
+
+    /**
+     * 10鍙风敤姘撮噺缁熻
+     */
+    public Double amount10;
+
+    /**
+     * 10鍙疯姳璐归噾棰�
+     */
+    public Double money10;
+
+    /**
+     * 10鍙风敤姘存鏁�
+     */
+    public Integer times10;
+
+    /**
+     * 11鍙风敤姘撮噺缁熻
+     */
+    public Double amount11;
+
+    /**
+     * 11鍙疯姳璐归噾棰�
+     */
+    public Double money11;
+
+    /**
+     * 11鍙风敤姘存鏁�
+     */
+    public Integer times11;
+
+    /**
+     * 12鍙风敤姘撮噺缁熻
+     */
+    public Double amount12;
+
+    /**
+     * 12鍙疯姳璐归噾棰�
+     */
+    public Double money12;
+
+    /**
+     * 12鍙风敤姘存鏁�
+     */
+    public Integer times12;
+
+    /**
+     * 13鍙风敤姘撮噺缁熻
+     */
+    public Double amount13;
+
+    /**
+     * 13鍙疯姳璐归噾棰�
+     */
+    public Double money13;
+
+    /**
+     * 13鍙风敤姘存鏁�
+     */
+    public Integer times13;
+
+    /**
+     * 14鍙风敤姘撮噺缁熻
+     */
+    public Double amount14;
+
+    /**
+     * 14鍙疯姳璐归噾棰�
+     */
+    public Double money14;
+
+    /**
+     * 14鍙风敤姘存鏁�
+     */
+    public Integer times14;
+
+    /**
+     * 15鍙风敤姘撮噺缁熻
+     */
+    public Double amount15;
+
+    /**
+     * 15鍙疯姳璐归噾棰�
+     */
+    public Double money15;
+
+    /**
+     * 15鍙风敤姘存鏁�
+     */
+    public Integer times15;
+
+    /**
+     * 16鍙风敤姘撮噺缁熻
+     */
+    public Double amount16;
+
+    /**
+     * 16鍙疯姳璐归噾棰�
+     */
+    public Double money16;
+
+    /**
+     * 16鍙风敤姘存鏁�
+     */
+    public Integer times16;
+
+    /**
+     * 17鍙风敤姘撮噺缁熻
+     */
+    public Double amount17;
+
+    /**
+     * 17鍙疯姳璐归噾棰�
+     */
+    public Double money17;
+
+    /**
+     * 17鍙风敤姘存鏁�
+     */
+    public Integer times17;
+
+    /**
+     * 18鍙风敤姘撮噺缁熻
+     */
+    public Double amount18;
+
+    /**
+     * 18鍙疯姳璐归噾棰�
+     */
+    public Double money18;
+
+    /**
+     * 18鍙风敤姘存鏁�
+     */
+    public Integer times18;
+
+    /**
+     * 19鍙风敤姘撮噺缁熻
+     */
+    public Double amount19;
+
+    /**
+     * 19鍙疯姳璐归噾棰�
+     */
+    public Double money19;
+
+    /**
+     * 19鍙风敤姘存鏁�
+     */
+    public Integer times19;
+
+    /**
+     * 20鍙风敤姘撮噺缁熻
+     */
+    public Double amount20;
+
+    /**
+     * 20鍙疯姳璐归噾棰�
+     */
+    public Double money20;
+
+    /**
+     * 20鍙风敤姘存鏁�
+     */
+    public Integer times20;
+
+    /**
+     * 21鍙风敤姘撮噺缁熻
+     */
+    public Double amount21;
+
+    /**
+     * 21鍙疯姳璐归噾棰�
+     */
+    public Double money21;
+
+    /**
+     * 21鍙风敤姘存鏁�
+     */
+    public Integer times21;
+
+    /**
+     * 22鍙风敤姘撮噺缁熻
+     */
+    public Double amount22;
+
+    /**
+     * 22鍙疯姳璐归噾棰�
+     */
+    public Double money22;
+
+    /**
+     * 22鍙风敤姘存鏁�
+     */
+    public Integer times22;
+
+    /**
+     * 23鍙风敤姘撮噺缁熻
+     */
+    public Double amount23;
+
+    /**
+     * 23鍙疯姳璐归噾棰�
+     */
+    public Double money23;
+
+    /**
+     * 23鍙风敤姘存鏁�
+     */
+    public Integer times23;
+
+    /**
+     * 24鍙风敤姘撮噺缁熻
+     */
+    public Double amount24;
+
+    /**
+     * 24鍙疯姳璐归噾棰�
+     */
+    public Double money24;
+
+    /**
+     * 24鍙风敤姘存鏁�
+     */
+    public Integer times24;
+
+    /**
+     * 25鍙风敤姘撮噺缁熻
+     */
+    public Double amount25;
+
+    /**
+     * 25鍙疯姳璐归噾棰�
+     */
+    public Double money25;
+
+    /**
+     * 25鍙风敤姘存鏁�
+     */
+    public Integer times25;
+
+    /**
+     * 26鍙风敤姘撮噺缁熻
+     */
+    public Double amount26;
+
+    /**
+     * 26鍙疯姳璐归噾棰�
+     */
+    public Double money26;
+
+    /**
+     * 26鍙风敤姘存鏁�
+     */
+    public Integer times26;
+
+    /**
+     * 27鍙风敤姘撮噺缁熻
+     */
+    public Double amount27;
+
+    /**
+     * 27鍙疯姳璐归噾棰�
+     */
+    public Double money27;
+
+    /**
+     * 27鍙风敤姘存鏁�
+     */
+    public Integer times27;
+
+    /**
+     * 28鍙风敤姘撮噺缁熻
+     */
+    public Double amount28;
+
+    /**
+     * 28鍙疯姳璐归噾棰�
+     */
+    public Double money28;
+
+    /**
+     * 28鍙风敤姘存鏁�
+     */
+    public Integer times28;
+
+    /**
+     * 29鍙风敤姘撮噺缁熻
+     */
+    public Double amount29;
+
+    /**
+     * 29鍙疯姳璐归噾棰�
+     */
+    public Double money29;
+
+    /**
+     * 29鍙风敤姘存鏁�
+     */
+    public Integer times29;
+
+    /**
+     * 30鍙风敤姘撮噺缁熻
+     */
+    public Double amount30;
+
+    /**
+     * 30鍙疯姳璐归噾棰�
+     */
+    public Double money30;
+
+    /**
+     * 30鍙风敤姘存鏁�
+     */
+    public Integer times30;
+
+    /**
+     * 31鍙风敤姘撮噺缁熻
+     */
+    public Double amount31;
+
+    /**
+     * 31鍙疯姳璐归噾棰�
+     */
+    public Double money31;
+
+    /**
+     * 31鍙风敤姘存鏁�
+     */
+    public Integer times31;
+}
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StClientAmountDayMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StClientAmountDayMapper.xml
index 60fc47a..a5a2f4c 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StClientAmountDayMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StClientAmountDayMapper.xml
@@ -116,6 +116,22 @@
     times27, amount28, money28, times28, amount29, money29, times29, amount30, money30, 
     times30, amount31, money31, times31
   </sql>
+  <sql id="Base_Column_List_with_alias">
+    <!--@mbg.generated-->
+    #{alias}id, #{alias}client_id, #{alias}`year`, #{alias}`month`, #{alias}amount1, #{alias}money1, #{alias}times1, #{alias}amount2, #{alias}money2, #{alias}times2,
+    amount3, #{alias}money3, #{alias}times3, #{alias}amount4, #{alias}money4, #{alias}times4, #{alias}amount5, #{alias}money5, #{alias}times5, #{alias}amount6,
+    money6, #{alias}times6, #{alias}amount7, #{alias}money7, #{alias}times7, #{alias}amount8, #{alias}money8, #{alias}times8, #{alias}amount9, #{alias}money9,
+    times9, #{alias}amount10, #{alias}money10, #{alias}times10, #{alias}amount11, #{alias}money11, #{alias}times11, #{alias}amount12, #{alias}money12,
+    times12, #{alias}amount13, #{alias}money13, #{alias}times13, #{alias}amount14, #{alias}money14, #{alias}times14, #{alias}amount15, #{alias}money15,
+    times15, #{alias}amount16, #{alias}money16, #{alias}times16, #{alias}amount17, #{alias}money17, #{alias}times17, #{alias}amount18, #{alias}money18,
+    times18, #{alias}amount19, #{alias}money19, #{alias}times19, #{alias}amount20, #{alias}money20, #{alias}times20, #{alias}amount21, #{alias}money21,
+    times21, #{alias}amount22, #{alias}money22, #{alias}times22, #{alias}amount23, #{alias}money23, #{alias}times23, #{alias}amount24, #{alias}money24,
+    times24, #{alias}amount25, #{alias}money25, #{alias}times25, #{alias}amount26, #{alias}money26, #{alias}times26, #{alias}amount27, #{alias}money27,
+    times27, #{alias}amount28, #{alias}money28, #{alias}times28, #{alias}amount29, #{alias}money29, #{alias}times29, #{alias}amount30, #{alias}money30,
+    times30, #{alias}amount31, #{alias}money31, #{alias}times31
+  </sql>
+
+
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     <!--@mbg.generated-->
     select 
@@ -1185,6 +1201,49 @@
   </update>
 
   <!-- ////////////////////////////////// -->
+  <!-- 鏌ヨ缁熻缁撴灉                         -->
+  <!-- ////////////////////////////////// -->
+  <select id="selectCountDayStatistics" resultType="java.lang.Long">
+    select
+    count(*)
+    from se_client mtb
+    <where>
+      <if test="name != null and name != ''">
+        mtb.name like concat('%', #{name}, '%')
+      </if>
+    </where>
+  </select>
+
+  <select id="selectDayStatistics" resultType="com.dy.pipIrrGlobal.voSt.VoStClientAmountDay">
+    select
+    mtb.clientNum as clientNum,
+    mtb.phone as clientPhone,
+    mtb.address as clientAddress,
+    <include refid="Base_Column_List_with_alias" >
+      <property name="alias" value="mtb"/>
+    </include>
+    from se_client mtb
+    LEFT JOIN st_client_amount_day stTb on stTb.client_id = mtb.id
+    <where>
+      <if test = "year != null">
+        stTb.year = #{year, jdbcType=INTEGER}
+      </if>
+      <if test = "month != null">
+        AND stTb.month = #{month, jdbcType=INTEGER}
+      </if>
+      <if test="name != null and name != ''">
+        AND mtb.name like concat('%', #{name}, '%')
+      </if>
+    </where>
+    order by mtb.id ASC
+    <trim prefix="limit " >
+      <if test="start != null and count != null">
+        #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER}
+      </if>
+    </trim>
+  </select>
+
+  <!-- ////////////////////////////////// -->
   <!-- 缁熻鐩稿叧                         -->
   <!-- ////////////////////////////////// -->
   <select id="statisticsByClient" resultType="com.dy.pipIrrGlobal.voSt.VoClientAmountStatistics">
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientCtrl.java
new file mode 100644
index 0000000..7b21ee7
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientCtrl.java
@@ -0,0 +1,57 @@
+package com.dy.pipIrrStatistics.stClient;
+
+import com.dy.common.aop.SsoAop;
+import com.dy.common.util.DateTime;
+import com.dy.common.webUtil.BaseResponse;
+import com.dy.common.webUtil.BaseResponseUtils;
+import com.dy.common.webUtil.QueryResultVo;
+import com.dy.pipIrrGlobal.voSt.VoDayIntakeAmount;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/30 15:22
+ * @Description
+ */
+
+@Slf4j
+@RestController
+@RequestMapping(path="stClient")
+@RequiredArgsConstructor
+public class StClientCtrl {
+
+    private StClientSv sv ;
+
+    @Autowired
+    private void setSv(StClientSv sv){
+        this.sv = sv ;
+    }
+
+
+    /**
+     * 鏌ヨ鎸囧畾骞存湀鍐滄埛鍚勬棩鐢ㄦ按閲�
+     * @param qo
+     * @return
+     */
+    @GetMapping(path = "/amountOfDay")
+    @SsoAop()
+    public BaseResponse<QueryResultVo<List<VoDayIntakeAmount>>> amountOfDay(StClientQo qo) throws Exception {
+        String yearMonth = qo.getYearMonth();
+        if(yearMonth == null || yearMonth.trim().equals("")) {
+            return BaseResponseUtils.buildErrorMsg("鏌ヨ鏉′欢骞存湀涓嶈兘涓虹┖");
+        }
+
+        int[] ymd = DateTime.yyyy_MM_ymdGroup(yearMonth) ;
+        qo.year = ymd[0] ;
+        qo.month = ymd[1] ;
+
+        return BaseResponseUtils.buildSuccess(this.sv.selectStClientAmountDay(qo));
+    }
+}
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientQo.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientQo.java
new file mode 100644
index 0000000..871d8db
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientQo.java
@@ -0,0 +1,34 @@
+package com.dy.pipIrrStatistics.stClient;
+
+import com.dy.common.webUtil.QueryConditionVo;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2025/1/3 11:12
+ * @Description
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+public class StClientQo extends QueryConditionVo {
+
+    /**
+     * 缁熻骞存湀
+     */
+    public String yearMonth;
+    /**
+     * 骞�
+     */
+    public Integer year;
+
+    /**
+     * 鏈�
+     */
+    public Integer month;
+
+    /**
+     * 鍙栨按鍙g紪鍙�
+     */
+    public String clientName;
+}
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientSv.java
new file mode 100644
index 0000000..7cd7cfe
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/stClient/StClientSv.java
@@ -0,0 +1,60 @@
+package com.dy.pipIrrStatistics.stClient;
+
+import com.dy.common.webUtil.QueryResultVo;
+import com.dy.pipIrrGlobal.daoSt.StClientAmountDayMapper ;
+import com.dy.pipIrrGlobal.daoSt.StClientAmountMonthMapper ;
+import com.dy.pipIrrGlobal.daoSt.StClientAmountYearMapper ;
+import com.dy.pipIrrGlobal.voSt.VoStClientAmountDay;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.dubbo.common.utils.PojoUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.text.ParseException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/30 15:22
+ * @Description
+ */
+
+@Slf4j
+@Service
+public class StClientSv {
+
+    private StClientAmountDayMapper stClientAmountDayDao ;
+    private StClientAmountMonthMapper stClientAmountMonthDao ;
+    private StClientAmountYearMapper stClientAmountYearDao ;
+    @Autowired
+    private void setDao(StClientAmountDayMapper dao){
+        this.stClientAmountDayDao = dao ;
+    }
+    @Autowired
+    private void setDao(StClientAmountMonthMapper dao){
+        this.stClientAmountMonthDao = dao ;
+    }
+    @Autowired
+    private void setDao(StClientAmountYearMapper dao){
+        this.stClientAmountYearDao = dao ;
+    }
+
+
+    public QueryResultVo<List<VoStClientAmountDay>> selectStClientAmountDay(StClientQo qo) throws ParseException {
+        QueryResultVo<List<VoStClientAmountDay>> rsVo = new QueryResultVo<>() ;
+        // 鐢熸垚鏌ヨ鍙傛暟
+        Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo) ;
+        // 鑾峰彇绗﹀悎鏉′欢鐨勮褰曟暟
+        Long itemTotal = stClientAmountDayDao.selectCountDayStatistics(params) ;
+
+        if(itemTotal != null && itemTotal > 0) {
+            rsVo.pageSize = qo.pageSize;
+            rsVo.pageCurr = qo.pageCurr;
+            rsVo.calculateAndSet(itemTotal, params);
+
+            rsVo.obj = stClientAmountDayDao.selectDayStatistics(params);
+        }
+        return rsVo ;
+    }
+}
diff --git "a/pipIrr-platform/\346\226\207\346\241\243/SaaS/\347\256\241\347\201\214\347\263\273\347\273\237\345\242\236\345\212\240\344\270\200\344\270\252\345\256\242\346\210\267\347\263\273\347\273\237.docx" "b/pipIrr-platform/\346\226\207\346\241\243/SaaS/\347\256\241\347\201\214\347\263\273\347\273\237\345\242\236\345\212\240\344\270\200\344\270\252\345\256\242\346\210\267\346\226\271\346\263\225.docx"
similarity index 100%
rename from "pipIrr-platform/\346\226\207\346\241\243/SaaS/\347\256\241\347\201\214\347\263\273\347\273\237\345\242\236\345\212\240\344\270\200\344\270\252\345\256\242\346\210\267\347\263\273\347\273\237.docx"
rename to "pipIrr-platform/\346\226\207\346\241\243/SaaS/\347\256\241\347\201\214\347\263\273\347\273\237\345\242\236\345\212\240\344\270\200\344\270\252\345\256\242\346\210\267\346\226\271\346\263\225.docx"
Binary files differ
diff --git "a/pipIrr-platform/\346\226\207\346\241\243/SaaS/\351\205\222\346\263\211\350\201\214\344\270\232\346\212\200\346\234\257\345\255\246\351\231\242\350\256\276\345\244\207\351\205\215\347\275\256.docx" "b/pipIrr-platform/\346\226\207\346\241\243/SaaS/\351\205\222\346\263\211\350\201\214\344\270\232\346\212\200\346\234\257\345\255\246\351\231\242\350\256\276\345\244\207\351\205\215\347\275\256.docx"
new file mode 100644
index 0000000..35eb81e
--- /dev/null
+++ "b/pipIrr-platform/\346\226\207\346\241\243/SaaS/\351\205\222\346\263\211\350\201\214\344\270\232\346\212\200\346\234\257\345\255\246\351\231\242\350\256\276\345\244\207\351\205\215\347\275\256.docx"
Binary files differ

--
Gitblit v1.8.0