From d9ced0cba82dfb6931ca65540eed2f55058342db Mon Sep 17 00:00:00 2001
From: wuzeyu <1223318623@qq.com>
Date: 星期二, 02 一月 2024 20:23:08 +0800
Subject: [PATCH] 取水口的 添加 修改 逻辑删除 查询一个 查询全部 分页查询

---
 pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java
index eb16e9d..21811c8 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java
@@ -48,6 +48,16 @@
     }
 
     /**
+     * 鏍规嵁涓婚敭鑾峰彇鍐滄埛瀵硅薄
+     * @param id 鍐滄埛涓婚敭
+     * @return 鍐滄埛瀵硅薄
+     */
+    public VoClient getOneClient(Long id) {
+        SeClient seClient = seClientMapper.selectByPrimaryKey(id);
+        VoClient voClient = SeClientToVoClient.INSTANCT.po2vo(seClient);
+        return voClient;
+    }
+    /**
      * 澧炲紑鍐滄埛
      * @param po
      * @return
@@ -73,4 +83,30 @@
     public Map getDistrictsByVillageId(Long villageId) {
         return baDistrictMapper.getDistrictsByVillageId(villageId);
     }
+
+    /**
+     * 鏍规嵁鍐滄埛ID閫昏緫鍒犻櫎鍐滄埛
+     */
+    public Integer deleteClientById(Long id) {
+        return seClientMapper.deleteClientById(id);
+    }
+
+    /**
+     * 淇敼鍐滄埛瀵硅薄
+     * @param po 鍐滄埛瀵硅薄
+     * @return 淇敼璁板綍鏉℃暟
+     */
+    public Integer updateByPrimaryKey(SeClient po) {
+        return seClientMapper.updateByPrimaryKey(po);
+    }
+
+    /**
+     * 鏍规嵁涓婚敭鑾峰彇鏉慖D
+     * @param id
+     * @return
+     */
+    public Long getVillageIdById(Long id) {
+        return seClientMapper.getVillageIdById(id);
+    }
+
 }

--
Gitblit v1.8.0