自动化立体仓库 - WCS系统
*
lsh
2025-04-02 cd0e6b9326bbec408944642c106cc7f115ea654f
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?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.mapper.BasDevpMapper">
 
    <!-- 通用查询映射结果 -->
    <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="STA_ERR" property="staErr" />
 
    </resultMap>
 
    <select id="getAvailableInSite" resultType="java.lang.Integer">
        select
        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"
    </select>
 
    <select id="getAvailableOutSite" resultType="java.lang.Integer">
        select
        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"
    </select>
 
</mapper>