From 80e22bcc7af8aebed7443965655542fbe4966708 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期三, 09 四月 2025 15:11:55 +0800
Subject: [PATCH] 灌溉计划删除,所有命令发布都失败依然允许终止

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcDayMapper.java |   91 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 91 insertions(+), 0 deletions(-)

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..c49f08b
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSt/StConsumeIcDayMapper.java
@@ -0,0 +1,91 @@
+package com.dy.pipIrrGlobal.daoSt;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+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 extends BaseMapper<StConsumeIcDay> {
+    /**
+     * 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

--
Gitblit v1.8.0