#
luxiaotao1123
2024-03-18 b670c64208a10c789bc7ab61eddb1f8528ef8daa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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>