<?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="org.springblade.system.mapper.ValueRangeMapper">
|
|
<resultMap type="org.springblade.system.entity.ValueRange" id="ValueRangeMap">
|
<result property="id" column="ID" jdbcType="VARCHAR"/>
|
<result property="value" column="VALUE" jdbcType="VARCHAR"/>
|
<result property="combinationId" column="COMBINATION_ID" jdbcType="VARCHAR"/>
|
<result property="createuser" column="CREATEUSER" jdbcType="VARCHAR"/>
|
<result property="updatetime" column="UPDATETIME" jdbcType="TIMESTAMP"/>
|
<result property="updateuser" column="UPDATEUSER" jdbcType="VARCHAR"/>
|
<result property="createtime" column="CREATETIME" jdbcType="TIMESTAMP"/>
|
</resultMap>
|
|
<!--查询指定行数据-->
|
<select id="queryAllByLimit" resultMap="ValueRangeMap">
|
select
|
ID, VALUE, COMBINATION_ID, CREATEUSER, UPDATETIME, UPDATEUSER, CREATETIME
|
from PL_SYS_VALUE_RANGE
|
<where>
|
<if test="id != null and id != ''">
|
and ID = #{id}
|
</if>
|
<if test="value != null and value != ''">
|
and VALUE = #{value}
|
</if>
|
<if test="combinationId != null and combinationId != ''">
|
and COMBINATION_ID = #{combinationId}
|
</if>
|
<if test="createuser != null and createuser != ''">
|
and CREATEUSER = #{createuser}
|
</if>
|
<if test="updatetime != null">
|
and UPDATETIME = #{updatetime}
|
</if>
|
<if test="updateuser != null and updateuser != ''">
|
and UPDATEUSER = #{updateuser}
|
</if>
|
<if test="createtime != null">
|
and CREATETIME = #{createtime}
|
</if>
|
</where>
|
limit #{pageable.offset}, #{pageable.pageSize}
|
</select>
|
|
<!--统计总行数-->
|
<select id="count" resultType="java.lang.Long">
|
select count(1)
|
from PL_SYS_VALUE_RANGE
|
<where>
|
<if test="id != null and id != ''">
|
and ID = #{id}
|
</if>
|
<if test="value != null and value != ''">
|
and VALUE = #{value}
|
</if>
|
<if test="combinationId != null and combinationId != ''">
|
and COMBINATION_ID = #{combinationId}
|
</if>
|
<if test="createuser != null and createuser != ''">
|
and CREATEUSER = #{createuser}
|
</if>
|
<if test="updatetime != null">
|
and UPDATETIME = #{updatetime}
|
</if>
|
<if test="updateuser != null and updateuser != ''">
|
and UPDATEUSER = #{updateuser}
|
</if>
|
<if test="createtime != null">
|
and CREATETIME = #{createtime}
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|