|
@@ -2,6 +2,7 @@ package com.baomidou.mybatisplus.test.h2.entity.mapper;
|
|
|
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
|
@@ -26,4 +27,9 @@ public interface H2UserLogicDeleteMapper extends BaseMapper<H2UserLogicDelete> {
|
|
|
"update h2user set name=#{name} where test_id=#{id}"
|
|
|
)
|
|
|
int myUpdateWithNameId(@Param("id") Long id, @Param("name") String name);
|
|
|
+
|
|
|
+ @Select(
|
|
|
+ "select test_id as id, name, age, version, test_type as testType from h2user where test_id=#{id}"
|
|
|
+ )
|
|
|
+ H2UserLogicDelete selectByIdMy(@Param("id") Long id);
|
|
|
}
|