TransToArriveExportResonseDao.xml
7.6 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?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.tianbo.analysis.dao.TransToArriveExportResonseDao">
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TransToArriveExportResonse">
<id column="AUTOID" jdbcType="VARCHAR" property="autoid" />
<result column="VER" jdbcType="VARCHAR" property="ver" />
<result column="SEQNO" jdbcType="VARCHAR" property="seqno" />
<result column="CLIENTSEQNO" jdbcType="VARCHAR" property="clientseqno" />
<result column="RESPONSECODE" jdbcType="VARCHAR" property="responsecode" />
<result column="RESPONSEMESSAGE" jdbcType="VARCHAR" property="responsemessage" />
<result column="NOTE" jdbcType="VARCHAR" property="note" />
<result column="PROCRESULT" jdbcType="VARCHAR" property="procresult" />
<result column="PROCDATE" jdbcType="TIMESTAMP" property="procdate" />
<result column="RESPONSEDATE" jdbcType="TIMESTAMP" property="responsedate" />
<result column="OPERATOR" jdbcType="VARCHAR" property="operator" />
<result column="PCS" jdbcType="VARCHAR" property="pcs" />
<result column="WGT" jdbcType="VARCHAR" property="wgt" />
<result column="TYPE" jdbcType="VARCHAR" property="type" />
</resultMap>
<sql id="Base_Column_List">
AUTOID, VER, SEQNO, CLIENTSEQNO, RESPONSECODE, RESPONSEMESSAGE, NOTE, PROCRESULT,
PROCDATE, RESPONSEDATE, "OPERATOR", PCS, WGT, "TYPE"
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TRANS_TO_ARRIVE_EXPORT_RESONSE
where AUTOID = #{autoid,jdbcType=VARCHAR}
</select>
<select id="selectByClientseqno" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from TRANS_TO_ARRIVE_EXPORT_RESONSE
where CLIENTSEQNO = #{autoid,jdbcType=VARCHAR}
order by RESPONSEDATE desc
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from TRANS_TO_ARRIVE_EXPORT_RESONSE
where AUTOID = #{autoid,jdbcType=VARCHAR}
</delete>
<insert id="insert" keyColumn="AUTOID" keyProperty="autoid" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse" useGeneratedKeys="true">
insert into TRANS_TO_ARRIVE_EXPORT_RESONSE (AUTOID,VER, SEQNO, CLIENTSEQNO,
RESPONSECODE, RESPONSEMESSAGE, NOTE,
PROCRESULT, PROCDATE, RESPONSEDATE,
"OPERATOR", PCS, WGT,
"TYPE")
values (#{autoid,jdbcType=VARCHAR},#{ver,jdbcType=VARCHAR}, #{seqno,jdbcType=VARCHAR}, #{clientseqno,jdbcType=VARCHAR},
#{responsecode,jdbcType=VARCHAR}, #{responsemessage,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR},
#{procresult,jdbcType=VARCHAR}, #{procdate,jdbcType=TIMESTAMP}, #{responsedate,jdbcType=TIMESTAMP},
#{operator,jdbcType=VARCHAR}, #{pcs,jdbcType=VARCHAR}, #{wgt,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="AUTOID" keyProperty="autoid" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse" useGeneratedKeys="true">
insert into TRANS_TO_ARRIVE_EXPORT_RESONSE
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="autoid != null">
AUTOID,
</if>
<if test="ver != null">
VER,
</if>
<if test="seqno != null">
SEQNO,
</if>
<if test="clientseqno != null">
CLIENTSEQNO,
</if>
<if test="responsecode != null">
RESPONSECODE,
</if>
<if test="responsemessage != null">
RESPONSEMESSAGE,
</if>
<if test="note != null">
NOTE,
</if>
<if test="procresult != null">
PROCRESULT,
</if>
<if test="procdate != null">
PROCDATE,
</if>
<if test="responsedate != null">
RESPONSEDATE,
</if>
<if test="operator != null">
"OPERATOR",
</if>
<if test="pcs != null">
PCS,
</if>
<if test="wgt != null">
WGT,
</if>
<if test="type != null">
"TYPE",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="autoid != null">
#{autoid,jdbcType=VARCHAR},
</if>
<if test="ver != null">
#{ver,jdbcType=VARCHAR},
</if>
<if test="seqno != null">
#{seqno,jdbcType=VARCHAR},
</if>
<if test="clientseqno != null">
#{clientseqno,jdbcType=VARCHAR},
</if>
<if test="responsecode != null">
#{responsecode,jdbcType=VARCHAR},
</if>
<if test="responsemessage != null">
#{responsemessage,jdbcType=VARCHAR},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
<if test="procresult != null">
#{procresult,jdbcType=VARCHAR},
</if>
<if test="procdate != null">
#{procdate,jdbcType=TIMESTAMP},
</if>
<if test="responsedate != null">
#{responsedate,jdbcType=TIMESTAMP},
</if>
<if test="operator != null">
#{operator,jdbcType=VARCHAR},
</if>
<if test="pcs != null">
#{pcs,jdbcType=VARCHAR},
</if>
<if test="wgt != null">
#{wgt,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse">
update TRANS_TO_ARRIVE_EXPORT_RESONSE
<set>
<if test="ver != null">
VER = #{ver,jdbcType=VARCHAR},
</if>
<if test="seqno != null">
SEQNO = #{seqno,jdbcType=VARCHAR},
</if>
<if test="clientseqno != null">
CLIENTSEQNO = #{clientseqno,jdbcType=VARCHAR},
</if>
<if test="responsecode != null">
RESPONSECODE = #{responsecode,jdbcType=VARCHAR},
</if>
<if test="responsemessage != null">
RESPONSEMESSAGE = #{responsemessage,jdbcType=VARCHAR},
</if>
<if test="note != null">
NOTE = #{note,jdbcType=VARCHAR},
</if>
<if test="procresult != null">
PROCRESULT = #{procresult,jdbcType=VARCHAR},
</if>
<if test="procdate != null">
PROCDATE = #{procdate,jdbcType=TIMESTAMP},
</if>
<if test="responsedate != null">
RESPONSEDATE = #{responsedate,jdbcType=TIMESTAMP},
</if>
<if test="operator != null">
"OPERATOR" = #{operator,jdbcType=VARCHAR},
</if>
<if test="pcs != null">
PCS = #{pcs,jdbcType=VARCHAR},
</if>
<if test="wgt != null">
WGT = #{wgt,jdbcType=VARCHAR},
</if>
<if test="type != null">
"TYPE" = #{type,jdbcType=VARCHAR},
</if>
</set>
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse">
update TRANS_TO_ARRIVE_EXPORT_RESONSE
set VER = #{ver,jdbcType=VARCHAR},
SEQNO = #{seqno,jdbcType=VARCHAR},
CLIENTSEQNO = #{clientseqno,jdbcType=VARCHAR},
RESPONSECODE = #{responsecode,jdbcType=VARCHAR},
RESPONSEMESSAGE = #{responsemessage,jdbcType=VARCHAR},
NOTE = #{note,jdbcType=VARCHAR},
PROCRESULT = #{procresult,jdbcType=VARCHAR},
PROCDATE = #{procdate,jdbcType=TIMESTAMP},
RESPONSEDATE = #{responsedate,jdbcType=TIMESTAMP},
"OPERATOR" = #{operator,jdbcType=VARCHAR},
PCS = #{pcs,jdbcType=VARCHAR},
WGT = #{wgt,jdbcType=VARCHAR},
"TYPE" = #{type,jdbcType=VARCHAR}
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
</mapper>