<?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.BasDevpMapper">
|
|
<select id="getAvailableInSite" resultType="java.lang.Integer">
|
select
|
wbd.dev_no
|
from common_bas_devp wbd
|
left join common_sta_desc asd on wbd.dev_no = asd.stn_no
|
where 1=1
|
and asd.type_no = #{typeNo}
|
and wbd.host_id = #{hostId}
|
-- and wbd.in_enable = 'Y'
|
group by wbd.dev_no
|
</select>
|
|
<select id="getAvailableOutSite" resultType="java.lang.Integer">
|
select
|
wbd.dev_no
|
from common_bas_devp wbd
|
left join common_sta_desc asd on wbd.dev_no = asd.stn_no
|
where 1=1
|
and asd.type_no = #{typeNo}
|
and wbd.host_id = #{hostId}
|
-- wbd abd.out_enable = 'Y'
|
group by wbd.dev_no
|
</select>
|
|
</mapper>
|