From 27bd4b5c03bbc8b665ffecb87d6c2cae3262e503 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 27 十二月 2024 11:30:06 +0800
Subject: [PATCH] 自动统计实现:用水量、充值、消费等
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcMonthMapper.xml | 548 +++
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcMonthMapper.java | 84
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcYear.java | 52
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientYearMapper.java | 71
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcYearMapper.xml | 140
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcMonthMapper.java | 86
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByClient.java | 6
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcDayMapper.xml | 1239 +++++++
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestJob.java | 35
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcMonth.java | 225 +
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcYearMapper.java | 71
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientMonthMapper.xml | 391 ++
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientDay.java | 354 ++
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientYearMapper.xml | 116
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientDayMapper.java | 89
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientMonth.java | 219 +
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientMonthMapper.java | 84
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcMonthMapper.xml | 403 ++
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestWorker.java | 20
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientMonthMapper.java | 84
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsListener.java | 7
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByIc.java | 6
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsJob.java | 14
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClientSv.java | 4
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcDay.java | 360 ++
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientYear.java | 50
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClient.java | 7
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByIc.java | 6
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcDayMapper.java | 90
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcDay.java | 514 ++
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientMonthMapper.xml | 536 +++
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcDayMapper.java | 90
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcYear.java | 61
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcDayMapper.xml | 870 +++++
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StLoss.java | 6
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientDayMapper.xml | 1226 +++++++
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcYearMapper.java | 71
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientYearMapper.xml | 126
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcMonth.java | 165
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntakeSv.java | 4
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByClient.java | 7
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientMonth.java | 159
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcYearMapper.xml | 128
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientYear.java | 54
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientDayMapper.java | 87
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientYearMapper.java | 70
pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientDayMapper.xml | 857 ++++
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntake.java | 7
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientDay.java | 509 ++
49 files changed, 10,357 insertions(+), 51 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientDayMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientDayMapper.java
new file mode 100644
index 0000000..84f83aa
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientDayMapper.java
@@ -0,0 +1,89 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay;
+import com.dy.pipIrrGlobal.voSt.VoClientConsumeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:08
+ * @Description
+ */
+@Mapper
+public interface StConsumeClientDayMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StConsumeClientDay record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StConsumeClientDay record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StConsumeClientDay selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StConsumeClientDay record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StConsumeClientDay record);
+
+
+ /////////////////////////////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛缁熻
+ *
+ * @param year
+ * @param month
+ * @return
+ */
+ List<VoClientConsumeStatistics> statisticsByClient(@Param("year") Integer year, @Param("month") Integer month);
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾骞存寚瀹氭湀鐨勫悇鏃ョ粺璁�
+ *
+ * @param clientId
+ * @param year
+ * @param month
+ * @return
+ */
+ List<StConsumeClientDay> selectByClientAndYearAndMonth(@Param("clientId") Long clientId,
+ @Param("year") Integer year,
+ @Param("month") Integer month);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientMonthMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientMonthMapper.java
new file mode 100644
index 0000000..9c6e9d0
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientMonthMapper.java
@@ -0,0 +1,84 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth;
+import com.dy.pipIrrGlobal.voSt.VoClientConsumeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:08
+ * @Description
+ */
+@Mapper
+public interface StConsumeClientMonthMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StConsumeClientMonth record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StConsumeClientMonth record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StConsumeClientMonth selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StConsumeClientMonth record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StConsumeClientMonth record);
+
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛缁熻
+ * @param year
+ * @return
+ */
+ List<VoClientConsumeStatistics> statisticsByClient(@Param("year")Integer year) ;
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾骞寸殑鍚勬湀缁熻
+ * @param clientId
+ * @param year
+ * @return
+ */
+ List<StConsumeClientMonth> selectByClientAndYear(@Param("clientId")Long clientId,
+ @Param("year")Integer year);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientYearMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientYearMapper.java
new file mode 100644
index 0000000..ab1f91f
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeClientYearMapper.java
@@ -0,0 +1,71 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:08
+ * @Description
+ */
+@Mapper
+public interface StConsumeClientYearMapper {
+ /**
+ * delete by primary key
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StConsumeClientYear record);
+
+ /**
+ * insert record to table selective
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StConsumeClientYear record);
+
+ /**
+ * select by primary key
+ * @param id primary key
+ * @return object by primary key
+ */
+ StConsumeClientYear selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StConsumeClientYear record);
+
+ /**
+ * update record
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StConsumeClientYear record);
+
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾骞寸殑骞寸粺璁�
+ * @param clientId
+ * @param year
+ * @return
+ */
+ List<StConsumeClientYear> selectByClientAndYear(@Param("clientId")Long clientId,
+ @Param("year")Integer year);
+
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcDayMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcDayMapper.java
new file mode 100644
index 0000000..ed9a731
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcDayMapper.java
@@ -0,0 +1,90 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay;
+import com.dy.pipIrrGlobal.voSt.VoIcConsumeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:07
+ * @Description
+ */
+@Mapper
+public interface StConsumeIcDayMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StConsumeIcDay record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StConsumeIcDay record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StConsumeIcDay selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StConsumeIcDay record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StConsumeIcDay record);
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛鍚処C鍗$粺璁�
+ * @param year
+ * @param month
+ * @return
+ */
+ List<VoIcConsumeStatistics> statisticsByIc(@Param("year")Integer year, @Param("month")Integer month) ;
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾IC鍗℃寚瀹氬勾鎸囧畾鏈堢殑鍚勬棩缁熻
+ *
+ * @param clientId
+ * @param cardId
+ * @param year
+ * @param month
+ * @return
+ */
+ List<StConsumeIcDay> selectByClientAndCardAndYearAndMonth(@Param("clientId")Long clientId,
+ @Param("cardId")Long cardId,
+ @Param("year")Integer year,
+ @Param("month")Integer month);
+
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcMonthMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcMonthMapper.java
new file mode 100644
index 0000000..8f838be
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcMonthMapper.java
@@ -0,0 +1,86 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth;
+import com.dy.pipIrrGlobal.voSt.VoIcConsumeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:07
+ * @Description
+ */
+@Mapper
+public interface StConsumeIcMonthMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StConsumeIcMonth record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StConsumeIcMonth record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StConsumeIcMonth selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StConsumeIcMonth record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StConsumeIcMonth record);
+
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛鍚処C鍗$粺璁�
+ * @param year
+ * @return
+ */
+ List<VoIcConsumeStatistics> statisticsByIc(@Param("year")Integer year) ;
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾IC鍗℃寚瀹氬勾鐨勫悇鏈堢粺璁�
+ * @param clientId
+ * @param cardId
+ * @param year
+ * @return
+ */
+ List<StConsumeIcMonth> selectByClientAndCardAndYear(@Param("clientId")Long clientId,
+ @Param("cardId")Long cardId,
+ @Param("year")Integer year);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcYearMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcYearMapper.java
new file mode 100644
index 0000000..6d31cd5
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcYearMapper.java
@@ -0,0 +1,71 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:07
+ * @Description
+ */
+@Mapper
+public interface StConsumeIcYearMapper {
+ /**
+ * delete by primary key
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StConsumeIcYear record);
+
+ /**
+ * insert record to table selective
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StConsumeIcYear record);
+
+ /**
+ * select by primary key
+ * @param id primary key
+ * @return object by primary key
+ */
+ StConsumeIcYear selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StConsumeIcYear record);
+
+ /**
+ * update record
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StConsumeIcYear record);
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾IC鍗℃寚瀹氬勾鐨勫勾缁熻
+ * @param clientId
+ * @param cardId
+ * @param year
+ * @return
+ */
+ List<StConsumeIcYear> selectByClientAndCardAndYear(@Param("clientId")Long clientId,
+ @Param("cardId")Long cardId,
+ @Param("year")Integer year);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientDayMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientDayMapper.java
new file mode 100644
index 0000000..765dd34
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientDayMapper.java
@@ -0,0 +1,87 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay;
+import com.dy.pipIrrGlobal.voSt.VoClientRechargeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 16:04
+ * @Description
+ */
+@Mapper
+public interface StRechargeClientDayMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StRechargeClientDay record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StRechargeClientDay record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StRechargeClientDay selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StRechargeClientDay record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StRechargeClientDay record);
+
+ /////////////////////////////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛缁熻
+ *
+ * @param year
+ * @param month
+ * @return
+ */
+ List<VoClientRechargeStatistics> statisticsByClient(@Param("year") Integer year, @Param("month") Integer month);
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾骞存寚瀹氭湀鐨勫悇鏃ョ粺璁�
+ *
+ * @param clientId
+ * @param year
+ * @param month
+ * @return
+ */
+ List<StRechargeClientDay> selectByClientAndYearAndMonth(@Param("clientId") Long clientId,
+ @Param("year") Integer year,
+ @Param("month") Integer month);
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientMonthMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientMonthMapper.java
new file mode 100644
index 0000000..247f1f8
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientMonthMapper.java
@@ -0,0 +1,84 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth;
+import com.dy.pipIrrGlobal.voSt.VoClientRechargeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 15:48
+ * @Description
+ */
+@Mapper
+public interface StRechargeClientMonthMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StRechargeClientMonth record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StRechargeClientMonth record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StRechargeClientMonth selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StRechargeClientMonth record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StRechargeClientMonth record);
+
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛缁熻
+ * @param year
+ * @return
+ */
+ List<VoClientRechargeStatistics> statisticsByClient(@Param("year")Integer year) ;
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾骞寸殑鍚勬湀缁熻
+ * @param clientId
+ * @param year
+ * @return
+ */
+ List<StRechargeClientMonth> selectByClientAndYear(@Param("clientId")Long clientId,
+ @Param("year")Integer year);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientYearMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientYearMapper.java
new file mode 100644
index 0000000..2636dca
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeClientYearMapper.java
@@ -0,0 +1,70 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 15:27
+ * @Description
+ */
+@Mapper
+public interface StRechargeClientYearMapper {
+ /**
+ * delete by primary key
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StRechargeClientYear record);
+
+ /**
+ * insert record to table selective
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StRechargeClientYear record);
+
+ /**
+ * select by primary key
+ * @param id primary key
+ * @return object by primary key
+ */
+ StRechargeClientYear selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StRechargeClientYear record);
+
+ /**
+ * update record
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StRechargeClientYear record);
+
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾骞寸殑骞寸粺璁�
+ * @param clientId
+ * @param year
+ * @return
+ */
+ List<StRechargeClientYear> selectByClientAndYear(@Param("clientId")Long clientId,
+ @Param("year")Integer year);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcDayMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcDayMapper.java
new file mode 100644
index 0000000..cdfd513
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcDayMapper.java
@@ -0,0 +1,90 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay;
+import com.dy.pipIrrGlobal.voSt.VoIcRechargeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/24 14:53
+ * @Description
+ */
+@Mapper
+public interface StRechargeIcDayMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StRechargeIcDay record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StRechargeIcDay record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StRechargeIcDay selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StRechargeIcDay record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StRechargeIcDay record);
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛鍚処C鍗$粺璁�
+ * @param year
+ * @param month
+ * @return
+ */
+ List<VoIcRechargeStatistics> statisticsByIc(@Param("year")Integer year, @Param("month")Integer month) ;
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾IC鍗℃寚瀹氬勾鎸囧畾鏈堢殑鍚勬棩缁熻
+ *
+ * @param clientId
+ * @param cardId
+ * @param year
+ * @param month
+ * @return
+ */
+ List<StRechargeIcDay> selectByClientAndCardAndYearAndMonth(@Param("clientId")Long clientId,
+ @Param("cardId")Long cardId,
+ @Param("year")Integer year,
+ @Param("month")Integer month);
+
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcMonthMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcMonthMapper.java
new file mode 100644
index 0000000..6c5b533
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcMonthMapper.java
@@ -0,0 +1,84 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth;
+import com.dy.pipIrrGlobal.voSt.VoIcRechargeStatistics;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 15:12
+ * @Description
+ */
+@Mapper
+public interface StRechargeIcMonthMapper {
+ /**
+ * delete by primary key
+ *
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StRechargeIcMonth record);
+
+ /**
+ * insert record to table selective
+ *
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StRechargeIcMonth record);
+
+ /**
+ * select by primary key
+ *
+ * @param id primary key
+ * @return object by primary key
+ */
+ StRechargeIcMonth selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StRechargeIcMonth record);
+
+ /**
+ * update record
+ *
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StRechargeIcMonth record);
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鎸囧畾骞存寚瀹氭湀鐨勫悇鍐滄埛鍚処C鍗$粺璁�
+ * @param year
+ * @return
+ */
+ List<VoIcRechargeStatistics> statisticsByIc(@Param("year")Integer year) ;
+
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾IC鍗℃寚瀹氬勾鐨勫悇鏈堢粺璁�
+ * @param clientId
+ * @param cardId
+ * @param year
+ * @return
+ */
+ List<StRechargeIcMonth> selectByClientAndCardAndYear(@Param("clientId")Long clientId,
+ @Param("cardId")Long cardId,
+ @Param("year")Integer year);
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcYearMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcYearMapper.java
new file mode 100644
index 0000000..63fbf64
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StRechargeIcYearMapper.java
@@ -0,0 +1,71 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 14:52
+ * @Description
+ */
+@Mapper
+public interface StRechargeIcYearMapper {
+ /**
+ * delete by primary key
+ * @param id primaryKey
+ * @return deleteCount
+ */
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * insert record to table
+ * @param record the record
+ * @return insert count
+ */
+ int insert(StRechargeIcYear record);
+
+ /**
+ * insert record to table selective
+ * @param record the record
+ * @return insert count
+ */
+ int insertSelective(StRechargeIcYear record);
+
+ /**
+ * select by primary key
+ * @param id primary key
+ * @return object by primary key
+ */
+ StRechargeIcYear selectByPrimaryKey(Long id);
+
+ /**
+ * update record selective
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKeySelective(StRechargeIcYear record);
+
+ /**
+ * update record
+ * @param record the updated record
+ * @return update count
+ */
+ int updateByPrimaryKey(StRechargeIcYear record);
+
+ ///////////////////////////////
+ //缁熻鐩稿叧
+ /**
+ * 鏌ヨ鎸囧畾鍐滄埛鎸囧畾IC鍗℃寚瀹氬勾鐨勫勾缁熻
+ * @param clientId
+ * @param cardId
+ * @param year
+ * @return
+ */
+ List<StRechargeIcYear> selectByClientAndCardAndYear(@Param("clientId")Long clientId,
+ @Param("cardId")Long cardId,
+ @Param("year")Integer year);
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientDay.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientDay.java
new file mode 100644
index 0000000..4d72db2
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientDay.java
@@ -0,0 +1,354 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:08
+ * @Description
+ */
+
+@TableName(value="st_consume_client_day", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "鍐滄埛娑堣垂鏃ョ粺璁�")
+public class StConsumeClientDay implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251437001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 鏈堜唤
+ */
+ public Integer month;
+
+ /**
+ * 1鍙锋秷璐圭粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鍙锋秷璐规鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鍙锋秷璐圭粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鍙锋秷璐规鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鍙锋秷璐圭粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鍙锋秷璐规鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鍙锋秷璐圭粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鍙锋秷璐规鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鍙锋秷璐圭粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鍙锋秷璐规鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鍙锋秷璐圭粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鍙锋秷璐规鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鍙锋秷璐圭粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鍙锋秷璐规鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鍙锋秷璐圭粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鍙锋秷璐规鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鍙锋秷璐圭粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鍙锋秷璐规鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鍙锋秷璐圭粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鍙锋秷璐规鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鍙锋秷璐圭粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鍙锋秷璐规鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鍙锋秷璐圭粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鍙锋秷璐规鏁�
+ */
+ public Integer times12;
+
+ /**
+ * 13鍙锋秷璐圭粺璁�
+ */
+ public Double amount13;
+
+ /**
+ * 13鍙锋秷璐规鏁�
+ */
+ public Integer times13;
+
+ /**
+ * 14鍙锋秷璐圭粺璁�
+ */
+ public Double amount14;
+
+ /**
+ * 14鍙锋秷璐规鏁�
+ */
+ public Integer times14;
+
+ /**
+ * 15鍙锋秷璐圭粺璁�
+ */
+ public Double amount15;
+
+ /**
+ * 15鍙锋秷璐规鏁�
+ */
+ public Integer times15;
+
+ /**
+ * 16鍙锋秷璐圭粺璁�
+ */
+ public Double amount16;
+
+ /**
+ * 16鍙锋秷璐规鏁�
+ */
+ public Integer times16;
+
+ /**
+ * 17鍙锋秷璐圭粺璁�
+ */
+ public Double amount17;
+
+ /**
+ * 17鍙锋秷璐规鏁�
+ */
+ public Integer times17;
+
+ /**
+ * 18鍙锋秷璐圭粺璁�
+ */
+ public Double amount18;
+
+ /**
+ * 18鍙锋秷璐规鏁�
+ */
+ public Integer times18;
+
+ /**
+ * 19鍙锋秷璐圭粺璁�
+ */
+ public Double amount19;
+
+ /**
+ * 19鍙锋秷璐规鏁�
+ */
+ public Integer times19;
+
+ /**
+ * 20鍙锋秷璐圭粺璁�
+ */
+ public Double amount20;
+
+ /**
+ * 20鍙锋秷璐规鏁�
+ */
+ public Integer times20;
+
+ /**
+ * 21鍙锋秷璐圭粺璁�
+ */
+ public Double amount21;
+
+ /**
+ * 21鍙锋秷璐规鏁�
+ */
+ public Integer times21;
+
+ /**
+ * 22鍙锋秷璐圭粺璁�
+ */
+ public Double amount22;
+
+ /**
+ * 22鍙锋秷璐规鏁�
+ */
+ public Integer times22;
+
+ /**
+ * 23鍙锋秷璐圭粺璁�
+ */
+ public Double amount23;
+
+ /**
+ * 23鍙锋秷璐规鏁�
+ */
+ public Integer times23;
+
+ /**
+ * 24鍙锋秷璐圭粺璁�
+ */
+ public Double amount24;
+
+ /**
+ * 24鍙锋秷璐规鏁�
+ */
+ public Integer times24;
+
+ /**
+ * 25鍙锋秷璐圭粺璁�
+ */
+ public Double amount25;
+
+ /**
+ * 25鍙锋秷璐规鏁�
+ */
+ public Integer times25;
+
+ /**
+ * 26鍙锋秷璐圭粺璁�
+ */
+ public Double amount26;
+
+ /**
+ * 26鍙锋秷璐规鏁�
+ */
+ public Integer times26;
+
+ /**
+ * 27鍙锋秷璐圭粺璁�
+ */
+ public Double amount27;
+
+ /**
+ * 27鍙锋秷璐规鏁�
+ */
+ public Integer times27;
+
+ /**
+ * 28鍙锋秷璐圭粺璁�
+ */
+ public Double amount28;
+
+ /**
+ * 28鍙锋秷璐规鏁�
+ */
+ public Integer times28;
+
+ /**
+ * 29鍙锋秷璐圭粺璁�
+ */
+ public Double amount29;
+
+ /**
+ * 29鍙锋秷璐规鏁�
+ */
+ public Integer times29;
+
+ /**
+ * 30鍙锋秷璐圭粺璁�
+ */
+ public Double amount30;
+
+ /**
+ * 30鍙锋秷璐规鏁�
+ */
+ public Integer times30;
+
+ /**
+ * 31鍙锋秷璐圭粺璁�
+ */
+ public Double amount31;
+
+ /**
+ * 31鍙锋秷璐规鏁�
+ */
+ public Integer times31;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientMonth.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientMonth.java
new file mode 100644
index 0000000..e66a59d
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientMonth.java
@@ -0,0 +1,159 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:08
+ * @Description
+ */
+
+@TableName(value="st_consume_client_month", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "鍐滄埛娑堣垂鏈堢粺璁�")
+public class StConsumeClientMonth implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251436001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 1鏈堟秷璐圭粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鏈堟秷璐规鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鏈堟秷璐圭粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鏈堟秷璐规鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鏈堟秷璐圭粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鏈堟秷璐规鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鏈堟秷璐圭粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鏈堟秷璐规鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鏈堟秷璐圭粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鏈堟秷璐规鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鏈堟秷璐圭粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鏈堟秷璐规鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鏈堟秷璐圭粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鏈堟秷璐规鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鏈堟秷璐圭粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鏈堟秷璐规鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鏈堟秷璐圭粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鏈堟秷璐规鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鏈堟秷璐圭粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鏈堟秷璐规鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鏈堟秷璐圭粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鏈堟秷璐规鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鏈堟秷璐圭粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鏈堟秷璐规鏁�
+ */
+ public Integer times12;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientYear.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientYear.java
new file mode 100644
index 0000000..f037965
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeClientYear.java
@@ -0,0 +1,50 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:08
+ * @Description
+ */
+
+@TableName(value="st_consume_client_year", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "鍐滄埛娑堣垂骞寸粺璁�")
+public class StConsumeClientYear implements BaseEntity {
+
+ public static final long serialVersionUID = 202412261637001L;
+
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 骞存秷璐圭粺璁�
+ */
+ public Double amount;
+
+ /**
+ * 骞存秷璐规鏁�
+ */
+ public Integer times;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcDay.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcDay.java
new file mode 100644
index 0000000..1c175ad
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcDay.java
@@ -0,0 +1,360 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:07
+ * @Description
+ */
+
+@TableName(value="st_consume_ic_day", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "IC鍗℃秷璐规棩缁熻")
+public class StConsumeIcDay implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251435001L;
+
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴稩C鍗�
+ */
+ public Long cardId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 鏈堜唤
+ */
+ public Integer month;
+
+ /**
+ * 1鍙锋秷璐圭粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鍙锋秷璐规鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鍙锋秷璐圭粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鍙锋秷璐规鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鍙锋秷璐圭粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鍙锋秷璐规鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鍙锋秷璐圭粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鍙锋秷璐规鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鍙锋秷璐圭粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鍙锋秷璐规鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鍙锋秷璐圭粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鍙锋秷璐规鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鍙锋秷璐圭粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鍙锋秷璐规鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鍙锋秷璐圭粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鍙锋秷璐规鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鍙锋秷璐圭粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鍙锋秷璐规鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鍙锋秷璐圭粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鍙锋秷璐规鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鍙锋秷璐圭粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鍙锋秷璐规鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鍙锋秷璐圭粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鍙锋秷璐规鏁�
+ */
+ public Integer times12;
+
+ /**
+ * 13鍙锋秷璐圭粺璁�
+ */
+ public Double amount13;
+
+ /**
+ * 13鍙锋秷璐规鏁�
+ */
+ public Integer times13;
+
+ /**
+ * 14鍙锋秷璐圭粺璁�
+ */
+ public Double amount14;
+
+ /**
+ * 14鍙锋秷璐规鏁�
+ */
+ public Integer times14;
+
+ /**
+ * 15鍙锋秷璐圭粺璁�
+ */
+ public Double amount15;
+
+ /**
+ * 15鍙锋秷璐规鏁�
+ */
+ public Integer times15;
+
+ /**
+ * 16鍙锋秷璐圭粺璁�
+ */
+ public Double amount16;
+
+ /**
+ * 16鍙锋秷璐规鏁�
+ */
+ public Integer times16;
+
+ /**
+ * 17鍙锋秷璐圭粺璁�
+ */
+ public Double amount17;
+
+ /**
+ * 17鍙锋秷璐规鏁�
+ */
+ public Integer times17;
+
+ /**
+ * 18鍙锋秷璐圭粺璁�
+ */
+ public Double amount18;
+
+ /**
+ * 18鍙锋秷璐规鏁�
+ */
+ public Integer times18;
+
+ /**
+ * 19鍙锋秷璐圭粺璁�
+ */
+ public Double amount19;
+
+ /**
+ * 19鍙锋秷璐规鏁�
+ */
+ public Integer times19;
+
+ /**
+ * 20鍙锋秷璐圭粺璁�
+ */
+ public Double amount20;
+
+ /**
+ * 20鍙锋秷璐规鏁�
+ */
+ public Integer times20;
+
+ /**
+ * 21鍙锋秷璐圭粺璁�
+ */
+ public Double amount21;
+
+ /**
+ * 21鍙锋秷璐规鏁�
+ */
+ public Integer times21;
+
+ /**
+ * 22鍙锋秷璐圭粺璁�
+ */
+ public Double amount22;
+
+ /**
+ * 22鍙锋秷璐规鏁�
+ */
+ public Integer times22;
+
+ /**
+ * 23鍙锋秷璐圭粺璁�
+ */
+ public Double amount23;
+
+ /**
+ * 23鍙锋秷璐规鏁�
+ */
+ public Integer times23;
+
+ /**
+ * 24鍙锋秷璐圭粺璁�
+ */
+ public Double amount24;
+
+ /**
+ * 24鍙锋秷璐规鏁�
+ */
+ public Integer times24;
+
+ /**
+ * 25鍙锋秷璐圭粺璁�
+ */
+ public Double amount25;
+
+ /**
+ * 25鍙锋秷璐规鏁�
+ */
+ public Integer times25;
+
+ /**
+ * 26鍙锋秷璐圭粺璁�
+ */
+ public Double amount26;
+
+ /**
+ * 26鍙锋秷璐规鏁�
+ */
+ public Integer times26;
+
+ /**
+ * 27鍙锋秷璐圭粺璁�
+ */
+ public Double amount27;
+
+ /**
+ * 27鍙锋秷璐规鏁�
+ */
+ public Integer times27;
+
+ /**
+ * 28鍙锋秷璐圭粺璁�
+ */
+ public Double amount28;
+
+ /**
+ * 28鍙锋秷璐规鏁�
+ */
+ public Integer times28;
+
+ /**
+ * 29鍙锋秷璐圭粺璁�
+ */
+ public Double amount29;
+
+ /**
+ * 29鍙锋秷璐规鏁�
+ */
+ public Integer times29;
+
+ /**
+ * 30鍙锋秷璐圭粺璁�
+ */
+ public Double amount30;
+
+ /**
+ * 30鍙锋秷璐规鏁�
+ */
+ public Integer times30;
+
+ /**
+ * 31鍙锋秷璐圭粺璁�
+ */
+ public Double amount31;
+
+ /**
+ * 31鍙锋秷璐规鏁�
+ */
+ public Integer times31;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcMonth.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcMonth.java
new file mode 100644
index 0000000..ff293de
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcMonth.java
@@ -0,0 +1,165 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:07
+ * @Description
+ */
+
+@TableName(value="st_consume_ic_month", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "IC鍗℃秷璐规湀缁熻")
+public class StConsumeIcMonth implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251434001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴稩C鍗�
+ */
+ public Long cardId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 1鏈堟秷璐圭粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鏈堟秷璐规鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鏈堟秷璐圭粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鏈堟秷璐规鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鏈堟秷璐圭粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鏈堟秷璐规鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鏈堟秷璐圭粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鏈堟秷璐规鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鏈堟秷璐圭粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鏈堟秷璐规鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鏈堟秷璐圭粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鏈堟秷璐规鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鏈堟秷璐圭粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鏈堟秷璐规鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鏈堟秷璐圭粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鏈堟秷璐规鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鏈堟秷璐圭粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鏈堟秷璐规鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鏈堟秷璐圭粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鏈堟秷璐规鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鏈堟秷璐圭粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鏈堟秷璐规鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鏈堟秷璐圭粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鏈堟秷璐规鏁�
+ */
+ public Integer times12;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcYear.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcYear.java
new file mode 100644
index 0000000..e5f4d04
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StConsumeIcYear.java
@@ -0,0 +1,52 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 18:07
+ * @Description
+ */
+@TableName(value="st_consume_ic_year", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "IC鍗℃秷璐瑰勾缁熻")
+public class StConsumeIcYear implements BaseEntity {
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴稩C鍗�
+ */
+ public Long cardId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 骞存秷璐圭粺璁�
+ */
+ public Double amount;
+
+ /**
+ * 骞存秷璐规鏁�
+ */
+ public Integer times;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientDay.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientDay.java
new file mode 100644
index 0000000..b8ea1ce
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientDay.java
@@ -0,0 +1,509 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/23 16:48
+ * @Description
+ */
+@TableName(value="st_recharge_client_day", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "鍐滄埛鍏呭�兼棩缁熻")
+public class StRechargeClientDay implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251433001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 鏈堜唤
+ */
+ public Integer month;
+
+ /**
+ * 1鍙峰厖鍊肩粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鍙疯禒閫佺粺璁�
+ */
+ public Double gift1;
+
+ /**
+ * 1鍙峰厖鍊兼鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鍙峰厖鍊肩粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鍙疯禒閫佺粺璁�
+ */
+ public Double gift2;
+
+ /**
+ * 2鍙峰厖鍊兼鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鍙峰厖鍊肩粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鍙疯禒閫佺粺璁�
+ */
+ public Double gift3;
+
+ /**
+ * 3鍙峰厖鍊兼鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鍙峰厖鍊肩粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鍙疯禒閫佺粺璁�
+ */
+ public Double gift4;
+
+ /**
+ * 4鍙峰厖鍊兼鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鍙峰厖鍊肩粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鍙疯禒閫佺粺璁�
+ */
+ public Double gift5;
+
+ /**
+ * 5鍙峰厖鍊兼鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鍙峰厖鍊肩粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鍙疯禒閫佺粺璁�
+ */
+ public Double gift6;
+
+ /**
+ * 6鍙峰厖鍊兼鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鍙峰厖鍊肩粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鍙疯禒閫佺粺璁�
+ */
+ public Double gift7;
+
+ /**
+ * 7鍙峰厖鍊兼鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鍙峰厖鍊肩粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鍙疯禒閫佺粺璁�
+ */
+ public Double gift8;
+
+ /**
+ * 8鍙峰厖鍊兼鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鍙峰厖鍊肩粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鍙疯禒閫佺粺璁�
+ */
+ public Double gift9;
+
+ /**
+ * 9鍙峰厖鍊兼鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鍙峰厖鍊肩粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鍙疯禒閫佺粺璁�
+ */
+ public Double gift10;
+
+ /**
+ * 10鍙峰厖鍊兼鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鍙峰厖鍊肩粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鍙疯禒閫佺粺璁�
+ */
+ public Double gift11;
+
+ /**
+ * 11鍙峰厖鍊兼鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鍙峰厖鍊肩粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鍙疯禒閫佺粺璁�
+ */
+ public Double gift12;
+
+ /**
+ * 12鍙峰厖鍊兼鏁�
+ */
+ public Integer times12;
+
+ /**
+ * 13鍙峰厖鍊肩粺璁�
+ */
+ public Double amount13;
+
+ /**
+ * 13鍙疯禒閫佺粺璁�
+ */
+ public Double gift13;
+
+ /**
+ * 13鍙峰厖鍊兼鏁�
+ */
+ public Integer times13;
+
+ /**
+ * 14鍙峰厖鍊肩粺璁�
+ */
+ public Double amount14;
+
+ /**
+ * 14鍙疯禒閫佺粺璁�
+ */
+ public Double gift14;
+
+ /**
+ * 14鍙峰厖鍊兼鏁�
+ */
+ public Integer times14;
+
+ /**
+ * 15鍙峰厖鍊肩粺璁�
+ */
+ public Double amount15;
+
+ /**
+ * 15鍙疯禒閫佺粺璁�
+ */
+ public Double gift15;
+
+ /**
+ * 15鍙峰厖鍊兼鏁�
+ */
+ public Integer times15;
+
+ /**
+ * 16鍙峰厖鍊肩粺璁�
+ */
+ public Double amount16;
+
+ /**
+ * 16鍙疯禒閫佺粺璁�
+ */
+ public Double gift16;
+
+ /**
+ * 16鍙峰厖鍊兼鏁�
+ */
+ public Integer times16;
+
+ /**
+ * 17鍙峰厖鍊肩粺璁�
+ */
+ public Double amount17;
+
+ /**
+ * 17鍙疯禒閫佺粺璁�
+ */
+ public Double gift17;
+
+ /**
+ * 17鍙峰厖鍊兼鏁�
+ */
+ public Integer times17;
+
+ /**
+ * 18鍙峰厖鍊肩粺璁�
+ */
+ public Double amount18;
+
+ /**
+ * 18鍙疯禒閫佺粺璁�
+ */
+ public Double gift18;
+
+ /**
+ * 18鍙峰厖鍊兼鏁�
+ */
+ public Integer times18;
+
+ /**
+ * 19鍙峰厖鍊肩粺璁�
+ */
+ public Double amount19;
+
+ /**
+ * 19鍙疯禒閫佺粺璁�
+ */
+ public Double gift19;
+
+ /**
+ * 19鍙峰厖鍊兼鏁�
+ */
+ public Integer times19;
+
+ /**
+ * 20鍙峰厖鍊肩粺璁�
+ */
+ public Double amount20;
+
+ /**
+ * 20鍙疯禒閫佺粺璁�
+ */
+ public Double gift20;
+
+ /**
+ * 20鍙峰厖鍊兼鏁�
+ */
+ public Integer times20;
+
+ /**
+ * 21鍙峰厖鍊肩粺璁�
+ */
+ public Double amount21;
+
+ /**
+ * 21鍙疯禒閫佺粺璁�
+ */
+ public Double gift21;
+
+ /**
+ * 21鍙峰厖鍊兼鏁�
+ */
+ public Integer times21;
+
+ /**
+ * 22鍙峰厖鍊肩粺璁�
+ */
+ public Double amount22;
+
+ /**
+ * 22鍙疯禒閫佺粺璁�
+ */
+ public Double gift22;
+
+ /**
+ * 22鍙峰厖鍊兼鏁�
+ */
+ public Integer times22;
+
+ /**
+ * 23鍙峰厖鍊肩粺璁�
+ */
+ public Double amount23;
+
+ /**
+ * 23鍙疯禒閫佺粺璁�
+ */
+ public Double gift23;
+
+ /**
+ * 23鍙峰厖鍊兼鏁�
+ */
+ public Integer times23;
+
+ /**
+ * 24鍙峰厖鍊肩粺璁�
+ */
+ public Double amount24;
+
+ /**
+ * 24鍙疯禒閫佺粺璁�
+ */
+ public Double gift24;
+
+ /**
+ * 24鍙峰厖鍊兼鏁�
+ */
+ public Integer times24;
+
+ /**
+ * 25鍙峰厖鍊肩粺璁�
+ */
+ public Double amount25;
+
+ /**
+ * 25鍙疯禒閫佺粺璁�
+ */
+ public Double gift25;
+
+ /**
+ * 25鍙峰厖鍊兼鏁�
+ */
+ public Integer times25;
+
+ /**
+ * 26鍙峰厖鍊肩粺璁�
+ */
+ public Double amount26;
+
+ /**
+ * 26鍙疯禒閫佺粺璁�
+ */
+ public Double gift26;
+
+ /**
+ * 26鍙峰厖鍊兼鏁�
+ */
+ public Integer times26;
+
+ /**
+ * 27鍙峰厖鍊肩粺璁�
+ */
+ public Double amount27;
+
+ /**
+ * 27鍙疯禒閫佺粺璁�
+ */
+ public Double gift27;
+
+ /**
+ * 27鍙峰厖鍊兼鏁�
+ */
+ public Integer times27;
+
+ /**
+ * 28鍙峰厖鍊肩粺璁�
+ */
+ public Double amount28;
+
+ /**
+ * 28鍙疯禒閫佺粺璁�
+ */
+ public Double gift28;
+
+ /**
+ * 28鍙峰厖鍊兼鏁�
+ */
+ public Integer times28;
+
+ /**
+ * 29鍙峰厖鍊肩粺璁�
+ */
+ public Double amount29;
+
+ /**
+ * 29鍙疯禒閫佺粺璁�
+ */
+ public Double gift29;
+
+ /**
+ * 29鍙峰厖鍊兼鏁�
+ */
+ public Integer times29;
+
+ /**
+ * 30鍙峰厖鍊肩粺璁�
+ */
+ public Double amount30;
+
+ /**
+ * 30鍙疯禒閫佺粺璁�
+ */
+ public Double gift30;
+
+ /**
+ * 30鍙峰厖鍊兼鏁�
+ */
+ public Integer times30;
+
+ /**
+ * 31鍙峰厖鍊肩粺璁�
+ */
+ public Double amount31;
+
+ /**
+ * 31鍙疯禒閫佺粺璁�
+ */
+ public Double gift31;
+
+ /**
+ * 31鍙峰厖鍊兼鏁�
+ */
+ public Integer times31;
+
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientMonth.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientMonth.java
new file mode 100644
index 0000000..ea5234b
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientMonth.java
@@ -0,0 +1,219 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 15:48
+ * @Description
+ */
+
+@TableName(value="st_recharge_client_month", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "鍐滄埛鍏呭�兼湀缁熻")
+public class StRechargeClientMonth implements BaseEntity {
+ public static final long serialVersionUID = 202412251550001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 1鏈堝厖鍊肩粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鏈堣禒閫佺粺璁�
+ */
+ public Double gift1;
+
+ /**
+ * 1鏈堝厖鍊兼鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鏈堝厖鍊肩粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鏈堣禒閫佺粺璁�
+ */
+ public Double gift2;
+
+ /**
+ * 2鏈堝厖鍊兼鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鏈堝厖鍊肩粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鏈堣禒閫佺粺璁�
+ */
+ public Double gift3;
+
+ /**
+ * 3鏈堝厖鍊兼鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鏈堝厖鍊肩粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鏈堣禒閫佺粺璁�
+ */
+ public Double gift4;
+
+ /**
+ * 4鏈堝厖鍊兼鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鏈堝厖鍊肩粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鏈堣禒閫佺粺璁�
+ */
+ public Double gift5;
+
+ /**
+ * 5鏈堝厖鍊兼鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鏈堝厖鍊肩粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鏈堣禒閫佺粺璁�
+ */
+ public Double gift6;
+
+ /**
+ * 6鏈堝厖鍊兼鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鏈堝厖鍊肩粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鏈堣禒閫佺粺璁�
+ */
+ public Double gift7;
+
+ /**
+ * 7鏈堝厖鍊兼鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鏈堝厖鍊肩粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鏈堣禒閫佺粺璁�
+ */
+ public Double gift8;
+
+ /**
+ * 8鏈堝厖鍊兼鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鏈堝厖鍊肩粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鏈堣禒閫佺粺璁�
+ */
+ public Double gift9;
+
+ /**
+ * 9鏈堝厖鍊兼鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鏈堝厖鍊肩粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鏈堣禒閫佺粺璁�
+ */
+ public Double gift10;
+
+ /**
+ * 10鏈堝厖鍊兼鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鏈堝厖鍊肩粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鏈堣禒閫佺粺璁�
+ */
+ public Double gift11;
+
+ /**
+ * 11鏈堝厖鍊兼鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鏈堝厖鍊肩粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鏈堣禒閫佺粺璁�
+ */
+ public Double gift12;
+
+ /**
+ * 12鏈堝厖鍊兼鏁�
+ */
+ public Integer times12;
+
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientYear.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientYear.java
new file mode 100644
index 0000000..a09b85a
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeClientYear.java
@@ -0,0 +1,54 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 15:27
+ * @Description
+ */
+@TableName(value="st_recharge_client_year", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "鍐滄埛鍏呭�煎勾缁熻")
+public class StRechargeClientYear implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251528001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 骞村厖鍊肩粺璁�
+ */
+ public Double amount;
+
+ /**
+ * 骞磋禒閫佺粺璁�
+ */
+ public Double gift;
+
+ /**
+ * 骞村厖鍊兼鏁�
+ */
+ public Integer times;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcDay.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcDay.java
new file mode 100644
index 0000000..c9129ec
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcDay.java
@@ -0,0 +1,514 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/24 14:53
+ * @Description
+ */
+
+@TableName(value="st_recharge_ic_day", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "IC鍗″厖鍊兼棩缁熻")
+public class StRechargeIcDay implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251428001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴稩C鍗�
+ */
+ public Long cardId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 鏈堜唤
+ */
+ public Integer month;
+
+ /**
+ * 1鍙峰厖鍊肩粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鍙疯禒閫佺粺璁�
+ */
+ public Double gift1;
+
+ /**
+ * 1鍙峰厖鍊兼鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鍙峰厖鍊肩粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鍙疯禒閫佺粺璁�
+ */
+ public Double gift2;
+
+ /**
+ * 2鍙峰厖鍊兼鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鍙峰厖鍊肩粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鍙疯禒閫佺粺璁�
+ */
+ public Double gift3;
+
+ /**
+ * 3鍙峰厖鍊兼鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鍙峰厖鍊肩粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鍙疯禒閫佺粺璁�
+ */
+ public Double gift4;
+
+ /**
+ * 4鍙峰厖鍊兼鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鍙峰厖鍊肩粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鍙疯禒閫佺粺璁�
+ */
+ public Double gift5;
+
+ /**
+ * 5鍙峰厖鍊兼鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鍙峰厖鍊肩粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鍙疯禒閫佺粺璁�
+ */
+ public Double gift6;
+
+ /**
+ * 6鍙峰厖鍊兼鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鍙峰厖鍊肩粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鍙疯禒閫佺粺璁�
+ */
+ public Double gift7;
+
+ /**
+ * 7鍙峰厖鍊兼鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鍙峰厖鍊肩粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鍙疯禒閫佺粺璁�
+ */
+ public Double gift8;
+
+ /**
+ * 8鍙峰厖鍊兼鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鍙峰厖鍊肩粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鍙疯禒閫佺粺璁�
+ */
+ public Double gift9;
+
+ /**
+ * 9鍙峰厖鍊兼鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鍙峰厖鍊肩粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鍙疯禒閫佺粺璁�
+ */
+ public Double gift10;
+
+ /**
+ * 10鍙峰厖鍊兼鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鍙峰厖鍊肩粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鍙疯禒閫佺粺璁�
+ */
+ public Double gift11;
+
+ /**
+ * 11鍙峰厖鍊兼鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鍙峰厖鍊肩粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鍙疯禒閫佺粺璁�
+ */
+ public Double gift12;
+
+ /**
+ * 12鍙峰厖鍊兼鏁�
+ */
+ public Integer times12;
+
+ /**
+ * 13鍙峰厖鍊肩粺璁�
+ */
+ public Double amount13;
+
+ /**
+ * 13鍙疯禒閫佺粺璁�
+ */
+ public Double gift13;
+
+ /**
+ * 13鍙峰厖鍊兼鏁�
+ */
+ public Integer times13;
+
+ /**
+ * 14鍙峰厖鍊肩粺璁�
+ */
+ public Double amount14;
+
+ /**
+ * 14鍙疯禒閫佺粺璁�
+ */
+ public Double gift14;
+
+ /**
+ * 14鍙峰厖鍊兼鏁�
+ */
+ public Integer times14;
+
+ /**
+ * 15鍙峰厖鍊肩粺璁�
+ */
+ public Double amount15;
+
+ /**
+ * 15鍙疯禒閫佺粺璁�
+ */
+ public Double gift15;
+
+ /**
+ * 15鍙峰厖鍊兼鏁�
+ */
+ public Integer times15;
+
+ /**
+ * 16鍙峰厖鍊肩粺璁�
+ */
+ public Double amount16;
+
+ /**
+ * 16鍙疯禒閫佺粺璁�
+ */
+ public Double gift16;
+
+ /**
+ * 16鍙峰厖鍊兼鏁�
+ */
+ public Integer times16;
+
+ /**
+ * 17鍙峰厖鍊肩粺璁�
+ */
+ public Double amount17;
+
+ /**
+ * 17鍙疯禒閫佺粺璁�
+ */
+ public Double gift17;
+
+ /**
+ * 17鍙峰厖鍊兼鏁�
+ */
+ public Integer times17;
+
+ /**
+ * 18鍙峰厖鍊肩粺璁�
+ */
+ public Double amount18;
+
+ /**
+ * 18鍙疯禒閫佺粺璁�
+ */
+ public Double gift18;
+
+ /**
+ * 18鍙峰厖鍊兼鏁�
+ */
+ public Integer times18;
+
+ /**
+ * 19鍙峰厖鍊肩粺璁�
+ */
+ public Double amount19;
+
+ /**
+ * 19鍙疯禒閫佺粺璁�
+ */
+ public Double gift19;
+
+ /**
+ * 19鍙峰厖鍊兼鏁�
+ */
+ public Integer times19;
+
+ /**
+ * 20鍙峰厖鍊肩粺璁�
+ */
+ public Double amount20;
+
+ /**
+ * 20鍙疯禒閫佺粺璁�
+ */
+ public Double gift20;
+
+ /**
+ * 20鍙峰厖鍊兼鏁�
+ */
+ public Integer times20;
+
+ /**
+ * 21鍙峰厖鍊肩粺璁�
+ */
+ public Double amount21;
+
+ /**
+ * 21鍙疯禒閫佺粺璁�
+ */
+ public Double gift21;
+
+ /**
+ * 21鍙峰厖鍊兼鏁�
+ */
+ public Integer times21;
+
+ /**
+ * 22鍙峰厖鍊肩粺璁�
+ */
+ public Double amount22;
+
+ /**
+ * 22鍙疯禒閫佺粺璁�
+ */
+ public Double gift22;
+
+ /**
+ * 22鍙峰厖鍊兼鏁�
+ */
+ public Integer times22;
+
+ /**
+ * 23鍙峰厖鍊肩粺璁�
+ */
+ public Double amount23;
+
+ /**
+ * 23鍙疯禒閫佺粺璁�
+ */
+ public Double gift23;
+
+ /**
+ * 23鍙峰厖鍊兼鏁�
+ */
+ public Integer times23;
+
+ /**
+ * 24鍙峰厖鍊肩粺璁�
+ */
+ public Double amount24;
+
+ /**
+ * 24鍙疯禒閫佺粺璁�
+ */
+ public Double gift24;
+
+ /**
+ * 24鍙峰厖鍊兼鏁�
+ */
+ public Integer times24;
+
+ /**
+ * 25鍙峰厖鍊肩粺璁�
+ */
+ public Double amount25;
+
+ /**
+ * 25鍙疯禒閫佺粺璁�
+ */
+ public Double gift25;
+
+ /**
+ * 25鍙峰厖鍊兼鏁�
+ */
+ public Integer times25;
+
+ /**
+ * 26鍙峰厖鍊肩粺璁�
+ */
+ public Double amount26;
+
+ /**
+ * 26鍙疯禒閫佺粺璁�
+ */
+ public Double gift26;
+
+ /**
+ * 26鍙峰厖鍊兼鏁�
+ */
+ public Integer times26;
+
+ /**
+ * 27鍙峰厖鍊肩粺璁�
+ */
+ public Double amount27;
+
+ /**
+ * 27鍙疯禒閫佺粺璁�
+ */
+ public Double gift27;
+
+ /**
+ * 27鍙峰厖鍊兼鏁�
+ */
+ public Integer times27;
+
+ /**
+ * 28鍙峰厖鍊肩粺璁�
+ */
+ public Double amount28;
+
+ /**
+ * 28鍙疯禒閫佺粺璁�
+ */
+ public Double gift28;
+
+ /**
+ * 28鍙峰厖鍊兼鏁�
+ */
+ public Integer times28;
+
+ /**
+ * 29鍙峰厖鍊肩粺璁�
+ */
+ public Double amount29;
+
+ /**
+ * 29鍙疯禒閫佺粺璁�
+ */
+ public Double gift29;
+
+ /**
+ * 29鍙峰厖鍊兼鏁�
+ */
+ public Integer times29;
+
+ /**
+ * 30鍙峰厖鍊肩粺璁�
+ */
+ public Double amount30;
+
+ /**
+ * 30鍙疯禒閫佺粺璁�
+ */
+ public Double gift30;
+
+ /**
+ * 30鍙峰厖鍊兼鏁�
+ */
+ public Integer times30;
+
+ /**
+ * 31鍙峰厖鍊肩粺璁�
+ */
+ public Double amount31;
+
+ /**
+ * 31鍙疯禒閫佺粺璁�
+ */
+ public Double gift31;
+
+ /**
+ * 31鍙峰厖鍊兼鏁�
+ */
+ public Integer times31;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcMonth.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcMonth.java
new file mode 100644
index 0000000..c79cae2
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcMonth.java
@@ -0,0 +1,225 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/24 17:04
+ * @Description
+ */
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+
+@TableName(value="st_recharge_ic_month", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "IC鍗″厖鍊兼湀缁熻")
+public class StRechargeIcMonth implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251427001L;
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴稩C鍗�
+ */
+ public Long cardId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 1鏈堝厖鍊肩粺璁�
+ */
+ public Double amount1;
+
+ /**
+ * 1鏈堣禒閫佺粺璁�
+ */
+ public Double gift1;
+
+ /**
+ * 1鏈堝厖鍊兼鏁�
+ */
+ public Integer times1;
+
+ /**
+ * 2鏈堝厖鍊肩粺璁�
+ */
+ public Double amount2;
+
+ /**
+ * 2鏈堣禒閫佺粺璁�
+ */
+ public Double gift2;
+
+ /**
+ * 2鏈堝厖鍊兼鏁�
+ */
+ public Integer times2;
+
+ /**
+ * 3鏈堝厖鍊肩粺璁�
+ */
+ public Double amount3;
+
+ /**
+ * 3鏈堣禒閫佺粺璁�
+ */
+ public Double gift3;
+
+ /**
+ * 3鏈堝厖鍊兼鏁�
+ */
+ public Integer times3;
+
+ /**
+ * 4鏈堝厖鍊肩粺璁�
+ */
+ public Double amount4;
+
+ /**
+ * 4鏈堣禒閫佺粺璁�
+ */
+ public Double gift4;
+
+ /**
+ * 4鏈堝厖鍊兼鏁�
+ */
+ public Integer times4;
+
+ /**
+ * 5鏈堝厖鍊肩粺璁�
+ */
+ public Double amount5;
+
+ /**
+ * 5鏈堣禒閫佺粺璁�
+ */
+ public Double gift5;
+
+ /**
+ * 5鏈堝厖鍊兼鏁�
+ */
+ public Integer times5;
+
+ /**
+ * 6鏈堝厖鍊肩粺璁�
+ */
+ public Double amount6;
+
+ /**
+ * 6鏈堣禒閫佺粺璁�
+ */
+ public Double gift6;
+
+ /**
+ * 6鏈堝厖鍊兼鏁�
+ */
+ public Integer times6;
+
+ /**
+ * 7鏈堝厖鍊肩粺璁�
+ */
+ public Double amount7;
+
+ /**
+ * 7鏈堣禒閫佺粺璁�
+ */
+ public Double gift7;
+
+ /**
+ * 7鏈堝厖鍊兼鏁�
+ */
+ public Integer times7;
+
+ /**
+ * 8鏈堝厖鍊肩粺璁�
+ */
+ public Double amount8;
+
+ /**
+ * 8鏈堣禒閫佺粺璁�
+ */
+ public Double gift8;
+
+ /**
+ * 8鏈堝厖鍊兼鏁�
+ */
+ public Integer times8;
+
+ /**
+ * 9鏈堝厖鍊肩粺璁�
+ */
+ public Double amount9;
+
+ /**
+ * 9鏈堣禒閫佺粺璁�
+ */
+ public Double gift9;
+
+ /**
+ * 9鏈堝厖鍊兼鏁�
+ */
+ public Integer times9;
+
+ /**
+ * 10鏈堝厖鍊肩粺璁�
+ */
+ public Double amount10;
+
+ /**
+ * 10鏈堣禒閫佺粺璁�
+ */
+ public Double gift10;
+
+ /**
+ * 10鏈堝厖鍊兼鏁�
+ */
+ public Integer times10;
+
+ /**
+ * 11鏈堝厖鍊肩粺璁�
+ */
+ public Double amount11;
+
+ /**
+ * 11鏈堣禒閫佺粺璁�
+ */
+ public Double gift11;
+
+ /**
+ * 11鏈堝厖鍊兼鏁�
+ */
+ public Integer times11;
+
+ /**
+ * 12鏈堝厖鍊肩粺璁�
+ */
+ public Double amount12;
+
+ /**
+ * 12鏈堣禒閫佺粺璁�
+ */
+ public Double gift12;
+
+ /**
+ * 12鏈堝厖鍊兼鏁�
+ */
+ public Integer times12;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcYear.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcYear.java
new file mode 100644
index 0000000..cd47d8e
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoSt/StRechargeIcYear.java
@@ -0,0 +1,61 @@
+package com.dy.pipIrrGlobal.pojoSt;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.*;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/25 14:52
+ * @Description
+ */
+
+
+@TableName(value="st_recharge_ic_year", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@Schema(name = "IC鍗″厖鍊煎勾缁熻")
+public class StRechargeIcYear implements BaseEntity {
+
+ public static final long serialVersionUID = 202412251453001L;
+
+ /**
+ * 涓婚敭
+ */
+ public Long id;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴�
+ */
+ public Long clientId;
+
+ /**
+ * 澶栭敭锛屾寚鍚戝啘鎴稩C鍗�
+ */
+ public Long cardId;
+
+ /**
+ * 骞村害
+ */
+ public Integer year;
+
+ /**
+ * 骞村厖鍊肩粺璁�
+ */
+ public Double amount;
+
+ /**
+ * 骞磋禒閫佺粺璁�
+ */
+ public Double gift;
+
+ /**
+ * 骞村厖鍊兼鏁�
+ */
+ public Integer times;
+
+}
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientDayMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientDayMapper.xml
new file mode 100644
index 0000000..dd8e58a
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientDayMapper.xml
@@ -0,0 +1,857 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StConsumeClientDayMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay">
+ <!--@mbg.generated-->
+ <!--@Table st_consume_client_day-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="month" jdbcType="INTEGER" property="month" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ <result column="amount13" jdbcType="FLOAT" property="amount13" />
+ <result column="times13" jdbcType="INTEGER" property="times13" />
+ <result column="amount14" jdbcType="FLOAT" property="amount14" />
+ <result column="times14" jdbcType="INTEGER" property="times14" />
+ <result column="amount15" jdbcType="FLOAT" property="amount15" />
+ <result column="times15" jdbcType="INTEGER" property="times15" />
+ <result column="amount16" jdbcType="FLOAT" property="amount16" />
+ <result column="times16" jdbcType="INTEGER" property="times16" />
+ <result column="amount17" jdbcType="FLOAT" property="amount17" />
+ <result column="times17" jdbcType="INTEGER" property="times17" />
+ <result column="amount18" jdbcType="FLOAT" property="amount18" />
+ <result column="times18" jdbcType="INTEGER" property="times18" />
+ <result column="amount19" jdbcType="FLOAT" property="amount19" />
+ <result column="times19" jdbcType="INTEGER" property="times19" />
+ <result column="amount20" jdbcType="FLOAT" property="amount20" />
+ <result column="times20" jdbcType="INTEGER" property="times20" />
+ <result column="amount21" jdbcType="FLOAT" property="amount21" />
+ <result column="times21" jdbcType="INTEGER" property="times21" />
+ <result column="amount22" jdbcType="FLOAT" property="amount22" />
+ <result column="times22" jdbcType="INTEGER" property="times22" />
+ <result column="amount23" jdbcType="FLOAT" property="amount23" />
+ <result column="times23" jdbcType="INTEGER" property="times23" />
+ <result column="amount24" jdbcType="FLOAT" property="amount24" />
+ <result column="times24" jdbcType="INTEGER" property="times24" />
+ <result column="amount25" jdbcType="FLOAT" property="amount25" />
+ <result column="times25" jdbcType="INTEGER" property="times25" />
+ <result column="amount26" jdbcType="FLOAT" property="amount26" />
+ <result column="times26" jdbcType="INTEGER" property="times26" />
+ <result column="amount27" jdbcType="FLOAT" property="amount27" />
+ <result column="times27" jdbcType="INTEGER" property="times27" />
+ <result column="amount28" jdbcType="FLOAT" property="amount28" />
+ <result column="times28" jdbcType="INTEGER" property="times28" />
+ <result column="amount29" jdbcType="FLOAT" property="amount29" />
+ <result column="times29" jdbcType="INTEGER" property="times29" />
+ <result column="amount30" jdbcType="FLOAT" property="amount30" />
+ <result column="times30" jdbcType="INTEGER" property="times30" />
+ <result column="amount31" jdbcType="FLOAT" property="amount31" />
+ <result column="times31" jdbcType="INTEGER" property="times31" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, `year`, `month`, amount1, times1, amount2, times2, amount3, times3,
+ amount4, times4, amount5, times5, amount6, times6, amount7, times7, amount8, times8,
+ amount9, times9, amount10, times10, amount11, times11, amount12, times12, amount13,
+ times13, amount14, times14, amount15, times15, amount16, times16, amount17, times17,
+ amount18, times18, amount19, times19, amount20, times20, amount21, times21, amount22,
+ times22, amount23, times23, amount24, times24, amount25, times25, amount26, times26,
+ amount27, times27, amount28, times28, amount29, times29, amount30, times30, amount31,
+ times31
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_client_day
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_consume_client_day
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay">
+ <!--@mbg.generated-->
+ insert into st_consume_client_day (id, client_id, `year`,
+ `month`, amount1, times1,
+ amount2, times2, amount3,
+ times3, amount4, times4,
+ amount5, times5, amount6,
+ times6, amount7, times7,
+ amount8, times8, amount9,
+ times9, amount10, times10,
+ amount11, times11, amount12,
+ times12, amount13, times13,
+ amount14, times14, amount15,
+ times15, amount16, times16,
+ amount17, times17, amount18,
+ times18, amount19, times19,
+ amount20, times20, amount21,
+ times21, amount22, times22,
+ amount23, times23, amount24,
+ times24, amount25, times25,
+ amount26, times26, amount27,
+ times27, amount28, times28,
+ amount29, times29, amount30,
+ times30, amount31, times31
+ )
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER},
+ #{month,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER},
+ #{amount2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER}, #{amount3,jdbcType=FLOAT},
+ #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER},
+ #{amount5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER}, #{amount6,jdbcType=FLOAT},
+ #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER},
+ #{amount8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER}, #{amount9,jdbcType=FLOAT},
+ #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER},
+ #{amount11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER}, #{amount12,jdbcType=FLOAT},
+ #{times12,jdbcType=INTEGER}, #{amount13,jdbcType=FLOAT}, #{times13,jdbcType=INTEGER},
+ #{amount14,jdbcType=FLOAT}, #{times14,jdbcType=INTEGER}, #{amount15,jdbcType=FLOAT},
+ #{times15,jdbcType=INTEGER}, #{amount16,jdbcType=FLOAT}, #{times16,jdbcType=INTEGER},
+ #{amount17,jdbcType=FLOAT}, #{times17,jdbcType=INTEGER}, #{amount18,jdbcType=FLOAT},
+ #{times18,jdbcType=INTEGER}, #{amount19,jdbcType=FLOAT}, #{times19,jdbcType=INTEGER},
+ #{amount20,jdbcType=FLOAT}, #{times20,jdbcType=INTEGER}, #{amount21,jdbcType=FLOAT},
+ #{times21,jdbcType=INTEGER}, #{amount22,jdbcType=FLOAT}, #{times22,jdbcType=INTEGER},
+ #{amount23,jdbcType=FLOAT}, #{times23,jdbcType=INTEGER}, #{amount24,jdbcType=FLOAT},
+ #{times24,jdbcType=INTEGER}, #{amount25,jdbcType=FLOAT}, #{times25,jdbcType=INTEGER},
+ #{amount26,jdbcType=FLOAT}, #{times26,jdbcType=INTEGER}, #{amount27,jdbcType=FLOAT},
+ #{times27,jdbcType=INTEGER}, #{amount28,jdbcType=FLOAT}, #{times28,jdbcType=INTEGER},
+ #{amount29,jdbcType=FLOAT}, #{times29,jdbcType=INTEGER}, #{amount30,jdbcType=FLOAT},
+ #{times30,jdbcType=INTEGER}, #{amount31,jdbcType=FLOAT}, #{times31,jdbcType=INTEGER}
+ )
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay">
+ <!--@mbg.generated-->
+ insert into st_consume_client_day
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="month != null">
+ `month`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ <if test="amount13 != null">
+ amount13,
+ </if>
+ <if test="times13 != null">
+ times13,
+ </if>
+ <if test="amount14 != null">
+ amount14,
+ </if>
+ <if test="times14 != null">
+ times14,
+ </if>
+ <if test="amount15 != null">
+ amount15,
+ </if>
+ <if test="times15 != null">
+ times15,
+ </if>
+ <if test="amount16 != null">
+ amount16,
+ </if>
+ <if test="times16 != null">
+ times16,
+ </if>
+ <if test="amount17 != null">
+ amount17,
+ </if>
+ <if test="times17 != null">
+ times17,
+ </if>
+ <if test="amount18 != null">
+ amount18,
+ </if>
+ <if test="times18 != null">
+ times18,
+ </if>
+ <if test="amount19 != null">
+ amount19,
+ </if>
+ <if test="times19 != null">
+ times19,
+ </if>
+ <if test="amount20 != null">
+ amount20,
+ </if>
+ <if test="times20 != null">
+ times20,
+ </if>
+ <if test="amount21 != null">
+ amount21,
+ </if>
+ <if test="times21 != null">
+ times21,
+ </if>
+ <if test="amount22 != null">
+ amount22,
+ </if>
+ <if test="times22 != null">
+ times22,
+ </if>
+ <if test="amount23 != null">
+ amount23,
+ </if>
+ <if test="times23 != null">
+ times23,
+ </if>
+ <if test="amount24 != null">
+ amount24,
+ </if>
+ <if test="times24 != null">
+ times24,
+ </if>
+ <if test="amount25 != null">
+ amount25,
+ </if>
+ <if test="times25 != null">
+ times25,
+ </if>
+ <if test="amount26 != null">
+ amount26,
+ </if>
+ <if test="times26 != null">
+ times26,
+ </if>
+ <if test="amount27 != null">
+ amount27,
+ </if>
+ <if test="times27 != null">
+ times27,
+ </if>
+ <if test="amount28 != null">
+ amount28,
+ </if>
+ <if test="times28 != null">
+ times28,
+ </if>
+ <if test="amount29 != null">
+ amount29,
+ </if>
+ <if test="times29 != null">
+ times29,
+ </if>
+ <if test="amount30 != null">
+ amount30,
+ </if>
+ <if test="times30 != null">
+ times30,
+ </if>
+ <if test="amount31 != null">
+ amount31,
+ </if>
+ <if test="times31 != null">
+ times31,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ #{times31,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay">
+ <!--@mbg.generated-->
+ update st_consume_client_day
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ `month` = #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ amount13 = #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ times13 = #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ amount14 = #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ times14 = #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ amount15 = #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ times15 = #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ amount16 = #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ times16 = #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ amount17 = #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ times17 = #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ amount18 = #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ times18 = #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ amount19 = #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ times19 = #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ amount20 = #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ times20 = #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ amount21 = #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ times21 = #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ amount22 = #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ times22 = #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ amount23 = #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ times23 = #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ amount24 = #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ times24 = #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ amount25 = #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ times25 = #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ amount26 = #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ times26 = #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ amount27 = #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ times27 = #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ amount28 = #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ times28 = #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ amount29 = #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ times29 = #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ amount30 = #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ times30 = #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ amount31 = #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ times31 = #{times31,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay">
+ <!--@mbg.generated-->
+ update st_consume_client_day
+ set client_id = #{clientId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ `month` = #{month,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER},
+ amount13 = #{amount13,jdbcType=FLOAT},
+ times13 = #{times13,jdbcType=INTEGER},
+ amount14 = #{amount14,jdbcType=FLOAT},
+ times14 = #{times14,jdbcType=INTEGER},
+ amount15 = #{amount15,jdbcType=FLOAT},
+ times15 = #{times15,jdbcType=INTEGER},
+ amount16 = #{amount16,jdbcType=FLOAT},
+ times16 = #{times16,jdbcType=INTEGER},
+ amount17 = #{amount17,jdbcType=FLOAT},
+ times17 = #{times17,jdbcType=INTEGER},
+ amount18 = #{amount18,jdbcType=FLOAT},
+ times18 = #{times18,jdbcType=INTEGER},
+ amount19 = #{amount19,jdbcType=FLOAT},
+ times19 = #{times19,jdbcType=INTEGER},
+ amount20 = #{amount20,jdbcType=FLOAT},
+ times20 = #{times20,jdbcType=INTEGER},
+ amount21 = #{amount21,jdbcType=FLOAT},
+ times21 = #{times21,jdbcType=INTEGER},
+ amount22 = #{amount22,jdbcType=FLOAT},
+ times22 = #{times22,jdbcType=INTEGER},
+ amount23 = #{amount23,jdbcType=FLOAT},
+ times23 = #{times23,jdbcType=INTEGER},
+ amount24 = #{amount24,jdbcType=FLOAT},
+ times24 = #{times24,jdbcType=INTEGER},
+ amount25 = #{amount25,jdbcType=FLOAT},
+ times25 = #{times25,jdbcType=INTEGER},
+ amount26 = #{amount26,jdbcType=FLOAT},
+ times26 = #{times26,jdbcType=INTEGER},
+ amount27 = #{amount27,jdbcType=FLOAT},
+ times27 = #{times27,jdbcType=INTEGER},
+ amount28 = #{amount28,jdbcType=FLOAT},
+ times28 = #{times28,jdbcType=INTEGER},
+ amount29 = #{amount29,jdbcType=FLOAT},
+ times29 = #{times29,jdbcType=INTEGER},
+ amount30 = #{amount30,jdbcType=FLOAT},
+ times30 = #{times30,jdbcType=INTEGER},
+ amount31 = #{amount31,jdbcType=FLOAT},
+ times31 = #{times31,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByClient" resultType="com.dy.pipIrrGlobal.voSt.VoClientConsumeStatistics">
+ select client_id as clientId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0) + IFNULL(amount13,0) + IFNULL(amount14,0) + IFNULL(amount15,0) + IFNULL(amount16,0) + IFNULL(amount17,0) + IFNULL(amount18,0) + IFNULL(amount19,0) +
+ IFNULL(amount20,0) + IFNULL(amount21,0) + IFNULL(amount22,0) + IFNULL(amount23,0) + IFNULL(amount24,0) + IFNULL(amount25,0) + IFNULL(amount26,0) + IFNULL(amount27,0) + IFNULL(amount28,0) + IFNULL(amount29,0) +
+ IFNULL(amount30,0) + IFNULL(amount31,0)
+ ) as amount,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0) + IFNULL(times13,0) + IFNULL(times14,0) + IFNULL(times15,0) + IFNULL(times16,0) + IFNULL(times17,0) + IFNULL(times18,0) + IFNULL(times19,0) +
+ IFNULL(times20,0) + IFNULL(times21,0) + IFNULL(times22,0) + IFNULL(times23,0) + IFNULL(times24,0) + IFNULL(times25,0) + IFNULL(times26,0) + IFNULL(times27,0) + IFNULL(times28,0) + IFNULL(times29,0) +
+ IFNULL(times30,0) + IFNULL(times31,0)
+ ) as times
+ from st_consume_client_day
+ where year = #{year, jdbcType=INTEGER}
+ and month = #{month, jdbcType=INTEGER}
+ group by client_id
+ </select>
+
+ <select id="selectByClientAndYearAndMonth" resultType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientDay">
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_client_day
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ and month = #{month,jdbcType=INTEGER}
+ </select>
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientMonthMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientMonthMapper.xml
new file mode 100644
index 0000000..3a94de9
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientMonthMapper.xml
@@ -0,0 +1,391 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StConsumeClientMonthMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth">
+ <!--@mbg.generated-->
+ <!--@Table st_consume_client_month-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, `year`, amount1, times1, amount2, times2, amount3, times3, amount4,
+ times4, amount5, times5, amount6, times6, amount7, times7, amount8, times8, amount9,
+ times9, amount10, times10, amount11, times11, amount12, times12
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_client_month
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_consume_client_month
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth">
+ <!--@mbg.generated-->
+ insert into st_consume_client_month (id, client_id, `year`,
+ amount1, times1, amount2,
+ times2, amount3, times3,
+ amount4, times4, amount5,
+ times5, amount6, times6,
+ amount7, times7, amount8,
+ times8, amount9, times9,
+ amount10, times10, amount11,
+ times11, amount12, times12
+ )
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER},
+ #{amount1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER}, #{amount2,jdbcType=FLOAT},
+ #{times2,jdbcType=INTEGER}, #{amount3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER},
+ #{amount4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER}, #{amount5,jdbcType=FLOAT},
+ #{times5,jdbcType=INTEGER}, #{amount6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER},
+ #{amount7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER}, #{amount8,jdbcType=FLOAT},
+ #{times8,jdbcType=INTEGER}, #{amount9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER},
+ #{amount10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER}, #{amount11,jdbcType=FLOAT},
+ #{times11,jdbcType=INTEGER}, #{amount12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}
+ )
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth">
+ <!--@mbg.generated-->
+ insert into st_consume_client_month
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth">
+ <!--@mbg.generated-->
+ update st_consume_client_month
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth">
+ <!--@mbg.generated-->
+ update st_consume_client_month
+ set client_id = #{clientId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByClient" resultType="com.dy.pipIrrGlobal.voSt.VoClientConsumeStatistics">
+ select client_id as clientId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0)
+ ) as amount,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0)
+ ) as times
+ from st_consume_client_month
+ where year = #{year, jdbcType=INTEGER}
+ group by client_id
+ </select>
+
+ <select id="selectByClientAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientMonth">
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_client_month
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientYearMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientYearMapper.xml
new file mode 100644
index 0000000..3172f3d
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeClientYearMapper.xml
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StConsumeClientYearMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear">
+ <!--@mbg.generated-->
+ <!--@Table st_consume_client_year-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount" jdbcType="FLOAT" property="amount" />
+ <result column="times" jdbcType="INTEGER" property="times" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, `year`, amount, times
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_client_year
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_consume_client_year
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear">
+ <!--@mbg.generated-->
+ insert into st_consume_client_year (id, client_id, `year`,
+ amount, times)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER},
+ #{amount,jdbcType=FLOAT}, #{times,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear">
+ <!--@mbg.generated-->
+ insert into st_consume_client_year
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount != null">
+ amount,
+ </if>
+ <if test="times != null">
+ times,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ #{times,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear">
+ <!--@mbg.generated-->
+ update st_consume_client_year
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ amount = #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ times = #{times,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear">
+ <!--@mbg.generated-->
+ update st_consume_client_year
+ set client_id = #{clientId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount = #{amount,jdbcType=FLOAT},
+ times = #{times,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="selectByClientAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StConsumeClientYear">
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_year
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcDayMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcDayMapper.xml
new file mode 100644
index 0000000..3521c5d
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcDayMapper.xml
@@ -0,0 +1,870 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StConsumeIcDayMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay">
+ <!--@mbg.generated-->
+ <!--@Table st_consume_ic_day-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="card_id" jdbcType="BIGINT" property="cardId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="month" jdbcType="INTEGER" property="month" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ <result column="amount13" jdbcType="FLOAT" property="amount13" />
+ <result column="times13" jdbcType="INTEGER" property="times13" />
+ <result column="amount14" jdbcType="FLOAT" property="amount14" />
+ <result column="times14" jdbcType="INTEGER" property="times14" />
+ <result column="amount15" jdbcType="FLOAT" property="amount15" />
+ <result column="times15" jdbcType="INTEGER" property="times15" />
+ <result column="amount16" jdbcType="FLOAT" property="amount16" />
+ <result column="times16" jdbcType="INTEGER" property="times16" />
+ <result column="amount17" jdbcType="FLOAT" property="amount17" />
+ <result column="times17" jdbcType="INTEGER" property="times17" />
+ <result column="amount18" jdbcType="FLOAT" property="amount18" />
+ <result column="times18" jdbcType="INTEGER" property="times18" />
+ <result column="amount19" jdbcType="FLOAT" property="amount19" />
+ <result column="times19" jdbcType="INTEGER" property="times19" />
+ <result column="amount20" jdbcType="FLOAT" property="amount20" />
+ <result column="times20" jdbcType="INTEGER" property="times20" />
+ <result column="amount21" jdbcType="FLOAT" property="amount21" />
+ <result column="times21" jdbcType="INTEGER" property="times21" />
+ <result column="amount22" jdbcType="FLOAT" property="amount22" />
+ <result column="times22" jdbcType="INTEGER" property="times22" />
+ <result column="amount23" jdbcType="FLOAT" property="amount23" />
+ <result column="times23" jdbcType="INTEGER" property="times23" />
+ <result column="amount24" jdbcType="FLOAT" property="amount24" />
+ <result column="times24" jdbcType="INTEGER" property="times24" />
+ <result column="amount25" jdbcType="FLOAT" property="amount25" />
+ <result column="times25" jdbcType="INTEGER" property="times25" />
+ <result column="amount26" jdbcType="FLOAT" property="amount26" />
+ <result column="times26" jdbcType="INTEGER" property="times26" />
+ <result column="amount27" jdbcType="FLOAT" property="amount27" />
+ <result column="times27" jdbcType="INTEGER" property="times27" />
+ <result column="amount28" jdbcType="FLOAT" property="amount28" />
+ <result column="times28" jdbcType="INTEGER" property="times28" />
+ <result column="amount29" jdbcType="FLOAT" property="amount29" />
+ <result column="times29" jdbcType="INTEGER" property="times29" />
+ <result column="amount30" jdbcType="FLOAT" property="amount30" />
+ <result column="times30" jdbcType="INTEGER" property="times30" />
+ <result column="amount31" jdbcType="FLOAT" property="amount31" />
+ <result column="times31" jdbcType="INTEGER" property="times31" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, card_id, `year`, `month`, amount1, times1, amount2, times2, amount3,
+ times3, amount4, times4, amount5, times5, amount6, times6, amount7, times7, amount8,
+ times8, amount9, times9, amount10, times10, amount11, times11, amount12, times12,
+ amount13, times13, amount14, times14, amount15, times15, amount16, times16, amount17,
+ times17, amount18, times18, amount19, times19, amount20, times20, amount21, times21,
+ amount22, times22, amount23, times23, amount24, times24, amount25, times25, amount26,
+ times26, amount27, times27, amount28, times28, amount29, times29, amount30, times30,
+ amount31, times31
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_day
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_consume_ic_day
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay">
+ <!--@mbg.generated-->
+ insert into st_consume_ic_day (id, client_id, card_id,
+ `year`, `month`, amount1,
+ times1, amount2, times2,
+ amount3, times3, amount4,
+ times4, amount5, times5,
+ amount6, times6, amount7,
+ times7, amount8, times8,
+ amount9, times9, amount10,
+ times10, amount11, times11,
+ amount12, times12, amount13,
+ times13, amount14, times14,
+ amount15, times15, amount16,
+ times16, amount17, times17,
+ amount18, times18, amount19,
+ times19, amount20, times20,
+ amount21, times21, amount22,
+ times22, amount23, times23,
+ amount24, times24, amount25,
+ times25, amount26, times26,
+ amount27, times27, amount28,
+ times28, amount29, times29,
+ amount30, times30, amount31,
+ times31)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},
+ #{year,jdbcType=INTEGER}, #{month,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT},
+ #{times1,jdbcType=INTEGER}, #{amount2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER},
+ #{amount3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT},
+ #{times4,jdbcType=INTEGER}, #{amount5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER},
+ #{amount6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT},
+ #{times7,jdbcType=INTEGER}, #{amount8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER},
+ #{amount9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT},
+ #{times10,jdbcType=INTEGER}, #{amount11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER},
+ #{amount12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}, #{amount13,jdbcType=FLOAT},
+ #{times13,jdbcType=INTEGER}, #{amount14,jdbcType=FLOAT}, #{times14,jdbcType=INTEGER},
+ #{amount15,jdbcType=FLOAT}, #{times15,jdbcType=INTEGER}, #{amount16,jdbcType=FLOAT},
+ #{times16,jdbcType=INTEGER}, #{amount17,jdbcType=FLOAT}, #{times17,jdbcType=INTEGER},
+ #{amount18,jdbcType=FLOAT}, #{times18,jdbcType=INTEGER}, #{amount19,jdbcType=FLOAT},
+ #{times19,jdbcType=INTEGER}, #{amount20,jdbcType=FLOAT}, #{times20,jdbcType=INTEGER},
+ #{amount21,jdbcType=FLOAT}, #{times21,jdbcType=INTEGER}, #{amount22,jdbcType=FLOAT},
+ #{times22,jdbcType=INTEGER}, #{amount23,jdbcType=FLOAT}, #{times23,jdbcType=INTEGER},
+ #{amount24,jdbcType=FLOAT}, #{times24,jdbcType=INTEGER}, #{amount25,jdbcType=FLOAT},
+ #{times25,jdbcType=INTEGER}, #{amount26,jdbcType=FLOAT}, #{times26,jdbcType=INTEGER},
+ #{amount27,jdbcType=FLOAT}, #{times27,jdbcType=INTEGER}, #{amount28,jdbcType=FLOAT},
+ #{times28,jdbcType=INTEGER}, #{amount29,jdbcType=FLOAT}, #{times29,jdbcType=INTEGER},
+ #{amount30,jdbcType=FLOAT}, #{times30,jdbcType=INTEGER}, #{amount31,jdbcType=FLOAT},
+ #{times31,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay">
+ <!--@mbg.generated-->
+ insert into st_consume_ic_day
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="cardId != null">
+ card_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="month != null">
+ `month`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ <if test="amount13 != null">
+ amount13,
+ </if>
+ <if test="times13 != null">
+ times13,
+ </if>
+ <if test="amount14 != null">
+ amount14,
+ </if>
+ <if test="times14 != null">
+ times14,
+ </if>
+ <if test="amount15 != null">
+ amount15,
+ </if>
+ <if test="times15 != null">
+ times15,
+ </if>
+ <if test="amount16 != null">
+ amount16,
+ </if>
+ <if test="times16 != null">
+ times16,
+ </if>
+ <if test="amount17 != null">
+ amount17,
+ </if>
+ <if test="times17 != null">
+ times17,
+ </if>
+ <if test="amount18 != null">
+ amount18,
+ </if>
+ <if test="times18 != null">
+ times18,
+ </if>
+ <if test="amount19 != null">
+ amount19,
+ </if>
+ <if test="times19 != null">
+ times19,
+ </if>
+ <if test="amount20 != null">
+ amount20,
+ </if>
+ <if test="times20 != null">
+ times20,
+ </if>
+ <if test="amount21 != null">
+ amount21,
+ </if>
+ <if test="times21 != null">
+ times21,
+ </if>
+ <if test="amount22 != null">
+ amount22,
+ </if>
+ <if test="times22 != null">
+ times22,
+ </if>
+ <if test="amount23 != null">
+ amount23,
+ </if>
+ <if test="times23 != null">
+ times23,
+ </if>
+ <if test="amount24 != null">
+ amount24,
+ </if>
+ <if test="times24 != null">
+ times24,
+ </if>
+ <if test="amount25 != null">
+ amount25,
+ </if>
+ <if test="times25 != null">
+ times25,
+ </if>
+ <if test="amount26 != null">
+ amount26,
+ </if>
+ <if test="times26 != null">
+ times26,
+ </if>
+ <if test="amount27 != null">
+ amount27,
+ </if>
+ <if test="times27 != null">
+ times27,
+ </if>
+ <if test="amount28 != null">
+ amount28,
+ </if>
+ <if test="times28 != null">
+ times28,
+ </if>
+ <if test="amount29 != null">
+ amount29,
+ </if>
+ <if test="times29 != null">
+ times29,
+ </if>
+ <if test="amount30 != null">
+ amount30,
+ </if>
+ <if test="times30 != null">
+ times30,
+ </if>
+ <if test="amount31 != null">
+ amount31,
+ </if>
+ <if test="times31 != null">
+ times31,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ #{times31,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay">
+ <!--@mbg.generated-->
+ update st_consume_ic_day
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ card_id = #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ `month` = #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ amount13 = #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ times13 = #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ amount14 = #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ times14 = #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ amount15 = #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ times15 = #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ amount16 = #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ times16 = #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ amount17 = #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ times17 = #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ amount18 = #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ times18 = #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ amount19 = #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ times19 = #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ amount20 = #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ times20 = #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ amount21 = #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ times21 = #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ amount22 = #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ times22 = #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ amount23 = #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ times23 = #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ amount24 = #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ times24 = #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ amount25 = #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ times25 = #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ amount26 = #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ times26 = #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ amount27 = #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ times27 = #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ amount28 = #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ times28 = #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ amount29 = #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ times29 = #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ amount30 = #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ times30 = #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ amount31 = #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ times31 = #{times31,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay">
+ <!--@mbg.generated-->
+ update st_consume_ic_day
+ set client_id = #{clientId,jdbcType=BIGINT},
+ card_id = #{cardId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ `month` = #{month,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER},
+ amount13 = #{amount13,jdbcType=FLOAT},
+ times13 = #{times13,jdbcType=INTEGER},
+ amount14 = #{amount14,jdbcType=FLOAT},
+ times14 = #{times14,jdbcType=INTEGER},
+ amount15 = #{amount15,jdbcType=FLOAT},
+ times15 = #{times15,jdbcType=INTEGER},
+ amount16 = #{amount16,jdbcType=FLOAT},
+ times16 = #{times16,jdbcType=INTEGER},
+ amount17 = #{amount17,jdbcType=FLOAT},
+ times17 = #{times17,jdbcType=INTEGER},
+ amount18 = #{amount18,jdbcType=FLOAT},
+ times18 = #{times18,jdbcType=INTEGER},
+ amount19 = #{amount19,jdbcType=FLOAT},
+ times19 = #{times19,jdbcType=INTEGER},
+ amount20 = #{amount20,jdbcType=FLOAT},
+ times20 = #{times20,jdbcType=INTEGER},
+ amount21 = #{amount21,jdbcType=FLOAT},
+ times21 = #{times21,jdbcType=INTEGER},
+ amount22 = #{amount22,jdbcType=FLOAT},
+ times22 = #{times22,jdbcType=INTEGER},
+ amount23 = #{amount23,jdbcType=FLOAT},
+ times23 = #{times23,jdbcType=INTEGER},
+ amount24 = #{amount24,jdbcType=FLOAT},
+ times24 = #{times24,jdbcType=INTEGER},
+ amount25 = #{amount25,jdbcType=FLOAT},
+ times25 = #{times25,jdbcType=INTEGER},
+ amount26 = #{amount26,jdbcType=FLOAT},
+ times26 = #{times26,jdbcType=INTEGER},
+ amount27 = #{amount27,jdbcType=FLOAT},
+ times27 = #{times27,jdbcType=INTEGER},
+ amount28 = #{amount28,jdbcType=FLOAT},
+ times28 = #{times28,jdbcType=INTEGER},
+ amount29 = #{amount29,jdbcType=FLOAT},
+ times29 = #{times29,jdbcType=INTEGER},
+ amount30 = #{amount30,jdbcType=FLOAT},
+ times30 = #{times30,jdbcType=INTEGER},
+ amount31 = #{amount31,jdbcType=FLOAT},
+ times31 = #{times31,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcConsumeStatistics">
+ select client_id as clientId,
+ card_id as cardId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0) + IFNULL(amount13,0) + IFNULL(amount14,0) + IFNULL(amount15,0) + IFNULL(amount16,0) + IFNULL(amount17,0) + IFNULL(amount18,0) + IFNULL(amount19,0) +
+ IFNULL(amount20,0) + IFNULL(amount21,0) + IFNULL(amount22,0) + IFNULL(amount23,0) + IFNULL(amount24,0) + IFNULL(amount25,0) + IFNULL(amount26,0) + IFNULL(amount27,0) + IFNULL(amount28,0) + IFNULL(amount29,0) +
+ IFNULL(amount30,0) + IFNULL(amount31,0)
+ ) as amount,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0) + IFNULL(times13,0) + IFNULL(times14,0) + IFNULL(times15,0) + IFNULL(times16,0) + IFNULL(times17,0) + IFNULL(times18,0) + IFNULL(times19,0) +
+ IFNULL(times20,0) + IFNULL(times21,0) + IFNULL(times22,0) + IFNULL(times23,0) + IFNULL(times24,0) + IFNULL(times25,0) + IFNULL(times26,0) + IFNULL(times27,0) + IFNULL(times28,0) + IFNULL(times29,0) +
+ IFNULL(times30,0) + IFNULL(times31,0)
+ ) as times
+ from st_consume_ic_day
+ where year = #{year, jdbcType=INTEGER}
+ and month = #{month, jdbcType=INTEGER}
+ group by client_id, card_id
+ </select>
+
+ <select id="selectByClientAndCardAndYearAndMonth" resultType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcDay">
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_day
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and card_id = #{cardId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ and month = #{month,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcMonthMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcMonthMapper.xml
new file mode 100644
index 0000000..b985af5
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcMonthMapper.xml
@@ -0,0 +1,403 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StConsumeIcMonthMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth">
+ <!--@mbg.generated-->
+ <!--@Table st_consume_ic_month-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="card_id" jdbcType="BIGINT" property="cardId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, card_id, `year`, amount1, times1, amount2, times2, amount3, times3,
+ amount4, times4, amount5, times5, amount6, times6, amount7, times7, amount8, times8,
+ amount9, times9, amount10, times10, amount11, times11, amount12, times12
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_month
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_consume_ic_month
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth">
+ <!--@mbg.generated-->
+ insert into st_consume_ic_month (id, client_id, card_id,
+ `year`, amount1, times1,
+ amount2, times2, amount3,
+ times3, amount4, times4,
+ amount5, times5, amount6,
+ times6, amount7, times7,
+ amount8, times8, amount9,
+ times9, amount10, times10,
+ amount11, times11, amount12,
+ times12)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},
+ #{year,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER},
+ #{amount2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER}, #{amount3,jdbcType=FLOAT},
+ #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER},
+ #{amount5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER}, #{amount6,jdbcType=FLOAT},
+ #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER},
+ #{amount8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER}, #{amount9,jdbcType=FLOAT},
+ #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER},
+ #{amount11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER}, #{amount12,jdbcType=FLOAT},
+ #{times12,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth">
+ <!--@mbg.generated-->
+ insert into st_consume_ic_month
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="cardId != null">
+ card_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth">
+ <!--@mbg.generated-->
+ update st_consume_ic_month
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ card_id = #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth">
+ <!--@mbg.generated-->
+ update st_consume_ic_month
+ set client_id = #{clientId,jdbcType=BIGINT},
+ card_id = #{cardId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcConsumeStatistics">
+ select client_id as clientId,
+ card_id as cardId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0)
+ ) as amount,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0)
+ ) as times
+ from st_consume_ic_month
+ where year = #{year, jdbcType=INTEGER}
+ group by client_id, card_id
+ </select>
+
+ <select id="selectByClientAndCardAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcMonth">
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_month
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and card_id = #{cardId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcYearMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcYearMapper.xml
new file mode 100644
index 0000000..416049d
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StConsumeIcYearMapper.xml
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StConsumeIcYearMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear">
+ <!--@mbg.generated-->
+ <!--@Table st_consume_ic_year-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="card_id" jdbcType="BIGINT" property="cardId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount" jdbcType="FLOAT" property="amount" />
+ <result column="times" jdbcType="INTEGER" property="times" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, card_id, `year`, amount, times
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_year
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_consume_ic_year
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear">
+ <!--@mbg.generated-->
+ insert into st_consume_ic_year (id, client_id, card_id,
+ `year`, amount, times)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},
+ #{year,jdbcType=INTEGER}, #{amount,jdbcType=FLOAT}, #{times,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear">
+ <!--@mbg.generated-->
+ insert into st_consume_ic_year
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="cardId != null">
+ card_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount != null">
+ amount,
+ </if>
+ <if test="times != null">
+ times,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ #{times,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear">
+ <!--@mbg.generated-->
+ update st_consume_ic_year
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ card_id = #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ amount = #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ times = #{times,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear">
+ <!--@mbg.generated-->
+ update st_consume_ic_year
+ set client_id = #{clientId,jdbcType=BIGINT},
+ card_id = #{cardId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount = #{amount,jdbcType=FLOAT},
+ times = #{times,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="selectByClientAndCardAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StConsumeIcYear">
+ select
+ <include refid="Base_Column_List" />
+ from st_consume_ic_year
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and card_id = #{cardId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientDayMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientDayMapper.xml
new file mode 100644
index 0000000..fd5f31e
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientDayMapper.xml
@@ -0,0 +1,1226 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StRechargeClientDayMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay">
+ <!--@mbg.generated-->
+ <!--@Table st_recharge_client_day-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="month" jdbcType="INTEGER" property="month" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="gift1" jdbcType="FLOAT" property="gift1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="gift2" jdbcType="FLOAT" property="gift2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="gift3" jdbcType="FLOAT" property="gift3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="gift4" jdbcType="FLOAT" property="gift4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="gift5" jdbcType="FLOAT" property="gift5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="gift6" jdbcType="FLOAT" property="gift6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="gift7" jdbcType="FLOAT" property="gift7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="gift8" jdbcType="FLOAT" property="gift8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="gift9" jdbcType="FLOAT" property="gift9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="gift10" jdbcType="FLOAT" property="gift10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="gift11" jdbcType="FLOAT" property="gift11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="gift12" jdbcType="FLOAT" property="gift12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ <result column="amount13" jdbcType="FLOAT" property="amount13" />
+ <result column="gift13" jdbcType="FLOAT" property="gift13" />
+ <result column="times13" jdbcType="INTEGER" property="times13" />
+ <result column="amount14" jdbcType="FLOAT" property="amount14" />
+ <result column="gift14" jdbcType="FLOAT" property="gift14" />
+ <result column="times14" jdbcType="INTEGER" property="times14" />
+ <result column="amount15" jdbcType="FLOAT" property="amount15" />
+ <result column="gift15" jdbcType="FLOAT" property="gift15" />
+ <result column="times15" jdbcType="INTEGER" property="times15" />
+ <result column="amount16" jdbcType="FLOAT" property="amount16" />
+ <result column="gift16" jdbcType="FLOAT" property="gift16" />
+ <result column="times16" jdbcType="INTEGER" property="times16" />
+ <result column="amount17" jdbcType="FLOAT" property="amount17" />
+ <result column="gift17" jdbcType="FLOAT" property="gift17" />
+ <result column="times17" jdbcType="INTEGER" property="times17" />
+ <result column="amount18" jdbcType="FLOAT" property="amount18" />
+ <result column="gift18" jdbcType="FLOAT" property="gift18" />
+ <result column="times18" jdbcType="INTEGER" property="times18" />
+ <result column="amount19" jdbcType="FLOAT" property="amount19" />
+ <result column="gift19" jdbcType="FLOAT" property="gift19" />
+ <result column="times19" jdbcType="INTEGER" property="times19" />
+ <result column="amount20" jdbcType="FLOAT" property="amount20" />
+ <result column="gift20" jdbcType="FLOAT" property="gift20" />
+ <result column="times20" jdbcType="INTEGER" property="times20" />
+ <result column="amount21" jdbcType="FLOAT" property="amount21" />
+ <result column="gift21" jdbcType="FLOAT" property="gift21" />
+ <result column="times21" jdbcType="INTEGER" property="times21" />
+ <result column="amount22" jdbcType="FLOAT" property="amount22" />
+ <result column="gift22" jdbcType="FLOAT" property="gift22" />
+ <result column="times22" jdbcType="INTEGER" property="times22" />
+ <result column="amount23" jdbcType="FLOAT" property="amount23" />
+ <result column="gift23" jdbcType="FLOAT" property="gift23" />
+ <result column="times23" jdbcType="INTEGER" property="times23" />
+ <result column="amount24" jdbcType="FLOAT" property="amount24" />
+ <result column="gift24" jdbcType="FLOAT" property="gift24" />
+ <result column="times24" jdbcType="INTEGER" property="times24" />
+ <result column="amount25" jdbcType="FLOAT" property="amount25" />
+ <result column="gift25" jdbcType="FLOAT" property="gift25" />
+ <result column="times25" jdbcType="INTEGER" property="times25" />
+ <result column="amount26" jdbcType="FLOAT" property="amount26" />
+ <result column="gift26" jdbcType="FLOAT" property="gift26" />
+ <result column="times26" jdbcType="INTEGER" property="times26" />
+ <result column="amount27" jdbcType="FLOAT" property="amount27" />
+ <result column="gift27" jdbcType="FLOAT" property="gift27" />
+ <result column="times27" jdbcType="INTEGER" property="times27" />
+ <result column="amount28" jdbcType="FLOAT" property="amount28" />
+ <result column="gift28" jdbcType="FLOAT" property="gift28" />
+ <result column="times28" jdbcType="INTEGER" property="times28" />
+ <result column="amount29" jdbcType="FLOAT" property="amount29" />
+ <result column="gift29" jdbcType="FLOAT" property="gift29" />
+ <result column="times29" jdbcType="INTEGER" property="times29" />
+ <result column="amount30" jdbcType="FLOAT" property="amount30" />
+ <result column="gift30" jdbcType="FLOAT" property="gift30" />
+ <result column="times30" jdbcType="INTEGER" property="times30" />
+ <result column="amount31" jdbcType="FLOAT" property="amount31" />
+ <result column="gift31" jdbcType="FLOAT" property="gift31" />
+ <result column="times31" jdbcType="INTEGER" property="times31" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, `year`, `month`, amount1, gift1, times1, amount2, gift2, times2, amount3,
+ gift3, times3, amount4, gift4, times4, amount5, gift5, times5, amount6, gift6, times6,
+ amount7, gift7, times7, amount8, gift8, times8, amount9, gift9, times9, amount10,
+ gift10, times10, amount11, gift11, times11, amount12, gift12, times12, amount13,
+ gift13, times13, amount14, gift14, times14, amount15, gift15, times15, amount16,
+ gift16, times16, amount17, gift17, times17, amount18, gift18, times18, amount19,
+ gift19, times19, amount20, gift20, times20, amount21, gift21, times21, amount22,
+ gift22, times22, amount23, gift23, times23, amount24, gift24, times24, amount25,
+ gift25, times25, amount26, gift26, times26, amount27, gift27, times27, amount28,
+ gift28, times28, amount29, gift29, times29, amount30, gift30, times30, amount31,
+ gift31, times31
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_client_day
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_recharge_client_day
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay">
+ <!--@mbg.generated-->
+ insert into st_recharge_client_day (id, client_id, `year`,
+ `month`, amount1, gift1,
+ times1, amount2, gift2,
+ times2, amount3, gift3,
+ times3, amount4, gift4,
+ times4, amount5, gift5,
+ times5, amount6, gift6,
+ times6, amount7, gift7,
+ times7, amount8, gift8,
+ times8, amount9, gift9,
+ times9, amount10, gift10,
+ times10, amount11, gift11,
+ times11, amount12, gift12,
+ times12, amount13, gift13,
+ times13, amount14, gift14,
+ times14, amount15, gift15,
+ times15, amount16, gift16,
+ times16, amount17, gift17,
+ times17, amount18, gift18,
+ times18, amount19, gift19,
+ times19, amount20, gift20,
+ times20, amount21, gift21,
+ times21, amount22, gift22,
+ times22, amount23, gift23,
+ times23, amount24, gift24,
+ times24, amount25, gift25,
+ times25, amount26, gift26,
+ times26, amount27, gift27,
+ times27, amount28, gift28,
+ times28, amount29, gift29,
+ times29, amount30, gift30,
+ times30, amount31, gift31,
+ times31)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER},
+ #{month,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT}, #{gift1,jdbcType=FLOAT},
+ #{times1,jdbcType=INTEGER}, #{amount2,jdbcType=FLOAT}, #{gift2,jdbcType=FLOAT},
+ #{times2,jdbcType=INTEGER}, #{amount3,jdbcType=FLOAT}, #{gift3,jdbcType=FLOAT},
+ #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT}, #{gift4,jdbcType=FLOAT},
+ #{times4,jdbcType=INTEGER}, #{amount5,jdbcType=FLOAT}, #{gift5,jdbcType=FLOAT},
+ #{times5,jdbcType=INTEGER}, #{amount6,jdbcType=FLOAT}, #{gift6,jdbcType=FLOAT},
+ #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT}, #{gift7,jdbcType=FLOAT},
+ #{times7,jdbcType=INTEGER}, #{amount8,jdbcType=FLOAT}, #{gift8,jdbcType=FLOAT},
+ #{times8,jdbcType=INTEGER}, #{amount9,jdbcType=FLOAT}, #{gift9,jdbcType=FLOAT},
+ #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT}, #{gift10,jdbcType=FLOAT},
+ #{times10,jdbcType=INTEGER}, #{amount11,jdbcType=FLOAT}, #{gift11,jdbcType=FLOAT},
+ #{times11,jdbcType=INTEGER}, #{amount12,jdbcType=FLOAT}, #{gift12,jdbcType=FLOAT},
+ #{times12,jdbcType=INTEGER}, #{amount13,jdbcType=FLOAT}, #{gift13,jdbcType=FLOAT},
+ #{times13,jdbcType=INTEGER}, #{amount14,jdbcType=FLOAT}, #{gift14,jdbcType=FLOAT},
+ #{times14,jdbcType=INTEGER}, #{amount15,jdbcType=FLOAT}, #{gift15,jdbcType=FLOAT},
+ #{times15,jdbcType=INTEGER}, #{amount16,jdbcType=FLOAT}, #{gift16,jdbcType=FLOAT},
+ #{times16,jdbcType=INTEGER}, #{amount17,jdbcType=FLOAT}, #{gift17,jdbcType=FLOAT},
+ #{times17,jdbcType=INTEGER}, #{amount18,jdbcType=FLOAT}, #{gift18,jdbcType=FLOAT},
+ #{times18,jdbcType=INTEGER}, #{amount19,jdbcType=FLOAT}, #{gift19,jdbcType=FLOAT},
+ #{times19,jdbcType=INTEGER}, #{amount20,jdbcType=FLOAT}, #{gift20,jdbcType=FLOAT},
+ #{times20,jdbcType=INTEGER}, #{amount21,jdbcType=FLOAT}, #{gift21,jdbcType=FLOAT},
+ #{times21,jdbcType=INTEGER}, #{amount22,jdbcType=FLOAT}, #{gift22,jdbcType=FLOAT},
+ #{times22,jdbcType=INTEGER}, #{amount23,jdbcType=FLOAT}, #{gift23,jdbcType=FLOAT},
+ #{times23,jdbcType=INTEGER}, #{amount24,jdbcType=FLOAT}, #{gift24,jdbcType=FLOAT},
+ #{times24,jdbcType=INTEGER}, #{amount25,jdbcType=FLOAT}, #{gift25,jdbcType=FLOAT},
+ #{times25,jdbcType=INTEGER}, #{amount26,jdbcType=FLOAT}, #{gift26,jdbcType=FLOAT},
+ #{times26,jdbcType=INTEGER}, #{amount27,jdbcType=FLOAT}, #{gift27,jdbcType=FLOAT},
+ #{times27,jdbcType=INTEGER}, #{amount28,jdbcType=FLOAT}, #{gift28,jdbcType=FLOAT},
+ #{times28,jdbcType=INTEGER}, #{amount29,jdbcType=FLOAT}, #{gift29,jdbcType=FLOAT},
+ #{times29,jdbcType=INTEGER}, #{amount30,jdbcType=FLOAT}, #{gift30,jdbcType=FLOAT},
+ #{times30,jdbcType=INTEGER}, #{amount31,jdbcType=FLOAT}, #{gift31,jdbcType=FLOAT},
+ #{times31,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay">
+ <!--@mbg.generated-->
+ insert into st_recharge_client_day
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="month != null">
+ `month`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="gift1 != null">
+ gift1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="gift2 != null">
+ gift2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="gift3 != null">
+ gift3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="gift4 != null">
+ gift4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="gift5 != null">
+ gift5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="gift6 != null">
+ gift6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="gift7 != null">
+ gift7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="gift8 != null">
+ gift8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="gift9 != null">
+ gift9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="gift10 != null">
+ gift10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="gift11 != null">
+ gift11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="gift12 != null">
+ gift12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ <if test="amount13 != null">
+ amount13,
+ </if>
+ <if test="gift13 != null">
+ gift13,
+ </if>
+ <if test="times13 != null">
+ times13,
+ </if>
+ <if test="amount14 != null">
+ amount14,
+ </if>
+ <if test="gift14 != null">
+ gift14,
+ </if>
+ <if test="times14 != null">
+ times14,
+ </if>
+ <if test="amount15 != null">
+ amount15,
+ </if>
+ <if test="gift15 != null">
+ gift15,
+ </if>
+ <if test="times15 != null">
+ times15,
+ </if>
+ <if test="amount16 != null">
+ amount16,
+ </if>
+ <if test="gift16 != null">
+ gift16,
+ </if>
+ <if test="times16 != null">
+ times16,
+ </if>
+ <if test="amount17 != null">
+ amount17,
+ </if>
+ <if test="gift17 != null">
+ gift17,
+ </if>
+ <if test="times17 != null">
+ times17,
+ </if>
+ <if test="amount18 != null">
+ amount18,
+ </if>
+ <if test="gift18 != null">
+ gift18,
+ </if>
+ <if test="times18 != null">
+ times18,
+ </if>
+ <if test="amount19 != null">
+ amount19,
+ </if>
+ <if test="gift19 != null">
+ gift19,
+ </if>
+ <if test="times19 != null">
+ times19,
+ </if>
+ <if test="amount20 != null">
+ amount20,
+ </if>
+ <if test="gift20 != null">
+ gift20,
+ </if>
+ <if test="times20 != null">
+ times20,
+ </if>
+ <if test="amount21 != null">
+ amount21,
+ </if>
+ <if test="gift21 != null">
+ gift21,
+ </if>
+ <if test="times21 != null">
+ times21,
+ </if>
+ <if test="amount22 != null">
+ amount22,
+ </if>
+ <if test="gift22 != null">
+ gift22,
+ </if>
+ <if test="times22 != null">
+ times22,
+ </if>
+ <if test="amount23 != null">
+ amount23,
+ </if>
+ <if test="gift23 != null">
+ gift23,
+ </if>
+ <if test="times23 != null">
+ times23,
+ </if>
+ <if test="amount24 != null">
+ amount24,
+ </if>
+ <if test="gift24 != null">
+ gift24,
+ </if>
+ <if test="times24 != null">
+ times24,
+ </if>
+ <if test="amount25 != null">
+ amount25,
+ </if>
+ <if test="gift25 != null">
+ gift25,
+ </if>
+ <if test="times25 != null">
+ times25,
+ </if>
+ <if test="amount26 != null">
+ amount26,
+ </if>
+ <if test="gift26 != null">
+ gift26,
+ </if>
+ <if test="times26 != null">
+ times26,
+ </if>
+ <if test="amount27 != null">
+ amount27,
+ </if>
+ <if test="gift27 != null">
+ gift27,
+ </if>
+ <if test="times27 != null">
+ times27,
+ </if>
+ <if test="amount28 != null">
+ amount28,
+ </if>
+ <if test="gift28 != null">
+ gift28,
+ </if>
+ <if test="times28 != null">
+ times28,
+ </if>
+ <if test="amount29 != null">
+ amount29,
+ </if>
+ <if test="gift29 != null">
+ gift29,
+ </if>
+ <if test="times29 != null">
+ times29,
+ </if>
+ <if test="amount30 != null">
+ amount30,
+ </if>
+ <if test="gift30 != null">
+ gift30,
+ </if>
+ <if test="times30 != null">
+ times30,
+ </if>
+ <if test="amount31 != null">
+ amount31,
+ </if>
+ <if test="gift31 != null">
+ gift31,
+ </if>
+ <if test="times31 != null">
+ times31,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="gift13 != null">
+ #{gift13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="gift14 != null">
+ #{gift14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="gift15 != null">
+ #{gift15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="gift16 != null">
+ #{gift16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="gift17 != null">
+ #{gift17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="gift18 != null">
+ #{gift18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="gift19 != null">
+ #{gift19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="gift20 != null">
+ #{gift20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="gift21 != null">
+ #{gift21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="gift22 != null">
+ #{gift22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="gift23 != null">
+ #{gift23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="gift24 != null">
+ #{gift24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="gift25 != null">
+ #{gift25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="gift26 != null">
+ #{gift26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="gift27 != null">
+ #{gift27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="gift28 != null">
+ #{gift28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="gift29 != null">
+ #{gift29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="gift30 != null">
+ #{gift30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="gift31 != null">
+ #{gift31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ #{times31,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay">
+ <!--@mbg.generated-->
+ update st_recharge_client_day
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ `month` = #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ gift1 = #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ gift2 = #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ gift3 = #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ gift4 = #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ gift5 = #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ gift6 = #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ gift7 = #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ gift8 = #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ gift9 = #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ gift10 = #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ gift11 = #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ gift12 = #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ amount13 = #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="gift13 != null">
+ gift13 = #{gift13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ times13 = #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ amount14 = #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="gift14 != null">
+ gift14 = #{gift14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ times14 = #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ amount15 = #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="gift15 != null">
+ gift15 = #{gift15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ times15 = #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ amount16 = #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="gift16 != null">
+ gift16 = #{gift16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ times16 = #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ amount17 = #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="gift17 != null">
+ gift17 = #{gift17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ times17 = #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ amount18 = #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="gift18 != null">
+ gift18 = #{gift18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ times18 = #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ amount19 = #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="gift19 != null">
+ gift19 = #{gift19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ times19 = #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ amount20 = #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="gift20 != null">
+ gift20 = #{gift20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ times20 = #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ amount21 = #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="gift21 != null">
+ gift21 = #{gift21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ times21 = #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ amount22 = #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="gift22 != null">
+ gift22 = #{gift22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ times22 = #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ amount23 = #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="gift23 != null">
+ gift23 = #{gift23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ times23 = #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ amount24 = #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="gift24 != null">
+ gift24 = #{gift24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ times24 = #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ amount25 = #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="gift25 != null">
+ gift25 = #{gift25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ times25 = #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ amount26 = #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="gift26 != null">
+ gift26 = #{gift26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ times26 = #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ amount27 = #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="gift27 != null">
+ gift27 = #{gift27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ times27 = #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ amount28 = #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="gift28 != null">
+ gift28 = #{gift28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ times28 = #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ amount29 = #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="gift29 != null">
+ gift29 = #{gift29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ times29 = #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ amount30 = #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="gift30 != null">
+ gift30 = #{gift30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ times30 = #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ amount31 = #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="gift31 != null">
+ gift31 = #{gift31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ times31 = #{times31,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay">
+ <!--@mbg.generated-->
+ update st_recharge_client_day
+ set client_id = #{clientId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ `month` = #{month,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ gift1 = #{gift1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ gift2 = #{gift2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ gift3 = #{gift3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ gift4 = #{gift4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ gift5 = #{gift5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ gift6 = #{gift6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ gift7 = #{gift7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ gift8 = #{gift8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ gift9 = #{gift9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ gift10 = #{gift10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ gift11 = #{gift11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ gift12 = #{gift12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER},
+ amount13 = #{amount13,jdbcType=FLOAT},
+ gift13 = #{gift13,jdbcType=FLOAT},
+ times13 = #{times13,jdbcType=INTEGER},
+ amount14 = #{amount14,jdbcType=FLOAT},
+ gift14 = #{gift14,jdbcType=FLOAT},
+ times14 = #{times14,jdbcType=INTEGER},
+ amount15 = #{amount15,jdbcType=FLOAT},
+ gift15 = #{gift15,jdbcType=FLOAT},
+ times15 = #{times15,jdbcType=INTEGER},
+ amount16 = #{amount16,jdbcType=FLOAT},
+ gift16 = #{gift16,jdbcType=FLOAT},
+ times16 = #{times16,jdbcType=INTEGER},
+ amount17 = #{amount17,jdbcType=FLOAT},
+ gift17 = #{gift17,jdbcType=FLOAT},
+ times17 = #{times17,jdbcType=INTEGER},
+ amount18 = #{amount18,jdbcType=FLOAT},
+ gift18 = #{gift18,jdbcType=FLOAT},
+ times18 = #{times18,jdbcType=INTEGER},
+ amount19 = #{amount19,jdbcType=FLOAT},
+ gift19 = #{gift19,jdbcType=FLOAT},
+ times19 = #{times19,jdbcType=INTEGER},
+ amount20 = #{amount20,jdbcType=FLOAT},
+ gift20 = #{gift20,jdbcType=FLOAT},
+ times20 = #{times20,jdbcType=INTEGER},
+ amount21 = #{amount21,jdbcType=FLOAT},
+ gift21 = #{gift21,jdbcType=FLOAT},
+ times21 = #{times21,jdbcType=INTEGER},
+ amount22 = #{amount22,jdbcType=FLOAT},
+ gift22 = #{gift22,jdbcType=FLOAT},
+ times22 = #{times22,jdbcType=INTEGER},
+ amount23 = #{amount23,jdbcType=FLOAT},
+ gift23 = #{gift23,jdbcType=FLOAT},
+ times23 = #{times23,jdbcType=INTEGER},
+ amount24 = #{amount24,jdbcType=FLOAT},
+ gift24 = #{gift24,jdbcType=FLOAT},
+ times24 = #{times24,jdbcType=INTEGER},
+ amount25 = #{amount25,jdbcType=FLOAT},
+ gift25 = #{gift25,jdbcType=FLOAT},
+ times25 = #{times25,jdbcType=INTEGER},
+ amount26 = #{amount26,jdbcType=FLOAT},
+ gift26 = #{gift26,jdbcType=FLOAT},
+ times26 = #{times26,jdbcType=INTEGER},
+ amount27 = #{amount27,jdbcType=FLOAT},
+ gift27 = #{gift27,jdbcType=FLOAT},
+ times27 = #{times27,jdbcType=INTEGER},
+ amount28 = #{amount28,jdbcType=FLOAT},
+ gift28 = #{gift28,jdbcType=FLOAT},
+ times28 = #{times28,jdbcType=INTEGER},
+ amount29 = #{amount29,jdbcType=FLOAT},
+ gift29 = #{gift29,jdbcType=FLOAT},
+ times29 = #{times29,jdbcType=INTEGER},
+ amount30 = #{amount30,jdbcType=FLOAT},
+ gift30 = #{gift30,jdbcType=FLOAT},
+ times30 = #{times30,jdbcType=INTEGER},
+ amount31 = #{amount31,jdbcType=FLOAT},
+ gift31 = #{gift31,jdbcType=FLOAT},
+ times31 = #{times31,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByClient" resultType="com.dy.pipIrrGlobal.voSt.VoClientRechargeStatistics">
+ select client_id as clientId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0) + IFNULL(amount13,0) + IFNULL(amount14,0) + IFNULL(amount15,0) + IFNULL(amount16,0) + IFNULL(amount17,0) + IFNULL(amount18,0) + IFNULL(amount19,0) +
+ IFNULL(amount20,0) + IFNULL(amount21,0) + IFNULL(amount22,0) + IFNULL(amount23,0) + IFNULL(amount24,0) + IFNULL(amount25,0) + IFNULL(amount26,0) + IFNULL(amount27,0) + IFNULL(amount28,0) + IFNULL(amount29,0) +
+ IFNULL(amount30,0) + IFNULL(amount31,0)
+ ) as amount,
+ sum(
+ IFNULL(gift1,0) + IFNULL(gift2,0) + IFNULL(gift3,0) + IFNULL(gift4,0) + IFNULL(gift5,0) + IFNULL(gift6,0) + IFNULL(gift7,0) + IFNULL(gift8,0) + IFNULL(gift9,0) +
+ IFNULL(gift10,0) + IFNULL(gift11,0) + IFNULL(gift12,0) + IFNULL(gift13,0) + IFNULL(gift14,0) + IFNULL(gift15,0) + IFNULL(gift16,0) + IFNULL(gift17,0) + IFNULL(gift18,0) + IFNULL(gift19,0) +
+ IFNULL(gift20,0) + IFNULL(gift21,0) + IFNULL(gift22,0) + IFNULL(gift23,0) + IFNULL(gift24,0) + IFNULL(gift25,0) + IFNULL(gift26,0) + IFNULL(gift27,0) + IFNULL(gift28,0) + IFNULL(gift29,0) +
+ IFNULL(gift30,0) + IFNULL(gift31,0)
+ ) as gift,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0) + IFNULL(times13,0) + IFNULL(times14,0) + IFNULL(times15,0) + IFNULL(times16,0) + IFNULL(times17,0) + IFNULL(times18,0) + IFNULL(times19,0) +
+ IFNULL(times20,0) + IFNULL(times21,0) + IFNULL(times22,0) + IFNULL(times23,0) + IFNULL(times24,0) + IFNULL(times25,0) + IFNULL(times26,0) + IFNULL(times27,0) + IFNULL(times28,0) + IFNULL(times29,0) +
+ IFNULL(times30,0) + IFNULL(times31,0)
+ ) as times
+ from st_recharge_client_day
+ where year = #{year, jdbcType=INTEGER}
+ and month = #{month, jdbcType=INTEGER}
+ group by client_id
+ </select>
+
+ <select id="selectByClientAndYearAndMonth" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientDay">
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_client_day
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ and month = #{month,jdbcType=INTEGER}
+ </select>
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientMonthMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientMonthMapper.xml
new file mode 100644
index 0000000..ecde4ca
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientMonthMapper.xml
@@ -0,0 +1,536 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StRechargeClientMonthMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth">
+ <!--@mbg.generated-->
+ <!--@Table st_recharge_client_month-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="gift1" jdbcType="FLOAT" property="gift1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="gift2" jdbcType="FLOAT" property="gift2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="gift3" jdbcType="FLOAT" property="gift3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="gift4" jdbcType="FLOAT" property="gift4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="gift5" jdbcType="FLOAT" property="gift5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="gift6" jdbcType="FLOAT" property="gift6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="gift7" jdbcType="FLOAT" property="gift7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="gift8" jdbcType="FLOAT" property="gift8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="gift9" jdbcType="FLOAT" property="gift9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="gift10" jdbcType="FLOAT" property="gift10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="gift11" jdbcType="FLOAT" property="gift11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="gift12" jdbcType="FLOAT" property="gift12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, `year`, amount1, gift1, times1, amount2, gift2, times2, amount3, gift3,
+ times3, amount4, gift4, times4, amount5, gift5, times5, amount6, gift6, times6, amount7,
+ gift7, times7, amount8, gift8, times8, amount9, gift9, times9, amount10, gift10,
+ times10, amount11, gift11, times11, amount12, gift12, times12
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_client_month
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_recharge_client_month
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth">
+ <!--@mbg.generated-->
+ insert into st_recharge_client_month (id, client_id, `year`,
+ amount1, gift1, times1,
+ amount2, gift2, times2,
+ amount3, gift3, times3,
+ amount4, gift4, times4,
+ amount5, gift5, times5,
+ amount6, gift6, times6,
+ amount7, gift7, times7,
+ amount8, gift8, times8,
+ amount9, gift9, times9,
+ amount10, gift10, times10,
+ amount11, gift11, times11,
+ amount12, gift12, times12
+ )
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER},
+ #{amount1,jdbcType=FLOAT}, #{gift1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER},
+ #{amount2,jdbcType=FLOAT}, #{gift2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER},
+ #{amount3,jdbcType=FLOAT}, #{gift3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER},
+ #{amount4,jdbcType=FLOAT}, #{gift4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER},
+ #{amount5,jdbcType=FLOAT}, #{gift5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER},
+ #{amount6,jdbcType=FLOAT}, #{gift6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER},
+ #{amount7,jdbcType=FLOAT}, #{gift7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER},
+ #{amount8,jdbcType=FLOAT}, #{gift8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER},
+ #{amount9,jdbcType=FLOAT}, #{gift9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER},
+ #{amount10,jdbcType=FLOAT}, #{gift10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER},
+ #{amount11,jdbcType=FLOAT}, #{gift11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER},
+ #{amount12,jdbcType=FLOAT}, #{gift12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}
+ )
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth">
+ <!--@mbg.generated-->
+ insert into st_recharge_client_month
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="gift1 != null">
+ gift1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="gift2 != null">
+ gift2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="gift3 != null">
+ gift3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="gift4 != null">
+ gift4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="gift5 != null">
+ gift5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="gift6 != null">
+ gift6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="gift7 != null">
+ gift7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="gift8 != null">
+ gift8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="gift9 != null">
+ gift9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="gift10 != null">
+ gift10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="gift11 != null">
+ gift11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="gift12 != null">
+ gift12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth">
+ <!--@mbg.generated-->
+ update st_recharge_client_month
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ gift1 = #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ gift2 = #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ gift3 = #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ gift4 = #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ gift5 = #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ gift6 = #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ gift7 = #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ gift8 = #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ gift9 = #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ gift10 = #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ gift11 = #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ gift12 = #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth">
+ <!--@mbg.generated-->
+ update st_recharge_client_month
+ set client_id = #{clientId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ gift1 = #{gift1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ gift2 = #{gift2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ gift3 = #{gift3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ gift4 = #{gift4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ gift5 = #{gift5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ gift6 = #{gift6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ gift7 = #{gift7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ gift8 = #{gift8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ gift9 = #{gift9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ gift10 = #{gift10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ gift11 = #{gift11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ gift12 = #{gift12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByClient" resultType="com.dy.pipIrrGlobal.voSt.VoClientRechargeStatistics">
+ select client_id as clientId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0)
+ ) as amount,
+ sum(
+ IFNULL(gift1,0) + IFNULL(gift2,0) + IFNULL(gift3,0) + IFNULL(gift4,0) + IFNULL(gift5,0) + IFNULL(gift6,0) + IFNULL(gift7,0) + IFNULL(gift8,0) + IFNULL(gift9,0) +
+ IFNULL(gift10,0) + IFNULL(gift11,0) + IFNULL(gift12,0)
+ ) as gift,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0)
+ ) as times
+ from st_recharge_client_month
+ where year = #{year, jdbcType=INTEGER}
+ group by client_id
+ </select>
+
+ <select id="selectByClientAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientMonth">
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_client_month
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientYearMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientYearMapper.xml
new file mode 100644
index 0000000..79021a4
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeClientYearMapper.xml
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StRechargeClientYearMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear">
+ <!--@mbg.generated-->
+ <!--@Table st_recharge_client_year-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount" jdbcType="FLOAT" property="amount" />
+ <result column="gift" jdbcType="FLOAT" property="gift" />
+ <result column="times" jdbcType="INTEGER" property="times" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, `year`, amount, gift, times
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_client_year
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_recharge_client_year
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear">
+ <!--@mbg.generated-->
+ insert into st_recharge_client_year (id, client_id, `year`,
+ amount, gift, times)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER},
+ #{amount,jdbcType=FLOAT}, #{gift,jdbcType=FLOAT}, #{times,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear">
+ <!--@mbg.generated-->
+ insert into st_recharge_client_year
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount != null">
+ amount,
+ </if>
+ <if test="gift != null">
+ gift,
+ </if>
+ <if test="times != null">
+ times,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="gift != null">
+ #{gift,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ #{times,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear">
+ <!--@mbg.generated-->
+ update st_recharge_client_year
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ amount = #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="gift != null">
+ gift = #{gift,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ times = #{times,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear">
+ <!--@mbg.generated-->
+ update st_recharge_client_year
+ set client_id = #{clientId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount = #{amount,jdbcType=FLOAT},
+ gift = #{gift,jdbcType=FLOAT},
+ times = #{times,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="selectByClientAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeClientYear">
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_year
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcDayMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcDayMapper.xml
new file mode 100644
index 0000000..b30a25d
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcDayMapper.xml
@@ -0,0 +1,1239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StRechargeIcDayMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay">
+ <!--@mbg.generated-->
+ <!--@Table st_recharge_ic_day-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="card_id" jdbcType="BIGINT" property="cardId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="month" jdbcType="INTEGER" property="month" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="gift1" jdbcType="FLOAT" property="gift1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="gift2" jdbcType="FLOAT" property="gift2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="gift3" jdbcType="FLOAT" property="gift3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="gift4" jdbcType="FLOAT" property="gift4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="gift5" jdbcType="FLOAT" property="gift5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="gift6" jdbcType="FLOAT" property="gift6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="gift7" jdbcType="FLOAT" property="gift7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="gift8" jdbcType="FLOAT" property="gift8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="gift9" jdbcType="FLOAT" property="gift9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="gift10" jdbcType="FLOAT" property="gift10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="gift11" jdbcType="FLOAT" property="gift11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="gift12" jdbcType="FLOAT" property="gift12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ <result column="amount13" jdbcType="FLOAT" property="amount13" />
+ <result column="gift13" jdbcType="FLOAT" property="gift13" />
+ <result column="times13" jdbcType="INTEGER" property="times13" />
+ <result column="amount14" jdbcType="FLOAT" property="amount14" />
+ <result column="gift14" jdbcType="FLOAT" property="gift14" />
+ <result column="times14" jdbcType="INTEGER" property="times14" />
+ <result column="amount15" jdbcType="FLOAT" property="amount15" />
+ <result column="gift15" jdbcType="FLOAT" property="gift15" />
+ <result column="times15" jdbcType="INTEGER" property="times15" />
+ <result column="amount16" jdbcType="FLOAT" property="amount16" />
+ <result column="gift16" jdbcType="FLOAT" property="gift16" />
+ <result column="times16" jdbcType="INTEGER" property="times16" />
+ <result column="amount17" jdbcType="FLOAT" property="amount17" />
+ <result column="gift17" jdbcType="FLOAT" property="gift17" />
+ <result column="times17" jdbcType="INTEGER" property="times17" />
+ <result column="amount18" jdbcType="FLOAT" property="amount18" />
+ <result column="gift18" jdbcType="FLOAT" property="gift18" />
+ <result column="times18" jdbcType="INTEGER" property="times18" />
+ <result column="amount19" jdbcType="FLOAT" property="amount19" />
+ <result column="gift19" jdbcType="FLOAT" property="gift19" />
+ <result column="times19" jdbcType="INTEGER" property="times19" />
+ <result column="amount20" jdbcType="FLOAT" property="amount20" />
+ <result column="gift20" jdbcType="FLOAT" property="gift20" />
+ <result column="times20" jdbcType="INTEGER" property="times20" />
+ <result column="amount21" jdbcType="FLOAT" property="amount21" />
+ <result column="gift21" jdbcType="FLOAT" property="gift21" />
+ <result column="times21" jdbcType="INTEGER" property="times21" />
+ <result column="amount22" jdbcType="FLOAT" property="amount22" />
+ <result column="gift22" jdbcType="FLOAT" property="gift22" />
+ <result column="times22" jdbcType="INTEGER" property="times22" />
+ <result column="amount23" jdbcType="FLOAT" property="amount23" />
+ <result column="gift23" jdbcType="FLOAT" property="gift23" />
+ <result column="times23" jdbcType="INTEGER" property="times23" />
+ <result column="amount24" jdbcType="FLOAT" property="amount24" />
+ <result column="gift24" jdbcType="FLOAT" property="gift24" />
+ <result column="times24" jdbcType="INTEGER" property="times24" />
+ <result column="amount25" jdbcType="FLOAT" property="amount25" />
+ <result column="gift25" jdbcType="FLOAT" property="gift25" />
+ <result column="times25" jdbcType="INTEGER" property="times25" />
+ <result column="amount26" jdbcType="FLOAT" property="amount26" />
+ <result column="gift26" jdbcType="FLOAT" property="gift26" />
+ <result column="times26" jdbcType="INTEGER" property="times26" />
+ <result column="amount27" jdbcType="FLOAT" property="amount27" />
+ <result column="gift27" jdbcType="FLOAT" property="gift27" />
+ <result column="times27" jdbcType="INTEGER" property="times27" />
+ <result column="amount28" jdbcType="FLOAT" property="amount28" />
+ <result column="gift28" jdbcType="FLOAT" property="gift28" />
+ <result column="times28" jdbcType="INTEGER" property="times28" />
+ <result column="amount29" jdbcType="FLOAT" property="amount29" />
+ <result column="gift29" jdbcType="FLOAT" property="gift29" />
+ <result column="times29" jdbcType="INTEGER" property="times29" />
+ <result column="amount30" jdbcType="FLOAT" property="amount30" />
+ <result column="gift30" jdbcType="FLOAT" property="gift30" />
+ <result column="times30" jdbcType="INTEGER" property="times30" />
+ <result column="amount31" jdbcType="FLOAT" property="amount31" />
+ <result column="gift31" jdbcType="FLOAT" property="gift31" />
+ <result column="times31" jdbcType="INTEGER" property="times31" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, card_id, `year`, `month`, amount1, gift1, times1, amount2, gift2,
+ times2, amount3, gift3, times3, amount4, gift4, times4, amount5, gift5, times5, amount6,
+ gift6, times6, amount7, gift7, times7, amount8, gift8, times8, amount9, gift9, times9,
+ amount10, gift10, times10, amount11, gift11, times11, amount12, gift12, times12,
+ amount13, gift13, times13, amount14, gift14, times14, amount15, gift15, times15,
+ amount16, gift16, times16, amount17, gift17, times17, amount18, gift18, times18,
+ amount19, gift19, times19, amount20, gift20, times20, amount21, gift21, times21,
+ amount22, gift22, times22, amount23, gift23, times23, amount24, gift24, times24,
+ amount25, gift25, times25, amount26, gift26, times26, amount27, gift27, times27,
+ amount28, gift28, times28, amount29, gift29, times29, amount30, gift30, times30,
+ amount31, gift31, times31
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_day
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_recharge_ic_day
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay">
+ <!--@mbg.generated-->
+ insert into st_recharge_ic_day (id, client_id, card_id,
+ `year`, `month`, amount1,
+ gift1, times1, amount2,
+ gift2, times2, amount3,
+ gift3, times3, amount4,
+ gift4, times4, amount5,
+ gift5, times5, amount6,
+ gift6, times6, amount7,
+ gift7, times7, amount8,
+ gift8, times8, amount9,
+ gift9, times9, amount10,
+ gift10, times10, amount11,
+ gift11, times11, amount12,
+ gift12, times12, amount13,
+ gift13, times13, amount14,
+ gift14, times14, amount15,
+ gift15, times15, amount16,
+ gift16, times16, amount17,
+ gift17, times17, amount18,
+ gift18, times18, amount19,
+ gift19, times19, amount20,
+ gift20, times20, amount21,
+ gift21, times21, amount22,
+ gift22, times22, amount23,
+ gift23, times23, amount24,
+ gift24, times24, amount25,
+ gift25, times25, amount26,
+ gift26, times26, amount27,
+ gift27, times27, amount28,
+ gift28, times28, amount29,
+ gift29, times29, amount30,
+ gift30, times30, amount31,
+ gift31, times31)
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},
+ #{year,jdbcType=INTEGER}, #{month,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT},
+ #{gift1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER}, #{amount2,jdbcType=FLOAT},
+ #{gift2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER}, #{amount3,jdbcType=FLOAT},
+ #{gift3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT},
+ #{gift4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER}, #{amount5,jdbcType=FLOAT},
+ #{gift5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER}, #{amount6,jdbcType=FLOAT},
+ #{gift6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT},
+ #{gift7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER}, #{amount8,jdbcType=FLOAT},
+ #{gift8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER}, #{amount9,jdbcType=FLOAT},
+ #{gift9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT},
+ #{gift10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER}, #{amount11,jdbcType=FLOAT},
+ #{gift11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER}, #{amount12,jdbcType=FLOAT},
+ #{gift12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}, #{amount13,jdbcType=FLOAT},
+ #{gift13,jdbcType=FLOAT}, #{times13,jdbcType=INTEGER}, #{amount14,jdbcType=FLOAT},
+ #{gift14,jdbcType=FLOAT}, #{times14,jdbcType=INTEGER}, #{amount15,jdbcType=FLOAT},
+ #{gift15,jdbcType=FLOAT}, #{times15,jdbcType=INTEGER}, #{amount16,jdbcType=FLOAT},
+ #{gift16,jdbcType=FLOAT}, #{times16,jdbcType=INTEGER}, #{amount17,jdbcType=FLOAT},
+ #{gift17,jdbcType=FLOAT}, #{times17,jdbcType=INTEGER}, #{amount18,jdbcType=FLOAT},
+ #{gift18,jdbcType=FLOAT}, #{times18,jdbcType=INTEGER}, #{amount19,jdbcType=FLOAT},
+ #{gift19,jdbcType=FLOAT}, #{times19,jdbcType=INTEGER}, #{amount20,jdbcType=FLOAT},
+ #{gift20,jdbcType=FLOAT}, #{times20,jdbcType=INTEGER}, #{amount21,jdbcType=FLOAT},
+ #{gift21,jdbcType=FLOAT}, #{times21,jdbcType=INTEGER}, #{amount22,jdbcType=FLOAT},
+ #{gift22,jdbcType=FLOAT}, #{times22,jdbcType=INTEGER}, #{amount23,jdbcType=FLOAT},
+ #{gift23,jdbcType=FLOAT}, #{times23,jdbcType=INTEGER}, #{amount24,jdbcType=FLOAT},
+ #{gift24,jdbcType=FLOAT}, #{times24,jdbcType=INTEGER}, #{amount25,jdbcType=FLOAT},
+ #{gift25,jdbcType=FLOAT}, #{times25,jdbcType=INTEGER}, #{amount26,jdbcType=FLOAT},
+ #{gift26,jdbcType=FLOAT}, #{times26,jdbcType=INTEGER}, #{amount27,jdbcType=FLOAT},
+ #{gift27,jdbcType=FLOAT}, #{times27,jdbcType=INTEGER}, #{amount28,jdbcType=FLOAT},
+ #{gift28,jdbcType=FLOAT}, #{times28,jdbcType=INTEGER}, #{amount29,jdbcType=FLOAT},
+ #{gift29,jdbcType=FLOAT}, #{times29,jdbcType=INTEGER}, #{amount30,jdbcType=FLOAT},
+ #{gift30,jdbcType=FLOAT}, #{times30,jdbcType=INTEGER}, #{amount31,jdbcType=FLOAT},
+ #{gift31,jdbcType=FLOAT}, #{times31,jdbcType=INTEGER})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay">
+ <!--@mbg.generated-->
+ insert into st_recharge_ic_day
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="cardId != null">
+ card_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="month != null">
+ `month`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="gift1 != null">
+ gift1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="gift2 != null">
+ gift2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="gift3 != null">
+ gift3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="gift4 != null">
+ gift4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="gift5 != null">
+ gift5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="gift6 != null">
+ gift6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="gift7 != null">
+ gift7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="gift8 != null">
+ gift8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="gift9 != null">
+ gift9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="gift10 != null">
+ gift10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="gift11 != null">
+ gift11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="gift12 != null">
+ gift12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ <if test="amount13 != null">
+ amount13,
+ </if>
+ <if test="gift13 != null">
+ gift13,
+ </if>
+ <if test="times13 != null">
+ times13,
+ </if>
+ <if test="amount14 != null">
+ amount14,
+ </if>
+ <if test="gift14 != null">
+ gift14,
+ </if>
+ <if test="times14 != null">
+ times14,
+ </if>
+ <if test="amount15 != null">
+ amount15,
+ </if>
+ <if test="gift15 != null">
+ gift15,
+ </if>
+ <if test="times15 != null">
+ times15,
+ </if>
+ <if test="amount16 != null">
+ amount16,
+ </if>
+ <if test="gift16 != null">
+ gift16,
+ </if>
+ <if test="times16 != null">
+ times16,
+ </if>
+ <if test="amount17 != null">
+ amount17,
+ </if>
+ <if test="gift17 != null">
+ gift17,
+ </if>
+ <if test="times17 != null">
+ times17,
+ </if>
+ <if test="amount18 != null">
+ amount18,
+ </if>
+ <if test="gift18 != null">
+ gift18,
+ </if>
+ <if test="times18 != null">
+ times18,
+ </if>
+ <if test="amount19 != null">
+ amount19,
+ </if>
+ <if test="gift19 != null">
+ gift19,
+ </if>
+ <if test="times19 != null">
+ times19,
+ </if>
+ <if test="amount20 != null">
+ amount20,
+ </if>
+ <if test="gift20 != null">
+ gift20,
+ </if>
+ <if test="times20 != null">
+ times20,
+ </if>
+ <if test="amount21 != null">
+ amount21,
+ </if>
+ <if test="gift21 != null">
+ gift21,
+ </if>
+ <if test="times21 != null">
+ times21,
+ </if>
+ <if test="amount22 != null">
+ amount22,
+ </if>
+ <if test="gift22 != null">
+ gift22,
+ </if>
+ <if test="times22 != null">
+ times22,
+ </if>
+ <if test="amount23 != null">
+ amount23,
+ </if>
+ <if test="gift23 != null">
+ gift23,
+ </if>
+ <if test="times23 != null">
+ times23,
+ </if>
+ <if test="amount24 != null">
+ amount24,
+ </if>
+ <if test="gift24 != null">
+ gift24,
+ </if>
+ <if test="times24 != null">
+ times24,
+ </if>
+ <if test="amount25 != null">
+ amount25,
+ </if>
+ <if test="gift25 != null">
+ gift25,
+ </if>
+ <if test="times25 != null">
+ times25,
+ </if>
+ <if test="amount26 != null">
+ amount26,
+ </if>
+ <if test="gift26 != null">
+ gift26,
+ </if>
+ <if test="times26 != null">
+ times26,
+ </if>
+ <if test="amount27 != null">
+ amount27,
+ </if>
+ <if test="gift27 != null">
+ gift27,
+ </if>
+ <if test="times27 != null">
+ times27,
+ </if>
+ <if test="amount28 != null">
+ amount28,
+ </if>
+ <if test="gift28 != null">
+ gift28,
+ </if>
+ <if test="times28 != null">
+ times28,
+ </if>
+ <if test="amount29 != null">
+ amount29,
+ </if>
+ <if test="gift29 != null">
+ gift29,
+ </if>
+ <if test="times29 != null">
+ times29,
+ </if>
+ <if test="amount30 != null">
+ amount30,
+ </if>
+ <if test="gift30 != null">
+ gift30,
+ </if>
+ <if test="times30 != null">
+ times30,
+ </if>
+ <if test="amount31 != null">
+ amount31,
+ </if>
+ <if test="gift31 != null">
+ gift31,
+ </if>
+ <if test="times31 != null">
+ times31,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="gift13 != null">
+ #{gift13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="gift14 != null">
+ #{gift14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="gift15 != null">
+ #{gift15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="gift16 != null">
+ #{gift16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="gift17 != null">
+ #{gift17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="gift18 != null">
+ #{gift18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="gift19 != null">
+ #{gift19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="gift20 != null">
+ #{gift20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="gift21 != null">
+ #{gift21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="gift22 != null">
+ #{gift22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="gift23 != null">
+ #{gift23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="gift24 != null">
+ #{gift24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="gift25 != null">
+ #{gift25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="gift26 != null">
+ #{gift26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="gift27 != null">
+ #{gift27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="gift28 != null">
+ #{gift28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="gift29 != null">
+ #{gift29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="gift30 != null">
+ #{gift30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="gift31 != null">
+ #{gift31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ #{times31,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay">
+ <!--@mbg.generated-->
+ update st_recharge_ic_day
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ card_id = #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="month != null">
+ `month` = #{month,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ gift1 = #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ gift2 = #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ gift3 = #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ gift4 = #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ gift5 = #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ gift6 = #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ gift7 = #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ gift8 = #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ gift9 = #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ gift10 = #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ gift11 = #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ gift12 = #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ <if test="amount13 != null">
+ amount13 = #{amount13,jdbcType=FLOAT},
+ </if>
+ <if test="gift13 != null">
+ gift13 = #{gift13,jdbcType=FLOAT},
+ </if>
+ <if test="times13 != null">
+ times13 = #{times13,jdbcType=INTEGER},
+ </if>
+ <if test="amount14 != null">
+ amount14 = #{amount14,jdbcType=FLOAT},
+ </if>
+ <if test="gift14 != null">
+ gift14 = #{gift14,jdbcType=FLOAT},
+ </if>
+ <if test="times14 != null">
+ times14 = #{times14,jdbcType=INTEGER},
+ </if>
+ <if test="amount15 != null">
+ amount15 = #{amount15,jdbcType=FLOAT},
+ </if>
+ <if test="gift15 != null">
+ gift15 = #{gift15,jdbcType=FLOAT},
+ </if>
+ <if test="times15 != null">
+ times15 = #{times15,jdbcType=INTEGER},
+ </if>
+ <if test="amount16 != null">
+ amount16 = #{amount16,jdbcType=FLOAT},
+ </if>
+ <if test="gift16 != null">
+ gift16 = #{gift16,jdbcType=FLOAT},
+ </if>
+ <if test="times16 != null">
+ times16 = #{times16,jdbcType=INTEGER},
+ </if>
+ <if test="amount17 != null">
+ amount17 = #{amount17,jdbcType=FLOAT},
+ </if>
+ <if test="gift17 != null">
+ gift17 = #{gift17,jdbcType=FLOAT},
+ </if>
+ <if test="times17 != null">
+ times17 = #{times17,jdbcType=INTEGER},
+ </if>
+ <if test="amount18 != null">
+ amount18 = #{amount18,jdbcType=FLOAT},
+ </if>
+ <if test="gift18 != null">
+ gift18 = #{gift18,jdbcType=FLOAT},
+ </if>
+ <if test="times18 != null">
+ times18 = #{times18,jdbcType=INTEGER},
+ </if>
+ <if test="amount19 != null">
+ amount19 = #{amount19,jdbcType=FLOAT},
+ </if>
+ <if test="gift19 != null">
+ gift19 = #{gift19,jdbcType=FLOAT},
+ </if>
+ <if test="times19 != null">
+ times19 = #{times19,jdbcType=INTEGER},
+ </if>
+ <if test="amount20 != null">
+ amount20 = #{amount20,jdbcType=FLOAT},
+ </if>
+ <if test="gift20 != null">
+ gift20 = #{gift20,jdbcType=FLOAT},
+ </if>
+ <if test="times20 != null">
+ times20 = #{times20,jdbcType=INTEGER},
+ </if>
+ <if test="amount21 != null">
+ amount21 = #{amount21,jdbcType=FLOAT},
+ </if>
+ <if test="gift21 != null">
+ gift21 = #{gift21,jdbcType=FLOAT},
+ </if>
+ <if test="times21 != null">
+ times21 = #{times21,jdbcType=INTEGER},
+ </if>
+ <if test="amount22 != null">
+ amount22 = #{amount22,jdbcType=FLOAT},
+ </if>
+ <if test="gift22 != null">
+ gift22 = #{gift22,jdbcType=FLOAT},
+ </if>
+ <if test="times22 != null">
+ times22 = #{times22,jdbcType=INTEGER},
+ </if>
+ <if test="amount23 != null">
+ amount23 = #{amount23,jdbcType=FLOAT},
+ </if>
+ <if test="gift23 != null">
+ gift23 = #{gift23,jdbcType=FLOAT},
+ </if>
+ <if test="times23 != null">
+ times23 = #{times23,jdbcType=INTEGER},
+ </if>
+ <if test="amount24 != null">
+ amount24 = #{amount24,jdbcType=FLOAT},
+ </if>
+ <if test="gift24 != null">
+ gift24 = #{gift24,jdbcType=FLOAT},
+ </if>
+ <if test="times24 != null">
+ times24 = #{times24,jdbcType=INTEGER},
+ </if>
+ <if test="amount25 != null">
+ amount25 = #{amount25,jdbcType=FLOAT},
+ </if>
+ <if test="gift25 != null">
+ gift25 = #{gift25,jdbcType=FLOAT},
+ </if>
+ <if test="times25 != null">
+ times25 = #{times25,jdbcType=INTEGER},
+ </if>
+ <if test="amount26 != null">
+ amount26 = #{amount26,jdbcType=FLOAT},
+ </if>
+ <if test="gift26 != null">
+ gift26 = #{gift26,jdbcType=FLOAT},
+ </if>
+ <if test="times26 != null">
+ times26 = #{times26,jdbcType=INTEGER},
+ </if>
+ <if test="amount27 != null">
+ amount27 = #{amount27,jdbcType=FLOAT},
+ </if>
+ <if test="gift27 != null">
+ gift27 = #{gift27,jdbcType=FLOAT},
+ </if>
+ <if test="times27 != null">
+ times27 = #{times27,jdbcType=INTEGER},
+ </if>
+ <if test="amount28 != null">
+ amount28 = #{amount28,jdbcType=FLOAT},
+ </if>
+ <if test="gift28 != null">
+ gift28 = #{gift28,jdbcType=FLOAT},
+ </if>
+ <if test="times28 != null">
+ times28 = #{times28,jdbcType=INTEGER},
+ </if>
+ <if test="amount29 != null">
+ amount29 = #{amount29,jdbcType=FLOAT},
+ </if>
+ <if test="gift29 != null">
+ gift29 = #{gift29,jdbcType=FLOAT},
+ </if>
+ <if test="times29 != null">
+ times29 = #{times29,jdbcType=INTEGER},
+ </if>
+ <if test="amount30 != null">
+ amount30 = #{amount30,jdbcType=FLOAT},
+ </if>
+ <if test="gift30 != null">
+ gift30 = #{gift30,jdbcType=FLOAT},
+ </if>
+ <if test="times30 != null">
+ times30 = #{times30,jdbcType=INTEGER},
+ </if>
+ <if test="amount31 != null">
+ amount31 = #{amount31,jdbcType=FLOAT},
+ </if>
+ <if test="gift31 != null">
+ gift31 = #{gift31,jdbcType=FLOAT},
+ </if>
+ <if test="times31 != null">
+ times31 = #{times31,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay">
+ <!--@mbg.generated-->
+ update st_recharge_ic_day
+ set client_id = #{clientId,jdbcType=BIGINT},
+ card_id = #{cardId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ `month` = #{month,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ gift1 = #{gift1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ gift2 = #{gift2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ gift3 = #{gift3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ gift4 = #{gift4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ gift5 = #{gift5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ gift6 = #{gift6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ gift7 = #{gift7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ gift8 = #{gift8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ gift9 = #{gift9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ gift10 = #{gift10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ gift11 = #{gift11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ gift12 = #{gift12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER},
+ amount13 = #{amount13,jdbcType=FLOAT},
+ gift13 = #{gift13,jdbcType=FLOAT},
+ times13 = #{times13,jdbcType=INTEGER},
+ amount14 = #{amount14,jdbcType=FLOAT},
+ gift14 = #{gift14,jdbcType=FLOAT},
+ times14 = #{times14,jdbcType=INTEGER},
+ amount15 = #{amount15,jdbcType=FLOAT},
+ gift15 = #{gift15,jdbcType=FLOAT},
+ times15 = #{times15,jdbcType=INTEGER},
+ amount16 = #{amount16,jdbcType=FLOAT},
+ gift16 = #{gift16,jdbcType=FLOAT},
+ times16 = #{times16,jdbcType=INTEGER},
+ amount17 = #{amount17,jdbcType=FLOAT},
+ gift17 = #{gift17,jdbcType=FLOAT},
+ times17 = #{times17,jdbcType=INTEGER},
+ amount18 = #{amount18,jdbcType=FLOAT},
+ gift18 = #{gift18,jdbcType=FLOAT},
+ times18 = #{times18,jdbcType=INTEGER},
+ amount19 = #{amount19,jdbcType=FLOAT},
+ gift19 = #{gift19,jdbcType=FLOAT},
+ times19 = #{times19,jdbcType=INTEGER},
+ amount20 = #{amount20,jdbcType=FLOAT},
+ gift20 = #{gift20,jdbcType=FLOAT},
+ times20 = #{times20,jdbcType=INTEGER},
+ amount21 = #{amount21,jdbcType=FLOAT},
+ gift21 = #{gift21,jdbcType=FLOAT},
+ times21 = #{times21,jdbcType=INTEGER},
+ amount22 = #{amount22,jdbcType=FLOAT},
+ gift22 = #{gift22,jdbcType=FLOAT},
+ times22 = #{times22,jdbcType=INTEGER},
+ amount23 = #{amount23,jdbcType=FLOAT},
+ gift23 = #{gift23,jdbcType=FLOAT},
+ times23 = #{times23,jdbcType=INTEGER},
+ amount24 = #{amount24,jdbcType=FLOAT},
+ gift24 = #{gift24,jdbcType=FLOAT},
+ times24 = #{times24,jdbcType=INTEGER},
+ amount25 = #{amount25,jdbcType=FLOAT},
+ gift25 = #{gift25,jdbcType=FLOAT},
+ times25 = #{times25,jdbcType=INTEGER},
+ amount26 = #{amount26,jdbcType=FLOAT},
+ gift26 = #{gift26,jdbcType=FLOAT},
+ times26 = #{times26,jdbcType=INTEGER},
+ amount27 = #{amount27,jdbcType=FLOAT},
+ gift27 = #{gift27,jdbcType=FLOAT},
+ times27 = #{times27,jdbcType=INTEGER},
+ amount28 = #{amount28,jdbcType=FLOAT},
+ gift28 = #{gift28,jdbcType=FLOAT},
+ times28 = #{times28,jdbcType=INTEGER},
+ amount29 = #{amount29,jdbcType=FLOAT},
+ gift29 = #{gift29,jdbcType=FLOAT},
+ times29 = #{times29,jdbcType=INTEGER},
+ amount30 = #{amount30,jdbcType=FLOAT},
+ gift30 = #{gift30,jdbcType=FLOAT},
+ times30 = #{times30,jdbcType=INTEGER},
+ amount31 = #{amount31,jdbcType=FLOAT},
+ gift31 = #{gift31,jdbcType=FLOAT},
+ times31 = #{times31,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcRechargeStatistics">
+ select client_id as clientId,
+ card_id as cardId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0) + IFNULL(amount13,0) + IFNULL(amount14,0) + IFNULL(amount15,0) + IFNULL(amount16,0) + IFNULL(amount17,0) + IFNULL(amount18,0) + IFNULL(amount19,0) +
+ IFNULL(amount20,0) + IFNULL(amount21,0) + IFNULL(amount22,0) + IFNULL(amount23,0) + IFNULL(amount24,0) + IFNULL(amount25,0) + IFNULL(amount26,0) + IFNULL(amount27,0) + IFNULL(amount28,0) + IFNULL(amount29,0) +
+ IFNULL(amount30,0) + IFNULL(amount31,0)
+ ) as amount,
+ sum(
+ IFNULL(gift1,0) + IFNULL(gift2,0) + IFNULL(gift3,0) + IFNULL(gift4,0) + IFNULL(gift5,0) + IFNULL(gift6,0) + IFNULL(gift7,0) + IFNULL(gift8,0) + IFNULL(gift9,0) +
+ IFNULL(gift10,0) + IFNULL(gift11,0) + IFNULL(gift12,0) + IFNULL(gift13,0) + IFNULL(gift14,0) + IFNULL(gift15,0) + IFNULL(gift16,0) + IFNULL(gift17,0) + IFNULL(gift18,0) + IFNULL(gift19,0) +
+ IFNULL(gift20,0) + IFNULL(gift21,0) + IFNULL(gift22,0) + IFNULL(gift23,0) + IFNULL(gift24,0) + IFNULL(gift25,0) + IFNULL(gift26,0) + IFNULL(gift27,0) + IFNULL(gift28,0) + IFNULL(gift29,0) +
+ IFNULL(gift30,0) + IFNULL(gift31,0)
+ ) as gift,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0) + IFNULL(times13,0) + IFNULL(times14,0) + IFNULL(times15,0) + IFNULL(times16,0) + IFNULL(times17,0) + IFNULL(times18,0) + IFNULL(times19,0) +
+ IFNULL(times20,0) + IFNULL(times21,0) + IFNULL(times22,0) + IFNULL(times23,0) + IFNULL(times24,0) + IFNULL(times25,0) + IFNULL(times26,0) + IFNULL(times27,0) + IFNULL(times28,0) + IFNULL(times29,0) +
+ IFNULL(times30,0) + IFNULL(times31,0)
+ ) as times
+ from st_recharge_ic_day
+ where year = #{year, jdbcType=INTEGER}
+ and month = #{month, jdbcType=INTEGER}
+ group by client_id, card_id
+ </select>
+
+ <select id="selectByClientAndCardAndYearAndMonth" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay">
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_day
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and card_id = #{cardId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ and month = #{month,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcMonthMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcMonthMapper.xml
new file mode 100644
index 0000000..db4a189
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcMonthMapper.xml
@@ -0,0 +1,548 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StRechargeIcMonthMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth">
+ <!--@mbg.generated-->
+ <!--@Table st_recharge_ic_month-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="card_id" jdbcType="BIGINT" property="cardId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount1" jdbcType="FLOAT" property="amount1" />
+ <result column="gift1" jdbcType="FLOAT" property="gift1" />
+ <result column="times1" jdbcType="INTEGER" property="times1" />
+ <result column="amount2" jdbcType="FLOAT" property="amount2" />
+ <result column="gift2" jdbcType="FLOAT" property="gift2" />
+ <result column="times2" jdbcType="INTEGER" property="times2" />
+ <result column="amount3" jdbcType="FLOAT" property="amount3" />
+ <result column="gift3" jdbcType="FLOAT" property="gift3" />
+ <result column="times3" jdbcType="INTEGER" property="times3" />
+ <result column="amount4" jdbcType="FLOAT" property="amount4" />
+ <result column="gift4" jdbcType="FLOAT" property="gift4" />
+ <result column="times4" jdbcType="INTEGER" property="times4" />
+ <result column="amount5" jdbcType="FLOAT" property="amount5" />
+ <result column="gift5" jdbcType="FLOAT" property="gift5" />
+ <result column="times5" jdbcType="INTEGER" property="times5" />
+ <result column="amount6" jdbcType="FLOAT" property="amount6" />
+ <result column="gift6" jdbcType="FLOAT" property="gift6" />
+ <result column="times6" jdbcType="INTEGER" property="times6" />
+ <result column="amount7" jdbcType="FLOAT" property="amount7" />
+ <result column="gift7" jdbcType="FLOAT" property="gift7" />
+ <result column="times7" jdbcType="INTEGER" property="times7" />
+ <result column="amount8" jdbcType="FLOAT" property="amount8" />
+ <result column="gift8" jdbcType="FLOAT" property="gift8" />
+ <result column="times8" jdbcType="INTEGER" property="times8" />
+ <result column="amount9" jdbcType="FLOAT" property="amount9" />
+ <result column="gift9" jdbcType="FLOAT" property="gift9" />
+ <result column="times9" jdbcType="INTEGER" property="times9" />
+ <result column="amount10" jdbcType="FLOAT" property="amount10" />
+ <result column="gift10" jdbcType="FLOAT" property="gift10" />
+ <result column="times10" jdbcType="INTEGER" property="times10" />
+ <result column="amount11" jdbcType="FLOAT" property="amount11" />
+ <result column="gift11" jdbcType="FLOAT" property="gift11" />
+ <result column="times11" jdbcType="INTEGER" property="times11" />
+ <result column="amount12" jdbcType="FLOAT" property="amount12" />
+ <result column="gift12" jdbcType="FLOAT" property="gift12" />
+ <result column="times12" jdbcType="INTEGER" property="times12" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, card_id, `year`, amount1, gift1, times1, amount2, gift2, times2, amount3,
+ gift3, times3, amount4, gift4, times4, amount5, gift5, times5, amount6, gift6, times6,
+ amount7, gift7, times7, amount8, gift8, times8, amount9, gift9, times9, amount10,
+ gift10, times10, amount11, gift11, times11, amount12, gift12, times12
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_month
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_recharge_ic_month
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth">
+ <!--@mbg.generated-->
+ insert into st_recharge_ic_month (id, client_id, card_id,
+ `year`, amount1, gift1, times1,
+ amount2, gift2, times2,
+ amount3, gift3, times3,
+ amount4, gift4, times4,
+ amount5, gift5, times5,
+ amount6, gift6, times6,
+ amount7, gift7, times7,
+ amount8, gift8, times8,
+ amount9, gift9, times9,
+ amount10, gift10, times10,
+ amount11, gift11, times11,
+ amount12, gift12, times12
+ )
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},
+ #{year,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT}, #{gift1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER},
+ #{amount2,jdbcType=FLOAT}, #{gift2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER},
+ #{amount3,jdbcType=FLOAT}, #{gift3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER},
+ #{amount4,jdbcType=FLOAT}, #{gift4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER},
+ #{amount5,jdbcType=FLOAT}, #{gift5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER},
+ #{amount6,jdbcType=FLOAT}, #{gift6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER},
+ #{amount7,jdbcType=FLOAT}, #{gift7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER},
+ #{amount8,jdbcType=FLOAT}, #{gift8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER},
+ #{amount9,jdbcType=FLOAT}, #{gift9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER},
+ #{amount10,jdbcType=FLOAT}, #{gift10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER},
+ #{amount11,jdbcType=FLOAT}, #{gift11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER},
+ #{amount12,jdbcType=FLOAT}, #{gift12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}
+ )
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth">
+ <!--@mbg.generated-->
+ insert into st_recharge_ic_month
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="cardId != null">
+ card_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount1 != null">
+ amount1,
+ </if>
+ <if test="gift1 != null">
+ gift1,
+ </if>
+ <if test="times1 != null">
+ times1,
+ </if>
+ <if test="amount2 != null">
+ amount2,
+ </if>
+ <if test="gift2 != null">
+ gift2,
+ </if>
+ <if test="times2 != null">
+ times2,
+ </if>
+ <if test="amount3 != null">
+ amount3,
+ </if>
+ <if test="gift3 != null">
+ gift3,
+ </if>
+ <if test="times3 != null">
+ times3,
+ </if>
+ <if test="amount4 != null">
+ amount4,
+ </if>
+ <if test="gift4 != null">
+ gift4,
+ </if>
+ <if test="times4 != null">
+ times4,
+ </if>
+ <if test="amount5 != null">
+ amount5,
+ </if>
+ <if test="gift5 != null">
+ gift5,
+ </if>
+ <if test="times5 != null">
+ times5,
+ </if>
+ <if test="amount6 != null">
+ amount6,
+ </if>
+ <if test="gift6 != null">
+ gift6,
+ </if>
+ <if test="times6 != null">
+ times6,
+ </if>
+ <if test="amount7 != null">
+ amount7,
+ </if>
+ <if test="gift7 != null">
+ gift7,
+ </if>
+ <if test="times7 != null">
+ times7,
+ </if>
+ <if test="amount8 != null">
+ amount8,
+ </if>
+ <if test="gift8 != null">
+ gift8,
+ </if>
+ <if test="times8 != null">
+ times8,
+ </if>
+ <if test="amount9 != null">
+ amount9,
+ </if>
+ <if test="gift9 != null">
+ gift9,
+ </if>
+ <if test="times9 != null">
+ times9,
+ </if>
+ <if test="amount10 != null">
+ amount10,
+ </if>
+ <if test="gift10 != null">
+ gift10,
+ </if>
+ <if test="times10 != null">
+ times10,
+ </if>
+ <if test="amount11 != null">
+ amount11,
+ </if>
+ <if test="gift11 != null">
+ gift11,
+ </if>
+ <if test="times11 != null">
+ times11,
+ </if>
+ <if test="amount12 != null">
+ amount12,
+ </if>
+ <if test="gift12 != null">
+ gift12,
+ </if>
+ <if test="times12 != null">
+ times12,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ #{times12,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth">
+ <!--@mbg.generated-->
+ update st_recharge_ic_month
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ card_id = #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount1 != null">
+ amount1 = #{amount1,jdbcType=FLOAT},
+ </if>
+ <if test="gift1 != null">
+ gift1 = #{gift1,jdbcType=FLOAT},
+ </if>
+ <if test="times1 != null">
+ times1 = #{times1,jdbcType=INTEGER},
+ </if>
+ <if test="amount2 != null">
+ amount2 = #{amount2,jdbcType=FLOAT},
+ </if>
+ <if test="gift2 != null">
+ gift2 = #{gift2,jdbcType=FLOAT},
+ </if>
+ <if test="times2 != null">
+ times2 = #{times2,jdbcType=INTEGER},
+ </if>
+ <if test="amount3 != null">
+ amount3 = #{amount3,jdbcType=FLOAT},
+ </if>
+ <if test="gift3 != null">
+ gift3 = #{gift3,jdbcType=FLOAT},
+ </if>
+ <if test="times3 != null">
+ times3 = #{times3,jdbcType=INTEGER},
+ </if>
+ <if test="amount4 != null">
+ amount4 = #{amount4,jdbcType=FLOAT},
+ </if>
+ <if test="gift4 != null">
+ gift4 = #{gift4,jdbcType=FLOAT},
+ </if>
+ <if test="times4 != null">
+ times4 = #{times4,jdbcType=INTEGER},
+ </if>
+ <if test="amount5 != null">
+ amount5 = #{amount5,jdbcType=FLOAT},
+ </if>
+ <if test="gift5 != null">
+ gift5 = #{gift5,jdbcType=FLOAT},
+ </if>
+ <if test="times5 != null">
+ times5 = #{times5,jdbcType=INTEGER},
+ </if>
+ <if test="amount6 != null">
+ amount6 = #{amount6,jdbcType=FLOAT},
+ </if>
+ <if test="gift6 != null">
+ gift6 = #{gift6,jdbcType=FLOAT},
+ </if>
+ <if test="times6 != null">
+ times6 = #{times6,jdbcType=INTEGER},
+ </if>
+ <if test="amount7 != null">
+ amount7 = #{amount7,jdbcType=FLOAT},
+ </if>
+ <if test="gift7 != null">
+ gift7 = #{gift7,jdbcType=FLOAT},
+ </if>
+ <if test="times7 != null">
+ times7 = #{times7,jdbcType=INTEGER},
+ </if>
+ <if test="amount8 != null">
+ amount8 = #{amount8,jdbcType=FLOAT},
+ </if>
+ <if test="gift8 != null">
+ gift8 = #{gift8,jdbcType=FLOAT},
+ </if>
+ <if test="times8 != null">
+ times8 = #{times8,jdbcType=INTEGER},
+ </if>
+ <if test="amount9 != null">
+ amount9 = #{amount9,jdbcType=FLOAT},
+ </if>
+ <if test="gift9 != null">
+ gift9 = #{gift9,jdbcType=FLOAT},
+ </if>
+ <if test="times9 != null">
+ times9 = #{times9,jdbcType=INTEGER},
+ </if>
+ <if test="amount10 != null">
+ amount10 = #{amount10,jdbcType=FLOAT},
+ </if>
+ <if test="gift10 != null">
+ gift10 = #{gift10,jdbcType=FLOAT},
+ </if>
+ <if test="times10 != null">
+ times10 = #{times10,jdbcType=INTEGER},
+ </if>
+ <if test="amount11 != null">
+ amount11 = #{amount11,jdbcType=FLOAT},
+ </if>
+ <if test="gift11 != null">
+ gift11 = #{gift11,jdbcType=FLOAT},
+ </if>
+ <if test="times11 != null">
+ times11 = #{times11,jdbcType=INTEGER},
+ </if>
+ <if test="amount12 != null">
+ amount12 = #{amount12,jdbcType=FLOAT},
+ </if>
+ <if test="gift12 != null">
+ gift12 = #{gift12,jdbcType=FLOAT},
+ </if>
+ <if test="times12 != null">
+ times12 = #{times12,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth">
+ <!--@mbg.generated-->
+ update st_recharge_ic_month
+ set client_id = #{clientId,jdbcType=BIGINT},
+ card_id = #{cardId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount1 = #{amount1,jdbcType=FLOAT},
+ gift1 = #{gift1,jdbcType=FLOAT},
+ times1 = #{times1,jdbcType=INTEGER},
+ amount2 = #{amount2,jdbcType=FLOAT},
+ gift2 = #{gift2,jdbcType=FLOAT},
+ times2 = #{times2,jdbcType=INTEGER},
+ amount3 = #{amount3,jdbcType=FLOAT},
+ gift3 = #{gift3,jdbcType=FLOAT},
+ times3 = #{times3,jdbcType=INTEGER},
+ amount4 = #{amount4,jdbcType=FLOAT},
+ gift4 = #{gift4,jdbcType=FLOAT},
+ times4 = #{times4,jdbcType=INTEGER},
+ amount5 = #{amount5,jdbcType=FLOAT},
+ gift5 = #{gift5,jdbcType=FLOAT},
+ times5 = #{times5,jdbcType=INTEGER},
+ amount6 = #{amount6,jdbcType=FLOAT},
+ gift6 = #{gift6,jdbcType=FLOAT},
+ times6 = #{times6,jdbcType=INTEGER},
+ amount7 = #{amount7,jdbcType=FLOAT},
+ gift7 = #{gift7,jdbcType=FLOAT},
+ times7 = #{times7,jdbcType=INTEGER},
+ amount8 = #{amount8,jdbcType=FLOAT},
+ gift8 = #{gift8,jdbcType=FLOAT},
+ times8 = #{times8,jdbcType=INTEGER},
+ amount9 = #{amount9,jdbcType=FLOAT},
+ gift9 = #{gift9,jdbcType=FLOAT},
+ times9 = #{times9,jdbcType=INTEGER},
+ amount10 = #{amount10,jdbcType=FLOAT},
+ gift10 = #{gift10,jdbcType=FLOAT},
+ times10 = #{times10,jdbcType=INTEGER},
+ amount11 = #{amount11,jdbcType=FLOAT},
+ gift11 = #{gift11,jdbcType=FLOAT},
+ times11 = #{times11,jdbcType=INTEGER},
+ amount12 = #{amount12,jdbcType=FLOAT},
+ gift12 = #{gift12,jdbcType=FLOAT},
+ times12 = #{times12,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcRechargeStatistics">
+ select client_id as clientId,
+ card_id as cardId,
+ sum(
+ IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) +
+ IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0)
+ ) as amount,
+ sum(
+ IFNULL(gift1,0) + IFNULL(gift2,0) + IFNULL(gift3,0) + IFNULL(gift4,0) + IFNULL(gift5,0) + IFNULL(gift6,0) + IFNULL(gift7,0) + IFNULL(gift8,0) + IFNULL(gift9,0) +
+ IFNULL(gift10,0) + IFNULL(gift11,0) + IFNULL(gift12,0)
+ ) as gift,
+ sum(
+ IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) +
+ IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0)
+ ) as times
+ from st_recharge_ic_month
+ where year = #{year, jdbcType=INTEGER}
+ group by client_id, card_id
+ </select>
+
+ <select id="selectByClientAndCardAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcMonth">
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_month
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and card_id = #{cardId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcYearMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcYearMapper.xml
new file mode 100644
index 0000000..db050d4
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/StRechargeIcYearMapper.xml
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.dy.pipIrrGlobal.daoSt.StRechargeIcYearMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear">
+ <!--@mbg.generated-->
+ <!--@Table st_recharge_ic_year-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="client_id" jdbcType="BIGINT" property="clientId" />
+ <result column="card_id" jdbcType="BIGINT" property="cardId" />
+ <result column="year" jdbcType="INTEGER" property="year" />
+ <result column="amount" jdbcType="FLOAT" property="amount" />
+ <result column="gift" jdbcType="FLOAT" property="gift" />
+ <result column="times" jdbcType="INTEGER" property="times" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, client_id, card_id, `year`, amount, gift, times
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_year
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from st_recharge_ic_year
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear">
+ <!--@mbg.generated-->
+ insert into st_recharge_ic_year (id, client_id, card_id,
+ `year`, amount, gift, times
+ )
+ values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},
+ #{year,jdbcType=INTEGER}, #{amount,jdbcType=FLOAT}, #{gift,jdbcType=FLOAT}, #{times,jdbcType=INTEGER}
+ )
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear">
+ <!--@mbg.generated-->
+ insert into st_recharge_ic_year
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="clientId != null">
+ client_id,
+ </if>
+ <if test="cardId != null">
+ card_id,
+ </if>
+ <if test="year != null">
+ `year`,
+ </if>
+ <if test="amount != null">
+ amount,
+ </if>
+ <if test="gift != null">
+ gift,
+ </if>
+ <if test="times != null">
+ times,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="clientId != null">
+ #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="gift != null">
+ #{gift,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ #{times,jdbcType=INTEGER},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear">
+ <!--@mbg.generated-->
+ update st_recharge_ic_year
+ <set>
+ <if test="clientId != null">
+ client_id = #{clientId,jdbcType=BIGINT},
+ </if>
+ <if test="cardId != null">
+ card_id = #{cardId,jdbcType=BIGINT},
+ </if>
+ <if test="year != null">
+ `year` = #{year,jdbcType=INTEGER},
+ </if>
+ <if test="amount != null">
+ amount = #{amount,jdbcType=FLOAT},
+ </if>
+ <if test="gift != null">
+ gift = #{gift,jdbcType=FLOAT},
+ </if>
+ <if test="times != null">
+ times = #{times,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear">
+ <!--@mbg.generated-->
+ update st_recharge_ic_year
+ set client_id = #{clientId,jdbcType=BIGINT},
+ card_id = #{cardId,jdbcType=BIGINT},
+ `year` = #{year,jdbcType=INTEGER},
+ amount = #{amount,jdbcType=FLOAT},
+ gift = #{gift,jdbcType=FLOAT},
+ times = #{times,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+
+ <!-- //////////////////////////////////// -->
+ <!-- //缁熻鐩稿叧 // -->
+ <!-- //////////////////////////////////// -->
+ <select id="selectByClientAndCardAndYear" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcYear">
+ select
+ <include refid="Base_Column_List" />
+ from st_recharge_ic_year
+ where client_id = #{clientId,jdbcType=BIGINT}
+ and card_id = #{cardId,jdbcType=BIGINT}
+ and year = #{year,jdbcType=INTEGER}
+ </select>
+
+
+</mapper>
\ No newline at end of file
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByClient.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByClient.java
index 28fee04..841eae2 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByClient.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByClient.java
@@ -1,7 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -10,10 +9,10 @@
* @Date: 2024/12/23 14:55
* @Description
*/
+
+@Slf4j
@Component
public class StChargeByClient {
-
- private static Logger log = LogManager.getLogger(StChargeByClient.class.getName()) ;
@Autowired
protected StChargeByClientSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByIc.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByIc.java
index 305d514..11d20f3 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByIc.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StChargeByIc.java
@@ -1,7 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -10,10 +9,9 @@
* @Date: 2024/12/23 14:53
* @Description
*/
+@Slf4j
@Component
public class StChargeByIc {
-
- private static Logger log = LogManager.getLogger(StChargeByIc.class.getName()) ;
@Autowired
protected StChargeByIcSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClient.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClient.java
index 9701ed8..82aebe8 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClient.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClient.java
@@ -1,7 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -10,11 +9,9 @@
* @Date: 2024/7/24 9:31
* @Description
*/
+@Slf4j
@Component
public class StClient {
-
- private static Logger log = LogManager.getLogger(StClient.class.getName()) ;
-
@Autowired
protected StClientSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClientSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClientSv.java
index b01338b..471d7ce 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClientSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StClientSv.java
@@ -30,7 +30,7 @@
protected StClientAmountYearMapper stClientAmountYearDao ;
/**
- * 鏈堢粺璁�---婕忔崯
+ * 鏈堢粺璁�---鍐滄埛鐢ㄦ按閲忓強閲戦
*/
@Transactional
protected void statisticsMonth(Integer statisticsYear, Integer statisticsMonth, Long statisticsStartId, Long statisticsEndId){
@@ -60,7 +60,7 @@
}
/**
- * 骞寸粺璁�---婕忔崯
+ * 骞寸粺璁�---鍐滄埛鐢ㄦ按閲忓強閲戦
*/
@Transactional
protected void statisticsYear(Integer statisticsYear){
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByClient.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByClient.java
index e3c8912..44a5cee 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByClient.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByClient.java
@@ -1,7 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -12,10 +11,9 @@
* @Date: 2024/12/25 16:40
* @Description
*/
+@Slf4j
@Component
public class StConsumeByClient {
-
- private static Logger log = LogManager.getLogger(StConsumeByClient.class.getName()) ;
@Autowired
protected StConsumeByClientSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByIc.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByIc.java
index dc4c019..7492c56 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByIc.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StConsumeByIc.java
@@ -1,7 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -12,10 +11,9 @@
* @Date: 2024/12/25 16:31
* @Description
*/
+@Slf4j
@Component
public class StConsumeByIc {
-
- private static Logger log = LogManager.getLogger(StConsumeByIc.class.getName()) ;
@Autowired
protected StConsumeByIcSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntake.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntake.java
index 2d644bd..ba6185c 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntake.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntake.java
@@ -1,8 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import com.dy.pipIrrGlobal.daoRm.RmIntakeAmountDayMapper;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -11,10 +9,9 @@
* @Date: 2024/7/24 9:30
* @Description
*/
+@Slf4j
@Component
public class StIntake {
-
- private static Logger log = LogManager.getLogger(StIntake.class.getName()) ;
@Autowired
protected StIntakeSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntakeSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntakeSv.java
index c79aa74..3d6e9c7 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntakeSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StIntakeSv.java
@@ -30,7 +30,7 @@
protected StIntakeAmountYearMapper stIntakeAmountYearDao ;
/**
- * 鏈堢粺璁�---婕忔崯
+ * 鏈堢粺璁�---鍙栨按鍙g敤姘撮噺
*/
@Transactional
protected void statisticsMonth(Integer statisticsYear, Integer statisticsMonth, Long statisticsStartId, Long statisticsEndId){
@@ -60,7 +60,7 @@
}
/**
- * 骞寸粺璁�---婕忔崯
+ * 骞寸粺璁�---鍙栨按鍙g敤姘撮噺
*/
@Transactional
protected void statisticsYear(Integer statisticsYear){
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StLoss.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StLoss.java
index 6c17169..0db2469 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StLoss.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StLoss.java
@@ -1,7 +1,6 @@
package com.dy.pipIrrStatistics.statistics;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -10,10 +9,9 @@
* @Date: 2024/7/24 9:10
* @Description
*/
+@Slf4j
@Component
public class StLoss {
-
- private static Logger log = LogManager.getLogger(StLoss.class.getName()) ;
@Autowired
protected StLossSv sv ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsJob.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsJob.java
index ce95708..37fe0d4 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsJob.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsJob.java
@@ -57,6 +57,7 @@
if(orgTag == null){
return ;
}
+ DataSourceContext.set(orgTag);//璁剧疆鏁版嵁婧�
stLoss = SpringContextUtil.getBean(StLoss.class);
stIntake = SpringContextUtil.getBean(StIntake.class);
stClient = SpringContextUtil.getBean(StClient.class);
@@ -108,18 +109,6 @@
* 缁熻
*/
private void doStatisticsDay(){
- /*
- List<Org.OrgVo> orgList = Org.OrgList ;
- if(orgList != null && orgList.size() >0){
- for(Org.OrgVo vo : orgList){
- DataSourceContext.set(vo.tag);//璁剧疆鏁版嵁婧�
- stChargeByIc.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartId, statistics4DayEndId);
- stChargeByClient.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartId, statistics4DayEndId);
- stConsumeByIc.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartDt, statistics4DayEndDt);
- stConsumeByClient.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartDt, statistics4DayEndDt);
- }
- } */
- DataSourceContext.set(orgTag);//璁剧疆鏁版嵁婧�
stChargeByIc.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartId, statistics4DayEndId);
stChargeByClient.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartId, statistics4DayEndId);
stConsumeByIc.statistics4Day(statisticsYear, statisticsMonth, statisticsDay, statistics4DayStartDt, statistics4DayEndDt);
@@ -129,7 +118,6 @@
* 缁熻
*/
private void doStatisticsMonthAndYear(){
- DataSourceContext.set(orgTag);//璁剧疆鏁版嵁婧�
stLoss.statistics(statisticsYear, statisticsMonth, statistics4MonthYearStartId, statistics4MonthYearEndId) ;
stIntake.statistics(statisticsYear, statisticsMonth, statistics4MonthYearStartId, statistics4MonthYearEndId) ;
stClient.statistics(statisticsYear, statisticsMonth, statistics4MonthYearStartId, statistics4MonthYearEndId) ;
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsListener.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsListener.java
index db5df2c..53746fb 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsListener.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/StatisticsListener.java
@@ -2,8 +2,7 @@
import com.dy.common.schedulerTask.SchedulerTaskSupport;
import com.dy.pipIrrGlobal.util.Org;
import com.dy.pipIrrGlobal.util.OrgListenerSupport;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.event.ApplicationReadyEvent;
@@ -24,10 +23,9 @@
* Spring瀹瑰櫒骞舵病鏈夊垱寤哄畬锛岃�屾湰绫讳腑鐢ㄤ簡Spring瀹瑰櫒涓殑Bean锛屽嵆*Dao 銆�
* 鎵�浠ラ噰鐢ㄤ簡Spring浜嬩欢鐩戝惉鍣ㄦ潵瀹炵幇
*/
+@Slf4j
@Component
public class StatisticsListener extends OrgListenerSupport implements ApplicationListener<ApplicationReadyEvent> {
-
- private static Logger log = LogManager.getLogger(StatisticsListener.class.getName()) ;
protected static final String orgKey = "tag" ;
private static final String JobName = "statisticsJob" ;
@@ -83,6 +81,7 @@
HashMap<String , Object> jobDataMap = new HashMap<String , Object>() ;
jobDataMap.put(orgKey, vo.tag) ;
SchedulerTaskSupport.addDailyJob(JobName + vo.tag, JobGroupName, StatisticsJob.class, jobDataMap, startHour, startMinute ) ;
+ //SchedulerTaskSupport.addSecondlyJob(JobName + vo.tag, JobGroupName, TestJob.class, jobDataMap, 10, 10000, 0 ) ;
}
}
}
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestJob.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestJob.java
new file mode 100644
index 0000000..b2ab4b4
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestJob.java
@@ -0,0 +1,35 @@
+package com.dy.pipIrrStatistics.statistics;
+
+import com.dy.common.multiDataSource.DataSourceContext;
+import com.dy.common.schedulerTask.TaskJob;
+import com.dy.common.springUtil.SpringContextUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.quartz.JobDataMap;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/27 8:43
+ * @Description 娴嬭瘯涓嶅悓绾跨▼鏄惁寰楀埌涓撳睘鐨刼rgTag
+ */
+@Slf4j
+public class TestJob extends TaskJob {
+
+ private String orgTag ;
+
+ @Override
+ public void execute(JobExecutionContext ctx) throws JobExecutionException {
+ JobDataMap jobDataMap = ctx.getJobDetail().getJobDataMap() ;
+ if(jobDataMap != null){
+ orgTag = (String)jobDataMap.get(StatisticsListener.orgKey) ;
+ }
+ if(orgTag == null){
+ return ;
+ }
+ DataSourceContext.set(orgTag);//璁剧疆鏁版嵁婧�
+ log.info("璁剧疆鏁版嵁婧愶細" + orgTag);
+ TestWorker worker = SpringContextUtil.getBean(TestWorker.class);
+ worker.doJob();
+ }
+}
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestWorker.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestWorker.java
new file mode 100644
index 0000000..29e1ce5
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/statistics/TestWorker.java
@@ -0,0 +1,20 @@
+package com.dy.pipIrrStatistics.statistics;
+
+import com.dy.common.multiDataSource.DataSourceContext;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2024/12/27 8:48
+ * @Description 娴嬭瘯涓嶅悓绾跨▼鏄惁寰楀埌涓撳睘鐨刼rgTag
+ */
+@Slf4j
+@Component
+public class TestWorker {
+
+ public void doJob(){
+ String orgTag = DataSourceContext.get() ;
+ log.info("鎴戠殑鏁版嵁婧愭槸锛�" + orgTag);
+ }
+}
--
Gitblit v1.8.0