From 9dad6e99192418817dc5f6ae1f9ff2f9dd33fb7c Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 17 七月 2025 14:30:12 +0800
Subject: [PATCH] 强制设置虚拟卡in_use字段为0的myBatis拦截器不起作用bug修改,bug原因是@Value()注解配置变量名称错误,从而未加入拦截器。

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateUnitMapper.java |   43 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 42 insertions(+), 1 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateUnitMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateUnitMapper.java
index 7fc478a..1c80909 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateUnitMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoIr/IrIrrigateUnitMapper.java
@@ -1,6 +1,13 @@
 package com.dy.pipIrrGlobal.daoIr;
 
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.dy.pipIrrGlobal.pojoIr.IrIrrigateUnit;
+import com.dy.pipIrrGlobal.voIr.VoUnit;
+import com.dy.pipIrrGlobal.voIr.VoUnitOne;
 import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+import java.util.Map;
 
 /**
  * @author :WuZeYu
@@ -9,5 +16,39 @@
  * @Description
  */
 @Mapper
-public interface IrIrrigateUnitMapper {
+public interface IrIrrigateUnitMapper extends BaseMapper<IrIrrigateUnit> {
+    //澧�
+    int insertSelective(IrIrrigateUnit record);
+
+    //鍒�
+    int deleteLogicById(Long id);
+
+    //鏀�
+    int updateByPrimaryKeySelective(IrIrrigateUnit record);
+
+    //鏌ヤ竴涓�
+    VoUnitOne selectById(Long id);
+
+    /**
+     * 鏍规嵁鎸囧畾鏉′欢鑾峰彇鍙栨按鍙h褰曟暟
+     *
+     * @param params
+     * @return
+     */
+    Long getRecordCount(Map<?, ?> params);
+
+    /**
+     * 鏍规嵁鎸囧畾鏉′欢鑾峰彇鍙栨按鍙h褰�
+     *
+     * @param params
+     * @return
+     */
+    List<VoUnit> getUnits(Map<?, ?> params);
+
+    /**
+     * 鏍规嵁鐏屾簤鍗曞厓ID鑾峰彇鍙栨按鍙D
+     * @param unitId
+     * @return
+     */
+    Long getIntakeIdByUnitId(Long unitId);
 }

--
Gitblit v1.8.0