You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
791 B

2 years ago
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wm.file.mapper.UserMapper">
<select id="findLimit" resultType="com.wm.file.entity.UserEntity">
select id,
name,
phone,
ceate_by as ceateBy
from user
order by id asc
limit #{index},#{pageSize}
</select>
<select id="findNewPage" resultType="com.wm.file.entity.UserEntity">
SELECT id,NAME,
phone,ceate_by AS ceateBy
FROM USER
<if test="id!=null and id!=''">
WHERE id > #{id}
</if>
ORDER BY id ASC
LIMIT #{pageSize}
</select>
</mapper>