RobotMapMapper.java 572 B

1234567891011121314151617
  1. package com.gonghang.h5clientapp.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.gonghang.h5clientapp.beans.dto.RobotMapDTO;
  4. import org.apache.ibatis.annotations.Param;
  5. import org.apache.ibatis.annotations.Select;
  6. import org.springframework.stereotype.Component;
  7. /**
  8. * Created by shiwn on 2022/8/3 15:49
  9. */
  10. @Component
  11. public interface RobotMapMapper extends BaseMapper<RobotMapDTO> {
  12. @Select("SELECT * FROM robot_map WHERE robot_id=#{robotId} ORDER BY id DESC LIMIT 1")
  13. RobotMapDTO selectMapByRobotId(@Param("robotId") int robotId);
  14. }