From bfd7201c84e250e88b9a83ba55317b16f08c7a38 Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期五, 15 九月 2023 12:00:24 +0800 Subject: [PATCH] 定义了EsModel作为报错到es的数据模型,每个表要存储的是每个表的表明 表对应的主键,以及要被检索的字段 --- zhang-content/src/main/java/com/ruoyi/mapper/ZfDoctorMapper.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/mapper/ZfDoctorMapper.java b/zhang-content/src/main/java/com/ruoyi/mapper/ZfDoctorMapper.java index 5a93f4e..77436b7 100644 --- a/zhang-content/src/main/java/com/ruoyi/mapper/ZfDoctorMapper.java +++ b/zhang-content/src/main/java/com/ruoyi/mapper/ZfDoctorMapper.java @@ -4,6 +4,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.domain.ZfDoctor; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Select; + +import java.util.List; /** * <p> @@ -15,5 +18,7 @@ */ @Mapper public interface ZfDoctorMapper extends BaseMapper<ZfDoctor> { + @Select("select distinct type from zf_doctor") + List<String> listType(); } -- Gitblit v1.9.1