1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
2
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
3
|
-<mapper namespace="com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper" >
|
|
|
4
|
- <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
|
|
|
5
|
- <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
|
|
|
6
|
- <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
|
|
|
7
|
- <result column="SEGMENT" property="segment" jdbcType="VARCHAR" />
|
|
|
8
|
- <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
|
|
|
9
|
- <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
|
|
|
10
|
- <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
|
|
|
11
|
- <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
|
|
|
12
|
- <result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR" />
|
|
|
13
|
- <result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR" />
|
|
|
14
|
- <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
|
|
|
15
|
- <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
|
|
|
16
|
- <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
|
|
|
17
|
- <result column="CARRIER1" property="carrier1" jdbcType="VARCHAR" />
|
|
|
18
|
- <result column="ARRIVALSTATION1" property="arrivalstation1" jdbcType="VARCHAR" />
|
|
|
19
|
- <result column="CARRIER2" property="carrier2" jdbcType="VARCHAR" />
|
|
|
20
|
- <result column="ARRIVALSTATION2" property="arrivalstation2" jdbcType="VARCHAR" />
|
|
|
21
|
- <result column="CARRIER3" property="carrier3" jdbcType="VARCHAR" />
|
|
|
22
|
- <result column="ARRIVALSTATION3" property="arrivalstation3" jdbcType="VARCHAR" />
|
|
|
23
|
- <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
|
|
|
24
|
- <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" />
|
|
|
25
|
- <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
|
|
|
26
|
- <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
|
|
|
27
|
- <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
|
|
|
28
|
- <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
|
|
|
29
|
- <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
|
|
|
30
|
- <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
|
|
|
31
|
- <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
|
|
|
32
|
- <result column="FLIGHT_DATE" property="flightDate" jdbcType="DATE" />
|
|
|
33
|
- <result column="STATUS" property="status" jdbcType="VARCHAR" />
|
|
|
34
|
- <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" />
|
|
|
35
|
- <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
|
|
|
36
|
- <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" />
|
|
|
37
|
- <result column="REPORTORDER" property="reportorder" jdbcType="VARCHAR" />
|
|
|
38
|
- <result column="ISLAST" property="islast" jdbcType="VARCHAR" />
|
|
|
39
|
- <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
|
|
|
40
|
- <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
|
|
|
41
|
- <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
|
|
|
42
|
- <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
|
|
|
43
|
- <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
|
|
|
44
|
- <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
|
|
|
45
|
- <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
|
|
|
46
|
- <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" />
|
|
|
47
|
- <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" />
|
|
|
48
|
- <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
|
|
|
49
|
- </resultMap>
|
|
|
50
|
- <sql id="Base_Column_List">
|
3
|
+<mapper namespace="com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper">
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ORIGINMANIFESTMASTER">
|
|
|
5
|
+ <result column="AUTOID" property="autoid" jdbcType="VARCHAR"/>
|
|
|
6
|
+ <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR"/>
|
|
|
7
|
+ <result column="SEGMENT" property="segment" jdbcType="VARCHAR"/>
|
|
|
8
|
+ <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR"/>
|
|
|
9
|
+ <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR"/>
|
|
|
10
|
+ <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR"/>
|
|
|
11
|
+ <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR"/>
|
|
|
12
|
+ <result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR"/>
|
|
|
13
|
+ <result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR"/>
|
|
|
14
|
+ <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR"/>
|
|
|
15
|
+ <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR"/>
|
|
|
16
|
+ <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR"/>
|
|
|
17
|
+ <result column="CARRIER1" property="carrier1" jdbcType="VARCHAR"/>
|
|
|
18
|
+ <result column="ARRIVALSTATION1" property="arrivalstation1" jdbcType="VARCHAR"/>
|
|
|
19
|
+ <result column="CARRIER2" property="carrier2" jdbcType="VARCHAR"/>
|
|
|
20
|
+ <result column="ARRIVALSTATION2" property="arrivalstation2" jdbcType="VARCHAR"/>
|
|
|
21
|
+ <result column="CARRIER3" property="carrier3" jdbcType="VARCHAR"/>
|
|
|
22
|
+ <result column="ARRIVALSTATION3" property="arrivalstation3" jdbcType="VARCHAR"/>
|
|
|
23
|
+ <result column="PAYMODE" property="paymode" jdbcType="VARCHAR"/>
|
|
|
24
|
+ <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR"/>
|
|
|
25
|
+ <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR"/>
|
|
|
26
|
+ <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR"/>
|
|
|
27
|
+ <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR"/>
|
|
|
28
|
+ <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR"/>
|
|
|
29
|
+ <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR"/>
|
|
|
30
|
+ <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR"/>
|
|
|
31
|
+ <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP"/>
|
|
|
32
|
+ <result column="FLIGHT_DATE" property="flightDate" jdbcType="DATE"/>
|
|
|
33
|
+ <result column="STATUS" property="status" jdbcType="VARCHAR"/>
|
|
|
34
|
+ <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR"/>
|
|
|
35
|
+ <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR"/>
|
|
|
36
|
+ <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR"/>
|
|
|
37
|
+ <result column="REPORTORDER" property="reportorder" jdbcType="VARCHAR"/>
|
|
|
38
|
+ <result column="ISLAST" property="islast" jdbcType="VARCHAR"/>
|
|
|
39
|
+ <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR"/>
|
|
|
40
|
+ <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR"/>
|
|
|
41
|
+ <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR"/>
|
|
|
42
|
+ <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR"/>
|
|
|
43
|
+ <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR"/>
|
|
|
44
|
+ <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR"/>
|
|
|
45
|
+ <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR"/>
|
|
|
46
|
+ <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR"/>
|
|
|
47
|
+ <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR"/>
|
|
|
48
|
+ <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR"/>
|
|
|
49
|
+ <result column="messagetype" property="messagetype" jdbcType="VARCHAR"/>
|
|
|
50
|
+ </resultMap>
|
|
|
51
|
+ <sql id="Base_Column_List">
|
51
|
AUTOID, WAYBILLNOMASTER, FLIGHTNO, FLIGHT_DATE
|
52
|
AUTOID, WAYBILLNOMASTER, FLIGHTNO, FLIGHT_DATE
|
52
|
</sql>
|
53
|
</sql>
|
53
|
- <insert id="insert" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
|
54
|
+ <resultMap id="TreeMap" type="com.tianbo.analysis.model.ORIGINMANIFESTMASTER">
|
|
|
55
|
+ <result column="AUTOID" property="autoid" jdbcType="VARCHAR"/>
|
|
|
56
|
+ <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR"/>
|
|
|
57
|
+ <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR"/>
|
|
|
58
|
+ <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR"/>
|
|
|
59
|
+ <result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR"/>
|
|
|
60
|
+ <result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR"/>
|
|
|
61
|
+ <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR"/>
|
|
|
62
|
+ <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR"/>
|
|
|
63
|
+ <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR"/>
|
|
|
64
|
+ <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR"/>
|
|
|
65
|
+ <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR"/>
|
|
|
66
|
+ <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP"/>
|
|
|
67
|
+ <result column="FLIGHT_DATE" property="flightDate" jdbcType="DATE"/>
|
|
|
68
|
+ <result column="STATUS" property="status" jdbcType="VARCHAR"/>
|
|
|
69
|
+ <result column="messagetype" property="messagetype" jdbcType="VARCHAR"/>
|
|
|
70
|
+ <collection property="chidren"
|
|
|
71
|
+ column="AUTOID"
|
|
|
72
|
+ ofType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER"
|
|
|
73
|
+ select="com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper.searchSec">
|
|
|
74
|
+ </collection>
|
|
|
75
|
+ </resultMap>
|
|
|
76
|
+ <insert id="insert" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER">
|
54
|
insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT,
|
77
|
insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT,
|
55
|
ORIGINATINGSTATION, DESTINATIONSTATION,
|
78
|
ORIGINATINGSTATION, DESTINATIONSTATION,
|
56
|
TOTALWEIGHT, TOTALPIECE, MANIFESTTOTALPIECE,
|
79
|
TOTALWEIGHT, TOTALPIECE, MANIFESTTOTALPIECE,
|
|
@@ -84,278 +107,278 @@ |
|
@@ -84,278 +107,278 @@ |
84
|
#{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR},
|
107
|
#{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR},
|
85
|
#{consigneePhone,jdbcType=VARCHAR})
|
108
|
#{consigneePhone,jdbcType=VARCHAR})
|
86
|
</insert>
|
109
|
</insert>
|
87
|
- <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
|
|
|
88
|
- insert into ORIGINMANIFESTMASTER
|
|
|
89
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
90
|
- <if test="autoid != null" >
|
|
|
91
|
- AUTOID,
|
|
|
92
|
- </if>
|
|
|
93
|
- <if test="waybillnomaster != null" >
|
|
|
94
|
- WAYBILLNOMASTER,
|
|
|
95
|
- </if>
|
|
|
96
|
- <if test="segment != null" >
|
|
|
97
|
- SEGMENT,
|
|
|
98
|
- </if>
|
|
|
99
|
- <if test="originatingstation != null" >
|
|
|
100
|
- ORIGINATINGSTATION,
|
|
|
101
|
- </if>
|
|
|
102
|
- <if test="destinationstation != null" >
|
|
|
103
|
- DESTINATIONSTATION,
|
|
|
104
|
- </if>
|
|
|
105
|
- <if test="totalweight != null" >
|
|
|
106
|
- TOTALWEIGHT,
|
|
|
107
|
- </if>
|
|
|
108
|
- <if test="totalpiece != null" >
|
|
|
109
|
- TOTALPIECE,
|
|
|
110
|
- </if>
|
|
|
111
|
- <if test="manifesttotalpiece != null" >
|
|
|
112
|
- MANIFESTTOTALPIECE,
|
|
|
113
|
- </if>
|
|
|
114
|
- <if test="manifesttotalweight != null" >
|
|
|
115
|
- MANIFESTTOTALWEIGHT,
|
|
|
116
|
- </if>
|
|
|
117
|
- <if test="flightno != null" >
|
|
|
118
|
- FLIGHTNO,
|
|
|
119
|
- </if>
|
|
|
120
|
- <if test="productname != null" >
|
|
|
121
|
- PRODUCTNAME,
|
|
|
122
|
- </if>
|
|
|
123
|
- <if test="customsstatus != null" >
|
|
|
124
|
- CUSTOMSSTATUS,
|
|
|
125
|
- </if>
|
|
|
126
|
- <if test="carrier1 != null" >
|
|
|
127
|
- CARRIER1,
|
|
|
128
|
- </if>
|
|
|
129
|
- <if test="arrivalstation1 != null" >
|
|
|
130
|
- ARRIVALSTATION1,
|
|
|
131
|
- </if>
|
|
|
132
|
- <if test="carrier2 != null" >
|
|
|
133
|
- CARRIER2,
|
|
|
134
|
- </if>
|
|
|
135
|
- <if test="arrivalstation2 != null" >
|
|
|
136
|
- ARRIVALSTATION2,
|
|
|
137
|
- </if>
|
|
|
138
|
- <if test="carrier3 != null" >
|
|
|
139
|
- CARRIER3,
|
|
|
140
|
- </if>
|
|
|
141
|
- <if test="arrivalstation3 != null" >
|
|
|
142
|
- ARRIVALSTATION3,
|
|
|
143
|
- </if>
|
|
|
144
|
- <if test="paymode != null" >
|
|
|
145
|
- PAYMODE,
|
|
|
146
|
- </if>
|
|
|
147
|
- <if test="specialgoodscode != null" >
|
|
|
148
|
- SPECIALGOODSCODE,
|
|
|
149
|
- </if>
|
|
|
150
|
- <if test="customscode != null" >
|
|
|
151
|
- CUSTOMSCODE,
|
|
|
152
|
- </if>
|
|
|
153
|
- <if test="shippername != null" >
|
|
|
154
|
- SHIPPERNAME,
|
|
|
155
|
- </if>
|
|
|
156
|
- <if test="shipperaddress != null" >
|
|
|
157
|
- SHIPPERADDRESS,
|
|
|
158
|
- </if>
|
|
|
159
|
- <if test="consigneename != null" >
|
|
|
160
|
- CONSIGNEENAME,
|
|
|
161
|
- </if>
|
|
|
162
|
- <if test="consigneeaddress != null" >
|
|
|
163
|
- CONSIGNEEADDRESS,
|
|
|
164
|
- </if>
|
|
|
165
|
- <if test="receiptinformation != null" >
|
|
|
166
|
- RECEIPTINFORMATION,
|
|
|
167
|
- </if>
|
|
|
168
|
- <if test="createdate != null" >
|
|
|
169
|
- CREATEDATE,
|
|
|
170
|
- </if>
|
|
|
171
|
- <if test="flightDate != null" >
|
|
|
172
|
- FLIGHT_DATE,
|
|
|
173
|
- </if>
|
|
|
174
|
- <if test="status != null" >
|
|
|
175
|
- STATUS,
|
|
|
176
|
- </if>
|
|
|
177
|
- <if test="isbatch != null" >
|
|
|
178
|
- ISBATCH,
|
|
|
179
|
- </if>
|
|
|
180
|
- <if test="originatingstationBill != null" >
|
|
|
181
|
- ORIGINATINGSTATION_BILL,
|
|
|
182
|
- </if>
|
|
|
183
|
- <if test="destinationstationBill != null" >
|
|
|
184
|
- DESTINATIONSTATION_BILL,
|
|
|
185
|
- </if>
|
|
|
186
|
- <if test="reportorder != null" >
|
|
|
187
|
- REPORTORDER,
|
|
|
188
|
- </if>
|
|
|
189
|
- <if test="islast != null" >
|
|
|
190
|
- ISLAST,
|
|
|
191
|
- </if>
|
|
|
192
|
- <if test="shipperCode != null" >
|
|
|
193
|
- SHIPPER_CODE,
|
|
|
194
|
- </if>
|
|
|
195
|
- <if test="shipperCountrycode != null" >
|
|
|
196
|
- SHIPPER_COUNTRYCODE,
|
|
|
197
|
- </if>
|
|
|
198
|
- <if test="shipperPhone != null" >
|
|
|
199
|
- SHIPPER_PHONE,
|
|
|
200
|
- </if>
|
|
|
201
|
- <if test="shipperFax != null" >
|
|
|
202
|
- SHIPPER_FAX,
|
|
|
203
|
- </if>
|
|
|
204
|
- <if test="consigneeCode != null" >
|
|
|
205
|
- CONSIGNEE_CODE,
|
|
|
206
|
- </if>
|
|
|
207
|
- <if test="consigneeCountrycode != null" >
|
|
|
208
|
- CONSIGNEE_COUNTRYCODE,
|
|
|
209
|
- </if>
|
|
|
210
|
- <if test="consigneeFax != null" >
|
|
|
211
|
- CONSIGNEE_FAX,
|
|
|
212
|
- </if>
|
|
|
213
|
- <if test="specificConsigneename != null" >
|
|
|
214
|
- SPECIFIC_CONSIGNEENAME,
|
|
|
215
|
- </if>
|
|
|
216
|
- <if test="specificConsigneePhone != null" >
|
|
|
217
|
- SPECIFIC_CONSIGNEE_PHONE,
|
|
|
218
|
- </if>
|
|
|
219
|
- <if test="consigneePhone != null" >
|
|
|
220
|
- CONSIGNEE_PHONE,
|
|
|
221
|
- </if>
|
|
|
222
|
- </trim>
|
|
|
223
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
224
|
- <if test="autoid != null" >
|
|
|
225
|
- #{autoid,jdbcType=VARCHAR},
|
|
|
226
|
- </if>
|
|
|
227
|
- <if test="waybillnomaster != null" >
|
|
|
228
|
- #{waybillnomaster,jdbcType=VARCHAR},
|
|
|
229
|
- </if>
|
|
|
230
|
- <if test="segment != null" >
|
|
|
231
|
- #{segment,jdbcType=VARCHAR},
|
|
|
232
|
- </if>
|
|
|
233
|
- <if test="originatingstation != null" >
|
|
|
234
|
- #{originatingstation,jdbcType=VARCHAR},
|
|
|
235
|
- </if>
|
|
|
236
|
- <if test="destinationstation != null" >
|
|
|
237
|
- #{destinationstation,jdbcType=VARCHAR},
|
|
|
238
|
- </if>
|
|
|
239
|
- <if test="totalweight != null" >
|
|
|
240
|
- #{totalweight,jdbcType=VARCHAR},
|
|
|
241
|
- </if>
|
|
|
242
|
- <if test="totalpiece != null" >
|
|
|
243
|
- #{totalpiece,jdbcType=VARCHAR},
|
|
|
244
|
- </if>
|
|
|
245
|
- <if test="manifesttotalpiece != null" >
|
|
|
246
|
- #{manifesttotalpiece,jdbcType=VARCHAR},
|
|
|
247
|
- </if>
|
|
|
248
|
- <if test="manifesttotalweight != null" >
|
|
|
249
|
- #{manifesttotalweight,jdbcType=VARCHAR},
|
|
|
250
|
- </if>
|
|
|
251
|
- <if test="flightno != null" >
|
|
|
252
|
- #{flightno,jdbcType=VARCHAR},
|
|
|
253
|
- </if>
|
|
|
254
|
- <if test="productname != null" >
|
|
|
255
|
- #{productname,jdbcType=VARCHAR},
|
|
|
256
|
- </if>
|
|
|
257
|
- <if test="customsstatus != null" >
|
|
|
258
|
- #{customsstatus,jdbcType=VARCHAR},
|
|
|
259
|
- </if>
|
|
|
260
|
- <if test="carrier1 != null" >
|
|
|
261
|
- #{carrier1,jdbcType=VARCHAR},
|
|
|
262
|
- </if>
|
|
|
263
|
- <if test="arrivalstation1 != null" >
|
|
|
264
|
- #{arrivalstation1,jdbcType=VARCHAR},
|
|
|
265
|
- </if>
|
|
|
266
|
- <if test="carrier2 != null" >
|
|
|
267
|
- #{carrier2,jdbcType=VARCHAR},
|
|
|
268
|
- </if>
|
|
|
269
|
- <if test="arrivalstation2 != null" >
|
|
|
270
|
- #{arrivalstation2,jdbcType=VARCHAR},
|
|
|
271
|
- </if>
|
|
|
272
|
- <if test="carrier3 != null" >
|
|
|
273
|
- #{carrier3,jdbcType=VARCHAR},
|
|
|
274
|
- </if>
|
|
|
275
|
- <if test="arrivalstation3 != null" >
|
|
|
276
|
- #{arrivalstation3,jdbcType=VARCHAR},
|
|
|
277
|
- </if>
|
|
|
278
|
- <if test="paymode != null" >
|
|
|
279
|
- #{paymode,jdbcType=VARCHAR},
|
|
|
280
|
- </if>
|
|
|
281
|
- <if test="specialgoodscode != null" >
|
|
|
282
|
- #{specialgoodscode,jdbcType=VARCHAR},
|
|
|
283
|
- </if>
|
|
|
284
|
- <if test="customscode != null" >
|
|
|
285
|
- #{customscode,jdbcType=VARCHAR},
|
|
|
286
|
- </if>
|
|
|
287
|
- <if test="shippername != null" >
|
|
|
288
|
- #{shippername,jdbcType=VARCHAR},
|
|
|
289
|
- </if>
|
|
|
290
|
- <if test="shipperaddress != null" >
|
|
|
291
|
- #{shipperaddress,jdbcType=VARCHAR},
|
|
|
292
|
- </if>
|
|
|
293
|
- <if test="consigneename != null" >
|
|
|
294
|
- #{consigneename,jdbcType=VARCHAR},
|
|
|
295
|
- </if>
|
|
|
296
|
- <if test="consigneeaddress != null" >
|
|
|
297
|
- #{consigneeaddress,jdbcType=VARCHAR},
|
|
|
298
|
- </if>
|
|
|
299
|
- <if test="receiptinformation != null" >
|
|
|
300
|
- #{receiptinformation,jdbcType=VARCHAR},
|
|
|
301
|
- </if>
|
|
|
302
|
- <if test="createdate != null" >
|
|
|
303
|
- #{createdate,jdbcType=TIMESTAMP},
|
|
|
304
|
- </if>
|
|
|
305
|
- <if test="flightDate != null" >
|
|
|
306
|
- #{flightDate,jdbcType=TIMESTAMP},
|
|
|
307
|
- </if>
|
|
|
308
|
- <if test="status != null" >
|
|
|
309
|
- #{status,jdbcType=VARCHAR},
|
|
|
310
|
- </if>
|
|
|
311
|
- <if test="isbatch != null" >
|
|
|
312
|
- #{isbatch,jdbcType=VARCHAR},
|
|
|
313
|
- </if>
|
|
|
314
|
- <if test="originatingstationBill != null" >
|
|
|
315
|
- #{originatingstationBill,jdbcType=VARCHAR},
|
|
|
316
|
- </if>
|
|
|
317
|
- <if test="destinationstationBill != null" >
|
|
|
318
|
- #{destinationstationBill,jdbcType=VARCHAR},
|
|
|
319
|
- </if>
|
|
|
320
|
- <if test="reportorder != null" >
|
|
|
321
|
- #{reportorder,jdbcType=VARCHAR},
|
|
|
322
|
- </if>
|
|
|
323
|
- <if test="islast != null" >
|
|
|
324
|
- #{islast,jdbcType=VARCHAR},
|
|
|
325
|
- </if>
|
|
|
326
|
- <if test="shipperCode != null" >
|
|
|
327
|
- #{shipperCode,jdbcType=VARCHAR},
|
|
|
328
|
- </if>
|
|
|
329
|
- <if test="shipperCountrycode != null" >
|
|
|
330
|
- #{shipperCountrycode,jdbcType=VARCHAR},
|
|
|
331
|
- </if>
|
|
|
332
|
- <if test="shipperPhone != null" >
|
|
|
333
|
- #{shipperPhone,jdbcType=VARCHAR},
|
|
|
334
|
- </if>
|
|
|
335
|
- <if test="shipperFax != null" >
|
|
|
336
|
- #{shipperFax,jdbcType=VARCHAR},
|
|
|
337
|
- </if>
|
|
|
338
|
- <if test="consigneeCode != null" >
|
|
|
339
|
- #{consigneeCode,jdbcType=VARCHAR},
|
|
|
340
|
- </if>
|
|
|
341
|
- <if test="consigneeCountrycode != null" >
|
|
|
342
|
- #{consigneeCountrycode,jdbcType=VARCHAR},
|
|
|
343
|
- </if>
|
|
|
344
|
- <if test="consigneeFax != null" >
|
|
|
345
|
- #{consigneeFax,jdbcType=VARCHAR},
|
|
|
346
|
- </if>
|
|
|
347
|
- <if test="specificConsigneename != null" >
|
|
|
348
|
- #{specificConsigneename,jdbcType=VARCHAR},
|
|
|
349
|
- </if>
|
|
|
350
|
- <if test="specificConsigneePhone != null" >
|
|
|
351
|
- #{specificConsigneePhone,jdbcType=VARCHAR},
|
|
|
352
|
- </if>
|
|
|
353
|
- <if test="consigneePhone != null" >
|
|
|
354
|
- #{consigneePhone,jdbcType=VARCHAR},
|
|
|
355
|
- </if>
|
|
|
356
|
- </trim>
|
|
|
357
|
- </insert>
|
|
|
358
|
- <update id="changeFlightDate" parameterType="hashmap">
|
110
|
+ <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER">
|
|
|
111
|
+ insert into ORIGINMANIFESTMASTER
|
|
|
112
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
113
|
+ <if test="autoid != null">
|
|
|
114
|
+ AUTOID,
|
|
|
115
|
+ </if>
|
|
|
116
|
+ <if test="waybillnomaster != null">
|
|
|
117
|
+ WAYBILLNOMASTER,
|
|
|
118
|
+ </if>
|
|
|
119
|
+ <if test="segment != null">
|
|
|
120
|
+ SEGMENT,
|
|
|
121
|
+ </if>
|
|
|
122
|
+ <if test="originatingstation != null">
|
|
|
123
|
+ ORIGINATINGSTATION,
|
|
|
124
|
+ </if>
|
|
|
125
|
+ <if test="destinationstation != null">
|
|
|
126
|
+ DESTINATIONSTATION,
|
|
|
127
|
+ </if>
|
|
|
128
|
+ <if test="totalweight != null">
|
|
|
129
|
+ TOTALWEIGHT,
|
|
|
130
|
+ </if>
|
|
|
131
|
+ <if test="totalpiece != null">
|
|
|
132
|
+ TOTALPIECE,
|
|
|
133
|
+ </if>
|
|
|
134
|
+ <if test="manifesttotalpiece != null">
|
|
|
135
|
+ MANIFESTTOTALPIECE,
|
|
|
136
|
+ </if>
|
|
|
137
|
+ <if test="manifesttotalweight != null">
|
|
|
138
|
+ MANIFESTTOTALWEIGHT,
|
|
|
139
|
+ </if>
|
|
|
140
|
+ <if test="flightno != null">
|
|
|
141
|
+ FLIGHTNO,
|
|
|
142
|
+ </if>
|
|
|
143
|
+ <if test="productname != null">
|
|
|
144
|
+ PRODUCTNAME,
|
|
|
145
|
+ </if>
|
|
|
146
|
+ <if test="customsstatus != null">
|
|
|
147
|
+ CUSTOMSSTATUS,
|
|
|
148
|
+ </if>
|
|
|
149
|
+ <if test="carrier1 != null">
|
|
|
150
|
+ CARRIER1,
|
|
|
151
|
+ </if>
|
|
|
152
|
+ <if test="arrivalstation1 != null">
|
|
|
153
|
+ ARRIVALSTATION1,
|
|
|
154
|
+ </if>
|
|
|
155
|
+ <if test="carrier2 != null">
|
|
|
156
|
+ CARRIER2,
|
|
|
157
|
+ </if>
|
|
|
158
|
+ <if test="arrivalstation2 != null">
|
|
|
159
|
+ ARRIVALSTATION2,
|
|
|
160
|
+ </if>
|
|
|
161
|
+ <if test="carrier3 != null">
|
|
|
162
|
+ CARRIER3,
|
|
|
163
|
+ </if>
|
|
|
164
|
+ <if test="arrivalstation3 != null">
|
|
|
165
|
+ ARRIVALSTATION3,
|
|
|
166
|
+ </if>
|
|
|
167
|
+ <if test="paymode != null">
|
|
|
168
|
+ PAYMODE,
|
|
|
169
|
+ </if>
|
|
|
170
|
+ <if test="specialgoodscode != null">
|
|
|
171
|
+ SPECIALGOODSCODE,
|
|
|
172
|
+ </if>
|
|
|
173
|
+ <if test="customscode != null">
|
|
|
174
|
+ CUSTOMSCODE,
|
|
|
175
|
+ </if>
|
|
|
176
|
+ <if test="shippername != null">
|
|
|
177
|
+ SHIPPERNAME,
|
|
|
178
|
+ </if>
|
|
|
179
|
+ <if test="shipperaddress != null">
|
|
|
180
|
+ SHIPPERADDRESS,
|
|
|
181
|
+ </if>
|
|
|
182
|
+ <if test="consigneename != null">
|
|
|
183
|
+ CONSIGNEENAME,
|
|
|
184
|
+ </if>
|
|
|
185
|
+ <if test="consigneeaddress != null">
|
|
|
186
|
+ CONSIGNEEADDRESS,
|
|
|
187
|
+ </if>
|
|
|
188
|
+ <if test="receiptinformation != null">
|
|
|
189
|
+ RECEIPTINFORMATION,
|
|
|
190
|
+ </if>
|
|
|
191
|
+ <if test="createdate != null">
|
|
|
192
|
+ CREATEDATE,
|
|
|
193
|
+ </if>
|
|
|
194
|
+ <if test="flightDate != null">
|
|
|
195
|
+ FLIGHT_DATE,
|
|
|
196
|
+ </if>
|
|
|
197
|
+ <if test="status != null">
|
|
|
198
|
+ STATUS,
|
|
|
199
|
+ </if>
|
|
|
200
|
+ <if test="isbatch != null">
|
|
|
201
|
+ ISBATCH,
|
|
|
202
|
+ </if>
|
|
|
203
|
+ <if test="originatingstationBill != null">
|
|
|
204
|
+ ORIGINATINGSTATION_BILL,
|
|
|
205
|
+ </if>
|
|
|
206
|
+ <if test="destinationstationBill != null">
|
|
|
207
|
+ DESTINATIONSTATION_BILL,
|
|
|
208
|
+ </if>
|
|
|
209
|
+ <if test="reportorder != null">
|
|
|
210
|
+ REPORTORDER,
|
|
|
211
|
+ </if>
|
|
|
212
|
+ <if test="islast != null">
|
|
|
213
|
+ ISLAST,
|
|
|
214
|
+ </if>
|
|
|
215
|
+ <if test="shipperCode != null">
|
|
|
216
|
+ SHIPPER_CODE,
|
|
|
217
|
+ </if>
|
|
|
218
|
+ <if test="shipperCountrycode != null">
|
|
|
219
|
+ SHIPPER_COUNTRYCODE,
|
|
|
220
|
+ </if>
|
|
|
221
|
+ <if test="shipperPhone != null">
|
|
|
222
|
+ SHIPPER_PHONE,
|
|
|
223
|
+ </if>
|
|
|
224
|
+ <if test="shipperFax != null">
|
|
|
225
|
+ SHIPPER_FAX,
|
|
|
226
|
+ </if>
|
|
|
227
|
+ <if test="consigneeCode != null">
|
|
|
228
|
+ CONSIGNEE_CODE,
|
|
|
229
|
+ </if>
|
|
|
230
|
+ <if test="consigneeCountrycode != null">
|
|
|
231
|
+ CONSIGNEE_COUNTRYCODE,
|
|
|
232
|
+ </if>
|
|
|
233
|
+ <if test="consigneeFax != null">
|
|
|
234
|
+ CONSIGNEE_FAX,
|
|
|
235
|
+ </if>
|
|
|
236
|
+ <if test="specificConsigneename != null">
|
|
|
237
|
+ SPECIFIC_CONSIGNEENAME,
|
|
|
238
|
+ </if>
|
|
|
239
|
+ <if test="specificConsigneePhone != null">
|
|
|
240
|
+ SPECIFIC_CONSIGNEE_PHONE,
|
|
|
241
|
+ </if>
|
|
|
242
|
+ <if test="consigneePhone != null">
|
|
|
243
|
+ CONSIGNEE_PHONE,
|
|
|
244
|
+ </if>
|
|
|
245
|
+ </trim>
|
|
|
246
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
247
|
+ <if test="autoid != null">
|
|
|
248
|
+ #{autoid,jdbcType=VARCHAR},
|
|
|
249
|
+ </if>
|
|
|
250
|
+ <if test="waybillnomaster != null">
|
|
|
251
|
+ #{waybillnomaster,jdbcType=VARCHAR},
|
|
|
252
|
+ </if>
|
|
|
253
|
+ <if test="segment != null">
|
|
|
254
|
+ #{segment,jdbcType=VARCHAR},
|
|
|
255
|
+ </if>
|
|
|
256
|
+ <if test="originatingstation != null">
|
|
|
257
|
+ #{originatingstation,jdbcType=VARCHAR},
|
|
|
258
|
+ </if>
|
|
|
259
|
+ <if test="destinationstation != null">
|
|
|
260
|
+ #{destinationstation,jdbcType=VARCHAR},
|
|
|
261
|
+ </if>
|
|
|
262
|
+ <if test="totalweight != null">
|
|
|
263
|
+ #{totalweight,jdbcType=VARCHAR},
|
|
|
264
|
+ </if>
|
|
|
265
|
+ <if test="totalpiece != null">
|
|
|
266
|
+ #{totalpiece,jdbcType=VARCHAR},
|
|
|
267
|
+ </if>
|
|
|
268
|
+ <if test="manifesttotalpiece != null">
|
|
|
269
|
+ #{manifesttotalpiece,jdbcType=VARCHAR},
|
|
|
270
|
+ </if>
|
|
|
271
|
+ <if test="manifesttotalweight != null">
|
|
|
272
|
+ #{manifesttotalweight,jdbcType=VARCHAR},
|
|
|
273
|
+ </if>
|
|
|
274
|
+ <if test="flightno != null">
|
|
|
275
|
+ #{flightno,jdbcType=VARCHAR},
|
|
|
276
|
+ </if>
|
|
|
277
|
+ <if test="productname != null">
|
|
|
278
|
+ #{productname,jdbcType=VARCHAR},
|
|
|
279
|
+ </if>
|
|
|
280
|
+ <if test="customsstatus != null">
|
|
|
281
|
+ #{customsstatus,jdbcType=VARCHAR},
|
|
|
282
|
+ </if>
|
|
|
283
|
+ <if test="carrier1 != null">
|
|
|
284
|
+ #{carrier1,jdbcType=VARCHAR},
|
|
|
285
|
+ </if>
|
|
|
286
|
+ <if test="arrivalstation1 != null">
|
|
|
287
|
+ #{arrivalstation1,jdbcType=VARCHAR},
|
|
|
288
|
+ </if>
|
|
|
289
|
+ <if test="carrier2 != null">
|
|
|
290
|
+ #{carrier2,jdbcType=VARCHAR},
|
|
|
291
|
+ </if>
|
|
|
292
|
+ <if test="arrivalstation2 != null">
|
|
|
293
|
+ #{arrivalstation2,jdbcType=VARCHAR},
|
|
|
294
|
+ </if>
|
|
|
295
|
+ <if test="carrier3 != null">
|
|
|
296
|
+ #{carrier3,jdbcType=VARCHAR},
|
|
|
297
|
+ </if>
|
|
|
298
|
+ <if test="arrivalstation3 != null">
|
|
|
299
|
+ #{arrivalstation3,jdbcType=VARCHAR},
|
|
|
300
|
+ </if>
|
|
|
301
|
+ <if test="paymode != null">
|
|
|
302
|
+ #{paymode,jdbcType=VARCHAR},
|
|
|
303
|
+ </if>
|
|
|
304
|
+ <if test="specialgoodscode != null">
|
|
|
305
|
+ #{specialgoodscode,jdbcType=VARCHAR},
|
|
|
306
|
+ </if>
|
|
|
307
|
+ <if test="customscode != null">
|
|
|
308
|
+ #{customscode,jdbcType=VARCHAR},
|
|
|
309
|
+ </if>
|
|
|
310
|
+ <if test="shippername != null">
|
|
|
311
|
+ #{shippername,jdbcType=VARCHAR},
|
|
|
312
|
+ </if>
|
|
|
313
|
+ <if test="shipperaddress != null">
|
|
|
314
|
+ #{shipperaddress,jdbcType=VARCHAR},
|
|
|
315
|
+ </if>
|
|
|
316
|
+ <if test="consigneename != null">
|
|
|
317
|
+ #{consigneename,jdbcType=VARCHAR},
|
|
|
318
|
+ </if>
|
|
|
319
|
+ <if test="consigneeaddress != null">
|
|
|
320
|
+ #{consigneeaddress,jdbcType=VARCHAR},
|
|
|
321
|
+ </if>
|
|
|
322
|
+ <if test="receiptinformation != null">
|
|
|
323
|
+ #{receiptinformation,jdbcType=VARCHAR},
|
|
|
324
|
+ </if>
|
|
|
325
|
+ <if test="createdate != null">
|
|
|
326
|
+ #{createdate,jdbcType=TIMESTAMP},
|
|
|
327
|
+ </if>
|
|
|
328
|
+ <if test="flightDate != null">
|
|
|
329
|
+ #{flightDate,jdbcType=TIMESTAMP},
|
|
|
330
|
+ </if>
|
|
|
331
|
+ <if test="status != null">
|
|
|
332
|
+ #{status,jdbcType=VARCHAR},
|
|
|
333
|
+ </if>
|
|
|
334
|
+ <if test="isbatch != null">
|
|
|
335
|
+ #{isbatch,jdbcType=VARCHAR},
|
|
|
336
|
+ </if>
|
|
|
337
|
+ <if test="originatingstationBill != null">
|
|
|
338
|
+ #{originatingstationBill,jdbcType=VARCHAR},
|
|
|
339
|
+ </if>
|
|
|
340
|
+ <if test="destinationstationBill != null">
|
|
|
341
|
+ #{destinationstationBill,jdbcType=VARCHAR},
|
|
|
342
|
+ </if>
|
|
|
343
|
+ <if test="reportorder != null">
|
|
|
344
|
+ #{reportorder,jdbcType=VARCHAR},
|
|
|
345
|
+ </if>
|
|
|
346
|
+ <if test="islast != null">
|
|
|
347
|
+ #{islast,jdbcType=VARCHAR},
|
|
|
348
|
+ </if>
|
|
|
349
|
+ <if test="shipperCode != null">
|
|
|
350
|
+ #{shipperCode,jdbcType=VARCHAR},
|
|
|
351
|
+ </if>
|
|
|
352
|
+ <if test="shipperCountrycode != null">
|
|
|
353
|
+ #{shipperCountrycode,jdbcType=VARCHAR},
|
|
|
354
|
+ </if>
|
|
|
355
|
+ <if test="shipperPhone != null">
|
|
|
356
|
+ #{shipperPhone,jdbcType=VARCHAR},
|
|
|
357
|
+ </if>
|
|
|
358
|
+ <if test="shipperFax != null">
|
|
|
359
|
+ #{shipperFax,jdbcType=VARCHAR},
|
|
|
360
|
+ </if>
|
|
|
361
|
+ <if test="consigneeCode != null">
|
|
|
362
|
+ #{consigneeCode,jdbcType=VARCHAR},
|
|
|
363
|
+ </if>
|
|
|
364
|
+ <if test="consigneeCountrycode != null">
|
|
|
365
|
+ #{consigneeCountrycode,jdbcType=VARCHAR},
|
|
|
366
|
+ </if>
|
|
|
367
|
+ <if test="consigneeFax != null">
|
|
|
368
|
+ #{consigneeFax,jdbcType=VARCHAR},
|
|
|
369
|
+ </if>
|
|
|
370
|
+ <if test="specificConsigneename != null">
|
|
|
371
|
+ #{specificConsigneename,jdbcType=VARCHAR},
|
|
|
372
|
+ </if>
|
|
|
373
|
+ <if test="specificConsigneePhone != null">
|
|
|
374
|
+ #{specificConsigneePhone,jdbcType=VARCHAR},
|
|
|
375
|
+ </if>
|
|
|
376
|
+ <if test="consigneePhone != null">
|
|
|
377
|
+ #{consigneePhone,jdbcType=VARCHAR},
|
|
|
378
|
+ </if>
|
|
|
379
|
+ </trim>
|
|
|
380
|
+ </insert>
|
|
|
381
|
+ <update id="changeFlightDate" parameterType="hashmap">
|
359
|
UPDATE ORIGINMANIFESTMASTER
|
382
|
UPDATE ORIGINMANIFESTMASTER
|
360
|
set FLIGHT_DATE = "TO_DATE"(#{setDate},'yyyy-mm-dd')
|
383
|
set FLIGHT_DATE = "TO_DATE"(#{setDate},'yyyy-mm-dd')
|
361
|
WHERE
|
384
|
WHERE
|
|
@@ -363,20 +386,20 @@ |
|
@@ -363,20 +386,20 @@ |
363
|
AND FLIGHTNO=#{flightNo}
|
386
|
AND FLIGHTNO=#{flightNo}
|
364
|
</update>
|
387
|
</update>
|
365
|
|
388
|
|
366
|
- <select id="selectByAHBA" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" resultMap="BaseResultMap">
|
|
|
367
|
- select
|
|
|
368
|
- <include refid="Base_Column_List" />
|
|
|
369
|
- from
|
389
|
+ <select id="selectByAHBA" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" resultMap="BaseResultMap">
|
|
|
390
|
+ select
|
|
|
391
|
+ <include refid="Base_Column_List"/>
|
|
|
392
|
+ from
|
370
|
ORIGINMANIFESTMASTER
|
393
|
ORIGINMANIFESTMASTER
|
371
|
- where
|
394
|
+ where
|
372
|
FLIGHT_DATE = #{flightDate ,jdbcType=DATE}
|
395
|
FLIGHT_DATE = #{flightDate ,jdbcType=DATE}
|
373
|
- AND
|
396
|
+ AND
|
374
|
FLIGHTNO= #{flightNo,jdbcType=VARCHAR}
|
397
|
FLIGHTNO= #{flightNo,jdbcType=VARCHAR}
|
375
|
- AND
|
398
|
+ AND
|
376
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
399
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
377
|
- </select>
|
400
|
+ </select>
|
378
|
|
401
|
|
379
|
- <select id="statics" resultType="map">
|
402
|
+ <select id="statics" resultType="map">
|
380
|
SELECT
|
403
|
SELECT
|
381
|
FLIGHTNO,
|
404
|
FLIGHTNO,
|
382
|
ORIGINATINGSTATION,
|
405
|
ORIGINATINGSTATION,
|
|
@@ -407,4 +430,85 @@ GROUP BY |
|
@@ -407,4 +430,85 @@ GROUP BY |
407
|
ORIGINATINGSTATION,
|
430
|
ORIGINATINGSTATION,
|
408
|
DESTINATIONSTATION
|
431
|
DESTINATIONSTATION
|
409
|
</select>
|
432
|
</select>
|
|
|
433
|
+ <select id="search" resultMap="TreeMap">
|
|
|
434
|
+ SELECT
|
|
|
435
|
+ * FROM (
|
|
|
436
|
+ SELECT
|
|
|
437
|
+ autoid,
|
|
|
438
|
+ flightno,
|
|
|
439
|
+ flight_date,
|
|
|
440
|
+ originatingstation,
|
|
|
441
|
+ destinationstation,
|
|
|
442
|
+ waybillnomaster,
|
|
|
443
|
+ manifesttotalpiece AS totalpiece,
|
|
|
444
|
+ manifesttotalweight AS totalweight,
|
|
|
445
|
+ customscode,
|
|
|
446
|
+ createdate,
|
|
|
447
|
+ status AS status,
|
|
|
448
|
+ receiptinformation,
|
|
|
449
|
+ 'MT1201' AS messagetype
|
|
|
450
|
+ FROM
|
|
|
451
|
+ originmanifestmaster UNION ALL
|
|
|
452
|
+ SELECT
|
|
|
453
|
+ autoid,
|
|
|
454
|
+ flightno,
|
|
|
455
|
+ flightdate as flight_date,
|
|
|
456
|
+ originatingstation,
|
|
|
457
|
+ destinationstation,
|
|
|
458
|
+ waybillnomaster,
|
|
|
459
|
+ tallytotalpiece AS totalpiece,
|
|
|
460
|
+ tallytotalweight AS totalweight,
|
|
|
461
|
+ customscode,
|
|
|
462
|
+ createdate,
|
|
|
463
|
+ status,
|
|
|
464
|
+ receiptinformation,
|
|
|
465
|
+ talltype AS messagetype
|
|
|
466
|
+ FROM
|
|
|
467
|
+ tallymaster
|
|
|
468
|
+ WHERE
|
|
|
469
|
+ talltype = 'MT5201'
|
|
|
470
|
+ ) T
|
|
|
471
|
+ WHERE
|
|
|
472
|
+ totalpiece>=0 and destinationstation='CGO'
|
|
|
473
|
+ <if test="waybillnomaster != null and waybillnomaster != ''">
|
|
|
474
|
+ AND waybillnomaster= #{waybillnomaster,jdbcType=VARCHAR}
|
|
|
475
|
+ </if>
|
|
|
476
|
+ <if test="flightNo != null and flightNo != ''">
|
|
|
477
|
+ AND flightno = #{flightNo,jdbcType=VARCHAR}
|
|
|
478
|
+ </if>
|
|
|
479
|
+ <if test="flightDate != null and flightDate != ''">
|
|
|
480
|
+ AND flight_date = TO_DATE( #{flightDate ,jdbcType=DATE}, 'yyyy-MM-dd' )
|
|
|
481
|
+ </if>
|
|
|
482
|
+ ORDER BY
|
|
|
483
|
+ flightno,
|
|
|
484
|
+ waybillnomaster DESC,
|
|
|
485
|
+ messagetype ASC
|
|
|
486
|
+ </select>
|
|
|
487
|
+
|
|
|
488
|
+ <select id="searchSec" parameterType="string" resultMap="BaseResultMap">
|
|
|
489
|
+ select autoid,
|
|
|
490
|
+ waybillnosecondary as waybillnomaster,
|
|
|
491
|
+ manifestpiece as totalpiece,
|
|
|
492
|
+ manifestweight as totalweight,
|
|
|
493
|
+ customscode,
|
|
|
494
|
+ createdate,
|
|
|
495
|
+ status,
|
|
|
496
|
+ receiption as receiptinformation,
|
|
|
497
|
+ 'MT1201-1' as messagetype
|
|
|
498
|
+ from originmanifestsecondary
|
|
|
499
|
+ where originmanifestmasterautoid= #{autoid}
|
|
|
500
|
+ UNION ALL
|
|
|
501
|
+ select autoid,
|
|
|
502
|
+ waybillnosecondary as waybillnomaster,
|
|
|
503
|
+ tallypiece as totalpiece,
|
|
|
504
|
+ tallyweight as totalweight,
|
|
|
505
|
+ customscode,
|
|
|
506
|
+ createdate,
|
|
|
507
|
+ status,
|
|
|
508
|
+ receiptinformation,
|
|
|
509
|
+ 'MT5201-1' as messagetype
|
|
|
510
|
+ from tallysecondary
|
|
|
511
|
+ where tallymasterid= #{autoid}
|
|
|
512
|
+ </select>
|
|
|
513
|
+
|
410
|
</mapper> |
514
|
</mapper> |