<?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.TLocationTypeMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLocationType">
|
<id column="id" property="id" />
|
<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" />
|
<result column="location_icon" property="locationIcon" />
|
<result column="location_name" property="locationName" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, create_time, update_time, create_by, update_by, disabled, location_icon, location_name
|
</sql>
|
<select id="pageList" resultType="com.ruoyi.system.vo.system.LocationTypeListVO">
|
select t1.* from t_location_type t1
|
left join t_location t2 on t2.location_type=t1.id
|
where 1=1
|
<if test="query.locationName != null and query.locationName != ''">
|
and t1.location_name like concat('%',#{query.locationName},'%')
|
</if>
|
and t1.`disabled` = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
|
group by t1.id
|
</select>
|
|
</mapper>
|