AgvTaskMapper.xml
2.8 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?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.huaheng.pc.task.task.mapper.AgvTaskMapper">
<insert id="insertModel" parameterType="com.huaheng.api.ACS.domain.AvgTaskModel">
insert into agvtask
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="interactionId != null">
interactionId,
</if>
<if test="taskHeaderId != null">
taskHeaderId,
</if>
<if test="taskDetailId != null">
taskDetailId,
</if>
<if test="taskType != null">
taskType,
</if>
<if test="shelfNo != null">
shelfNo,
</if>
<if test="station != null">
station,
</if>
<if test="fromLocationNo != null">
fromLocationNo,
</if>
<if test="toLocationNo != null">
toLocationNo,
</if>
<if test="orientation != null">
orientation,
</if>
<if test="platform != null">
platform,
</if>
<if test="carNo != null">
carNo,
</if>
<if test="state != null">
state,
</if>
</trim>
<trim prefix=" values (" suffix=")" suffixOverrides=",">
<if test="interactionId != null">
#{interactionId, jdbcType=VARCHAR},
</if>
<if test="taskHeaderId != null">
#{taskHeaderId, jdbcType=INTEGER},
</if>
<if test="taskDetailId != null">
#{taskDetailId, jdbcType=INTEGER},
</if>
<if test="taskType != null">
#{taskType, jdbcType=VARCHAR},
</if>
<if test="shelfNo != null">
#{shelfNo, jdbcType=VARCHAR},
</if>
<if test="station != null">
#{station, jdbcType=VARCHAR},
</if>
<if test="fromLocationNo != null">
#{fromLocationNo, jdbcType=VARCHAR},
</if>
<if test="toLocationNo != null">
#{toLocationNo, jdbcType=VARCHAR},
</if>
<if test="orientation != null">
#{orientation, jdbcType=VARCHAR},
</if>
<if test="platform != null">
#{platform, jdbcType=VARCHAR},
</if>
<if test="carNo != null">
#{carNo, jdbcType=VARCHAR},
</if>
<if test="state != null">
#{state, jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>