|  |  | 
 |  |  |  | 
 |  |  |     <!-- 通用查询映射结果 --> | 
 |  |  |     <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasDevp"> | 
 |  |  |         <id column="dev_no" property="devNo" /> | 
 |  |  |         <result column="dec_desc" property="decDesc" /> | 
 |  |  |         <result column="dev_mk" property="devMk" /> | 
 |  |  |         <result column="in_enable" property="inEnable" /> | 
 |  |  |         <result column="out_enable" property="outEnable" /> | 
 |  |  |         <result column="autoing" property="autoing" /> | 
 |  |  |         <result column="loading" property="loading" /> | 
 |  |  |         <result column="canining" property="canining" /> | 
 |  |  |         <result column="canouting" property="canouting" /> | 
 |  |  |         <result column="fronting" property="fronting" /> | 
 |  |  |         <result column="rearing" property="rearing" /> | 
 |  |  |         <result column="uping" property="uping" /> | 
 |  |  |         <result column="downing" property="downing" /> | 
 |  |  |         <result column="inreq1" property="inreq1" /> | 
 |  |  |         <result column="inreq2" property="inreq2" /> | 
 |  |  |         <result column="wrk_no" property="wrkNo" /> | 
 |  |  |         <result column="wrk_no1" property="wrkNo1" /> | 
 |  |  |         <result column="ctn_type" property="ctnType" /> | 
 |  |  |         <result column="barcode" property="barcode" /> | 
 |  |  |         <result column="in_qty" property="inQty" /> | 
 |  |  |         <result column="row1" property="row1" /> | 
 |  |  |         <result column="io_time" property="ioTime" /> | 
 |  |  |         <result column="area" property="area" /> | 
 |  |  |         <result column="in_ok" property="inOk" /> | 
 |  |  |         <result column="out_ok" property="outOk" /> | 
 |  |  |         <result column="loc_type1" property="locType1" /> | 
 |  |  |         <result column="loc_type2" property="locType2" /> | 
 |  |  |         <result column="loc_type3" property="locType3" /> | 
 |  |  |         <result column="modi_user" property="modiUser" /> | 
 |  |  |         <result column="modi_time" property="modiTime" /> | 
 |  |  |         <result column="appe_user" property="appeUser" /> | 
 |  |  |         <result column="appe_time" property="appeTime" /> | 
 |  |  |         <result column="std_qty" property="stdQty" /> | 
 |  |  |         <result column="min_wt" property="minWt" /> | 
 |  |  |         <result column="max_wt" property="maxWt" /> | 
 |  |  |         <result column="gross_wt" property="grossWt" /> | 
 |  |  |         <result column="cart_pos" property="cartPos" /> | 
 |  |  |         <result column="agv_start_pick" property="agvStartPick" /> | 
 |  |  |         <result column="agv_target_pick" property="agvTargetPick" /> | 
 |  |  |         <result column="agv_start_place" property="agvStartPlace" /> | 
 |  |  |         <result column="agv_target_place" property="agvTargetPlace" /> | 
 |  |  |         <result column="sta_err" property="staErr" /> | 
 |  |  |         <id column="DEV_NO" property="devNo" /> | 
 |  |  |         <result column="DEC_DESC" property="decDesc" /> | 
 |  |  |         <result column="DEV_MK" property="devMk" /> | 
 |  |  |         <result column="IN_ENABLE" property="inEnable" /> | 
 |  |  |         <result column="OUT_ENABLE" property="outEnable" /> | 
 |  |  |         <result column="AUTOING" property="autoing" /> | 
 |  |  |         <result column="LOADING" property="loading" /> | 
 |  |  |         <result column="CANINING" property="canining" /> | 
 |  |  |         <result column="CANOUTING" property="canouting" /> | 
 |  |  |         <result column="FRONTING" property="fronting" /> | 
 |  |  |         <result column="REARING" property="rearing" /> | 
 |  |  |         <result column="UPING" property="uping" /> | 
 |  |  |         <result column="DOWNING" property="downing" /> | 
 |  |  |         <result column="INREQ1" property="inreq1" /> | 
 |  |  |         <result column="INREQ2" property="inreq2" /> | 
 |  |  |         <result column="WRK_NO" property="wrkNo" /> | 
 |  |  |         <result column="WRK_NO1" property="wrkNo1" /> | 
 |  |  |         <result column="CTN_TYPE" property="ctnType" /> | 
 |  |  |         <result column="BARCODE" property="barcode" /> | 
 |  |  |         <result column="IN_QTY" property="inQty" /> | 
 |  |  |         <result column="ROW1" property="row1" /> | 
 |  |  |         <result column="IO_TIME" property="ioTime" /> | 
 |  |  |         <result column="AREA" property="area" /> | 
 |  |  |         <result column="IN_OK" property="inOk" /> | 
 |  |  |         <result column="OUT_OK" property="outOk" /> | 
 |  |  |         <result column="LOC_TYPE1" property="locType1" /> | 
 |  |  |         <result column="LOC_TYPE2" property="locType2" /> | 
 |  |  |         <result column="LOC_TYPE3" property="locType3" /> | 
 |  |  |         <result column="MODI_USER" property="modiUser" /> | 
 |  |  |         <result column="MODI_TIME" property="modiTime" /> | 
 |  |  |         <result column="APPE_USER" property="appeUser" /> | 
 |  |  |         <result column="APPE_TIME" property="appeTime" /> | 
 |  |  |         <result column="STD_QTY" property="stdQty" /> | 
 |  |  |         <result column="MIN_WT" property="minWt" /> | 
 |  |  |         <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> |