| <?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.StaDescMapper"> | 
|   | 
|     <!-- 通用查询映射结果 --> | 
|     <resultMap id="BaseResultMap" type="com.zy.asrs.entity.StaDesc"> | 
|         <id column="type_id" property="typeId" /> | 
|         <result column="type_no" property="typeNo" /> | 
|         <result column="type_desc" property="typeDesc" /> | 
|         <result column="stn_no" property="stnNo" /> | 
|         <result column="stn_desc" property="stnDesc" /> | 
|         <result column="crn_no" property="crnNo" /> | 
|         <result column="crn_stn" property="crnStn" /> | 
|         <result column="memo" property="memo" /> | 
|         <result column="modi_user" property="modiUser" /> | 
|         <result column="modi_time" property="modiTime" /> | 
|         <result column="appe_user" property="appeUser" /> | 
|         <result column="appe_time" property="appeTime" /> | 
|   | 
|     </resultMap> | 
|   | 
|     <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer"> | 
|         select | 
|         distinct asd.stn_no | 
|         from asr_sta_desc asd | 
|         left join asr_loc_mast alm on asd.crn_no = alm.crn_no | 
|         where 1=1 | 
|         and alm.loc_no = #{locNo} | 
|         <if test="typeNo != null and typeNo !=''"> | 
|             and asd.type_no = #{typeNo} | 
|         </if> | 
|   | 
|     </select> | 
|   | 
| </mapper> |