<?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.zy.asrs.mapper.LocAreaMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.zy.asrs.entity.LocArea">
|
<id column="id" property="id"/>
|
<result column="uuid" property="uuid"/>
|
<result column="name" property="name"/>
|
<result column="status" property="status"/>
|
<result column="create_by" property="createBy"/>
|
<result column="create_time" property="createTime"/>
|
<result column="update_by" property="updateBy"/>
|
<result column="update_time" property="updateTime"/>
|
<result column="memo" property="memo"/>
|
|
</resultMap>
|
|
|
<select id="queryAllLocArea" resultMap="BaseResultMap">
|
<choose>
|
<when test="areaType == 1">
|
select * from asr_loc_area where area_type = '1'
|
</when>
|
<otherwise>
|
select * from asr_loc_area where area_type != '1' or area_type is null
|
</otherwise>
|
</choose>
|
</select>
|
</mapper>
|