package com.zy.crm.manager.mapper; 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 selectByUuid(@Param("hostId") Long hostId, @Param("uuid") String uuid); Cstmr selectCstmrByNewestUuid(@Param("hostId") Long hostId); List listByPage2(Page 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 listByPage1(Page page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId, @Param("conditionName") String conditionName ,@Param("condition") String condition); List listByPage3(Page page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId,@Param("cstmrIds") List cstmrIds, @Param("conditionName") String conditionName ,@Param("condition") String condition); List listByPage(Page 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); }