<?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.common.wms.mapper.StaDescMapper"> 
 | 
  
 | 
    <select id="queryOutStaNosByLocNo" resultType="integer"> 
 | 
        select 
 | 
        distinct asd.stn_no 
 | 
        from wms_sta_desc asd 
 | 
        left join wms_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> 
 |