自动化立体仓库 - WMS系统
#
lty
1 天以前 1f82f07339486e13899638bcc8363137fcc19d96
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
<?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.BasArmRulesMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasArmRules">
        <id column="id" property="id" />
        <result column="material_length" property="materialLength" />
        <result column="material_width" property="materialWidth" />
        <result column="material_height" property="materialHeight" />
        <result column="material_weight" property="materialWeight" />
        <result column="material_volume" property="materialVolume" />
        <result column="material_number" property="materialNumber" />
        <result column="status" property="status" />
 
    </resultMap>
 
 
    <select id="AllStatusSatisfyBasArmRules" resultMap="BaseResultMap">
        select top 10 from asr_bas_arm_rules where 1=1 and status = #{status}
    </select>
 
    <update id="updateStatus">
        update asr_bas_arm_rules
        set status = #{status}
        , material_number = #{materialNumber}
        where 1=1
        and material_length = #{materialLength}
        and material_width = #{materialWidth}
        and material_height = #{materialHeight}
        and material_weight = #{materialWeight}
    </update>
 
    <select id="getNumber" resultType="Integer">
        select material_number
        from asr_bas_arm_rules
        where 1=1
        and material_volume = #{volume}
        and material_length = #{length}
        and material_width = #{width}
        and material_height = #{height}
        and material_weight = #{weight}
    </select>
 
</mapper>