package com.estate.expert.admin.domain.repository;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.estate.expert.admin.domain.business.screenaccount.ScreenAccount;
|
import com.estate.expert.admin.domain.business.screenaccount.ScreenAccountDto;
|
import com.estate.expert.admin.domain.project.Project;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* ScreenAccount的MyBatis-Plus Mapper接口
|
* 继承BaseMapper获得更多内置CRUD方法
|
*/
|
@Mapper
|
public interface ScreenAccountMybatisMapper extends BaseMapper<ScreenAccount> {
|
|
/**
|
* 根据名称模糊查询ScreenAccount列表
|
* @param name 名称
|
* @return ScreenAccount列表
|
*/
|
List<ScreenAccount> findByName(@Param("name") String name);
|
|
/**
|
* 根据条件动态查询ScreenAccount列表
|
* @param conditions 查询条件
|
* @return ScreenAccount列表
|
*/
|
List<ScreenAccount> findByConditions(Map<String, Object> conditions);
|
|
List<ScreenAccountDto> list(@Param("page") Page<ScreenAccountDto> page, @Param("name") String name, @Param("keyword") String keyword, @Param("type") Integer type, @Param("clientListIds") List<Integer> clientListIds, @Param("projectIds") List<Integer> projectIds);
|
|
|
List<String> getClientNameList(@Param("ids") List<String> ids);
|
|
|
List<String> getProjectNameList(@Param("ids") List<String> ids);
|
|
|
ScreenAccount getUserFromMobile(@Param("mobile") String mobile);
|
|
List<Project> findAllByTitleIdAndDeleted(@Param("name") String name);
|
|
}
|