自动化立体仓库 - WMS系统
#
whycq
2024-03-05 8003a29d3f510adfa971ea6ebd23af1ccd7316c1
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
<?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.LocRuleMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.LocRule">
        <id column="id" property="id" />
        <result column="matnr" property="matnr" />
        <result column="specs" property="specs" />
        <result column="model" property="model" />
        <result column="cstmr" property="cstmr" />
        <result column="batch" property="batch" />
        <result column="other" property="other" />
        <result column="row_beg" property="rowBeg" />
        <result column="row_end" property="rowEnd" />
        <result column="bay_beg" property="bayBeg" />
        <result column="bay_end" property="bayEnd" />
        <result column="lev_beg" property="levBeg" />
        <result column="lev_end" property="levEnd" />
        <result column="limit" property="limit" />
        <result column="status" property="status" />
        <result column="create_by" property="createBy" />
        <result column="create_time" property="createTime" />
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="mixed" property="mixed" />
        <result column="keep_go" property="keepGo" />
 
    </resultMap>
 
    <select id="selectByMatnr" resultMap="BaseResultMap">
        select * from asr_loc_rule
        where matnr = #{matnr}
        and mixed = 0
        and status = 1
    </select>
 
    <select id="selectByMixed" resultMap="BaseResultMap">
        select * from asr_loc_rule
        where mixed = #{mixed}
        and status = 1
    </select>
 
    <update id="updateKeepGoByMatnr">
        update asr_loc_rule set keep_go = #{keepGo} where matnr = #{matnr}
    </update>
 
    <update id="updateKeepGoByMixed">
        update asr_loc_rule set keep_go = #{keepGo} where mixed = 1
    </update>
 
</mapper>