|
@@ -1,5 +1,6 @@
|
|
package com.xin.shardingspherejdbcdemo.mapper;
|
|
package com.xin.shardingspherejdbcdemo.mapper;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.xin.shardingspherejdbcdemo.entity.User;
|
|
import com.xin.shardingspherejdbcdemo.entity.User;
|
|
import com.xin.shardingspherejdbcdemo.entity.UserExample;
|
|
import com.xin.shardingspherejdbcdemo.entity.UserExample;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
@@ -8,7 +9,7 @@ import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@Mapper
|
|
@Mapper
|
|
-public interface UserMapper {
|
|
|
|
|
|
+public interface UserMapper extends BaseMapper<User> {
|
|
|
|
|
|
int countByExample(UserExample example);
|
|
int countByExample(UserExample example);
|
|
|
|
|