*
lsh
2025-04-01 b424d6493efb60cb8d93a2e16526086da1fc2ea9
src/main/resources/mapper/BasDevpMapper.xml
@@ -41,29 +41,30 @@
        <result column="max_wt" property="maxWt" />
        <result column="gross_wt" property="grossWt" />
        <result column="cart_pos" property="cartPos" />
        <result column="sta_err" property="staErr" />
    </resultMap>
    <select id="getAvailableInSite" resultType="java.lang.Integer">
        select
        abd.dev_no
        from asr_bas_devp abd
        left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        abd."dev_no"
        from "SOURCE"."asr_bas_devp" abd
        left join "SOURCE"."asr_sta_desc" asd on abd."dev_no" = asd."stn_no"
        where 1=1
        and asd.type_no = #{typeNo}
        and abd.in_enable = 'Y'
        group by abd.dev_no
        and asd."type_no" = #{typeNo}
        and abd."in_enable" = 'Y'
        group by abd."dev_no"
    </select>
    <select id="getAvailableOutSite" resultType="java.lang.Integer">
        select
        abd.dev_no
        from asr_bas_devp abd
        left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        abd."dev_no"
        from "SOURCE"."asr_bas_devp" abd
        left join "SOURCE"."asr_sta_desc" asd on abd."dev_no" = asd."stn_no"
        where 1=1
        and asd.type_no = #{typeNo}
        and abd.out_enable = 'Y'
        group by abd.dev_no
        and asd."type_no" = #{typeNo}
        and abd."out_enable" = 'Y'
        group by abd."dev_no"
    </select>
</mapper>