From 01f807ee2fa1a1cd3ba956cb44b1c420841a1962 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 24 七月 2023 15:52:35 +0800
Subject: [PATCH] #选择部门后搜索失效bug

---
 src/main/java/com/zy/crm/manager/mapper/CstmrMapper.java |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/mapper/CstmrMapper.java b/src/main/java/com/zy/crm/manager/mapper/CstmrMapper.java
index 1c6dae2..0d77135 100644
--- a/src/main/java/com/zy/crm/manager/mapper/CstmrMapper.java
+++ b/src/main/java/com/zy/crm/manager/mapper/CstmrMapper.java
@@ -1,14 +1,28 @@
 package com.zy.crm.manager.mapper;
 
-import com.zy.crm.manager.entity.Cstmr;
 import com.baomidou.mybatisplus.mapper.BaseMapper;
+import com.baomidou.mybatisplus.plugins.Page;
+import com.zy.crm.manager.entity.Cstmr;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
+
+import java.util.List;
 
 @Mapper
 @Repository
 public interface CstmrMapper extends BaseMapper<Cstmr> {
 
-    Cstmr selectCstmrByNewestUuid();
+    Cstmr selectByUuid(@Param("hostId") Long hostId, @Param("uuid") String uuid);
+
+    Cstmr selectCstmrByNewestUuid(@Param("hostId") Long hostId);
+
+    List<Cstmr> listByPage2(Page<Cstmr> page, @Param("hostId")Long hostId, @Param("deptId") Long deptId, @Param("userId") Long userId,@Param("roleId") Long roleId, @Param("conditionName") String conditionName ,@Param("condition") String condition);
+    List<Cstmr> listByPage1(Page<Cstmr> page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId, @Param("conditionName") String conditionName ,@Param("condition") String condition);
+    List<Cstmr> listByPage(Page<Cstmr> page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId,@Param("condition") String condition);
+
+    int updateDeptIdByUserId(@Param("userId")Long userId, @Param("deptId")Long deptId);
+
+    Cstmr selectByName(@Param("hostId") Long hostId, @Param("name") String name);
 
 }

--
Gitblit v1.9.1