自动化立体仓库 - WMS系统
ZY
19 小时以前 0e49d5331f2cd5abaad2517cb508b412391b0672
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
<?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.StaDescMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.StaDesc">
        <id column="type_id" property="typeId" />
        <result column="type_no" property="typeNo" />
        <result column="type_desc" property="typeDesc" />
        <result column="stn_no" property="stnNo" />
        <result column="stn_desc" property="stnDesc" />
        <result column="crn_no" property="crnNo" />
        <result column="crn_stn" property="crnStn" />
        <result column="memo" property="memo" />
        <result column="modi_user" property="modiUser" />
        <result column="modi_time" property="modiTime" />
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
 
    </resultMap>
 
    <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer">
        select
        distinct asd.stn_no
        from asr_sta_desc asd
        left join asr_loc_mast alm on asd.crn_no = alm.crn_no
        where 1=1
        and alm.loc_no = #{locNo}
        <if test="typeNo != null and typeNo !=''">
            and asd.type_no = #{typeNo}
        </if>
    </select>
 
    <select id="queryCrnStn" resultMap="BaseResultMap">
        select top 1 * from asr_sta_desc
        where 1=1
        and crn_no = #{crnNo}
        and type_no = 1
    </select>
 
</mapper>