物联网平台 +Web 组态
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.
 
 
 
 

20 lines
431 B

<?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="Base">
<!-- 限制一条记录 -->
<sql id="sql_limit_1">
LIMIT 1
</sql>
<!-- 分页条件 -->
<sql id="sql_limit_condition">
<if test="limit!=null">
LIMIT #{limit}
</if>
<if test="offset!=null">
OFFSET #{offset}
</if>
</sql>
</mapper>