<?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.ruoyi.system.mapper.TConvenientInformationMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.model.TConvenientInformation">
|
<id column="id" property="id" />
|
<result column="convenient_name" property="convenientName" />
|
<result column="convenient_phone" property="convenientPhone" />
|
<result column="convenient_cover" property="convenientCover" />
|
<result column="address" property="address" />
|
<result column="convenient_detail" property="convenientDetail" />
|
<result column="create_time" property="createTime" />
|
<result column="update_time" property="updateTime" />
|
<result column="create_by" property="createBy" />
|
<result column="update_by" property="updateBy" />
|
<result column="disabled" property="disabled" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, convenient_name, convenient_phone, convenient_cover, address, convenient_detail, create_time, update_time, create_by, update_by, disabled
|
</sql>
|
<select id="pageList" resultType="com.ruoyi.system.model.TConvenientInformation">
|
select
|
<include refid="Base_Column_List"/>
|
from t_convenient_information
|
<where>
|
<if test="query.convenientName != null and query.convenientName != ''">
|
and convenient_name like concat('%',#{query.convenientName},'%')
|
</if>
|
<if test="query.convenientPhone != null and query.convenientPhone != ''">
|
and convenient_phone like concat('%',#{query.convenientPhone},'%')
|
</if>
|
AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
|
</where>
|
ORDER BY create_time DESC
|
</select>
|
|
</mapper>
|