- package com.bofeng.dao;
- import com.baomidou.mybatisplus.mapper.BaseMapper;
- import com.bofeng.entity.Vaccine;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import org.apache.ibatis.annotations.Select;
- @Mapper
- public interface VaccineMapper extends BaseMapper<Vaccine> {
- @Select("select * from ms_vaccine where user_id = #{userId}")
- Vaccine selectByUserId(@Param("userId") Long userId);
- }
|