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" />
|
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"/>
|
49
|
</resultMap>
|
50
|
</resultMap>
|
50
|
<sql id="Base_Column_List">
|
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,273 +107,273 @@ |
|
@@ -84,273 +107,273 @@ |
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" >
|
110
|
+ <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER">
|
88
|
insert into ORIGINMANIFESTMASTER
|
111
|
insert into ORIGINMANIFESTMASTER
|
89
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
90
|
- <if test="autoid != null" >
|
112
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
113
|
+ <if test="autoid != null">
|
91
|
AUTOID,
|
114
|
AUTOID,
|
92
|
</if>
|
115
|
</if>
|
93
|
- <if test="waybillnomaster != null" >
|
116
|
+ <if test="waybillnomaster != null">
|
94
|
WAYBILLNOMASTER,
|
117
|
WAYBILLNOMASTER,
|
95
|
</if>
|
118
|
</if>
|
96
|
- <if test="segment != null" >
|
119
|
+ <if test="segment != null">
|
97
|
SEGMENT,
|
120
|
SEGMENT,
|
98
|
</if>
|
121
|
</if>
|
99
|
- <if test="originatingstation != null" >
|
122
|
+ <if test="originatingstation != null">
|
100
|
ORIGINATINGSTATION,
|
123
|
ORIGINATINGSTATION,
|
101
|
</if>
|
124
|
</if>
|
102
|
- <if test="destinationstation != null" >
|
125
|
+ <if test="destinationstation != null">
|
103
|
DESTINATIONSTATION,
|
126
|
DESTINATIONSTATION,
|
104
|
</if>
|
127
|
</if>
|
105
|
- <if test="totalweight != null" >
|
128
|
+ <if test="totalweight != null">
|
106
|
TOTALWEIGHT,
|
129
|
TOTALWEIGHT,
|
107
|
</if>
|
130
|
</if>
|
108
|
- <if test="totalpiece != null" >
|
131
|
+ <if test="totalpiece != null">
|
109
|
TOTALPIECE,
|
132
|
TOTALPIECE,
|
110
|
</if>
|
133
|
</if>
|
111
|
- <if test="manifesttotalpiece != null" >
|
134
|
+ <if test="manifesttotalpiece != null">
|
112
|
MANIFESTTOTALPIECE,
|
135
|
MANIFESTTOTALPIECE,
|
113
|
</if>
|
136
|
</if>
|
114
|
- <if test="manifesttotalweight != null" >
|
137
|
+ <if test="manifesttotalweight != null">
|
115
|
MANIFESTTOTALWEIGHT,
|
138
|
MANIFESTTOTALWEIGHT,
|
116
|
</if>
|
139
|
</if>
|
117
|
- <if test="flightno != null" >
|
140
|
+ <if test="flightno != null">
|
118
|
FLIGHTNO,
|
141
|
FLIGHTNO,
|
119
|
</if>
|
142
|
</if>
|
120
|
- <if test="productname != null" >
|
143
|
+ <if test="productname != null">
|
121
|
PRODUCTNAME,
|
144
|
PRODUCTNAME,
|
122
|
</if>
|
145
|
</if>
|
123
|
- <if test="customsstatus != null" >
|
146
|
+ <if test="customsstatus != null">
|
124
|
CUSTOMSSTATUS,
|
147
|
CUSTOMSSTATUS,
|
125
|
</if>
|
148
|
</if>
|
126
|
- <if test="carrier1 != null" >
|
149
|
+ <if test="carrier1 != null">
|
127
|
CARRIER1,
|
150
|
CARRIER1,
|
128
|
</if>
|
151
|
</if>
|
129
|
- <if test="arrivalstation1 != null" >
|
152
|
+ <if test="arrivalstation1 != null">
|
130
|
ARRIVALSTATION1,
|
153
|
ARRIVALSTATION1,
|
131
|
</if>
|
154
|
</if>
|
132
|
- <if test="carrier2 != null" >
|
155
|
+ <if test="carrier2 != null">
|
133
|
CARRIER2,
|
156
|
CARRIER2,
|
134
|
</if>
|
157
|
</if>
|
135
|
- <if test="arrivalstation2 != null" >
|
158
|
+ <if test="arrivalstation2 != null">
|
136
|
ARRIVALSTATION2,
|
159
|
ARRIVALSTATION2,
|
137
|
</if>
|
160
|
</if>
|
138
|
- <if test="carrier3 != null" >
|
161
|
+ <if test="carrier3 != null">
|
139
|
CARRIER3,
|
162
|
CARRIER3,
|
140
|
</if>
|
163
|
</if>
|
141
|
- <if test="arrivalstation3 != null" >
|
164
|
+ <if test="arrivalstation3 != null">
|
142
|
ARRIVALSTATION3,
|
165
|
ARRIVALSTATION3,
|
143
|
</if>
|
166
|
</if>
|
144
|
- <if test="paymode != null" >
|
167
|
+ <if test="paymode != null">
|
145
|
PAYMODE,
|
168
|
PAYMODE,
|
146
|
</if>
|
169
|
</if>
|
147
|
- <if test="specialgoodscode != null" >
|
170
|
+ <if test="specialgoodscode != null">
|
148
|
SPECIALGOODSCODE,
|
171
|
SPECIALGOODSCODE,
|
149
|
</if>
|
172
|
</if>
|
150
|
- <if test="customscode != null" >
|
173
|
+ <if test="customscode != null">
|
151
|
CUSTOMSCODE,
|
174
|
CUSTOMSCODE,
|
152
|
</if>
|
175
|
</if>
|
153
|
- <if test="shippername != null" >
|
176
|
+ <if test="shippername != null">
|
154
|
SHIPPERNAME,
|
177
|
SHIPPERNAME,
|
155
|
</if>
|
178
|
</if>
|
156
|
- <if test="shipperaddress != null" >
|
179
|
+ <if test="shipperaddress != null">
|
157
|
SHIPPERADDRESS,
|
180
|
SHIPPERADDRESS,
|
158
|
</if>
|
181
|
</if>
|
159
|
- <if test="consigneename != null" >
|
182
|
+ <if test="consigneename != null">
|
160
|
CONSIGNEENAME,
|
183
|
CONSIGNEENAME,
|
161
|
</if>
|
184
|
</if>
|
162
|
- <if test="consigneeaddress != null" >
|
185
|
+ <if test="consigneeaddress != null">
|
163
|
CONSIGNEEADDRESS,
|
186
|
CONSIGNEEADDRESS,
|
164
|
</if>
|
187
|
</if>
|
165
|
- <if test="receiptinformation != null" >
|
188
|
+ <if test="receiptinformation != null">
|
166
|
RECEIPTINFORMATION,
|
189
|
RECEIPTINFORMATION,
|
167
|
</if>
|
190
|
</if>
|
168
|
- <if test="createdate != null" >
|
191
|
+ <if test="createdate != null">
|
169
|
CREATEDATE,
|
192
|
CREATEDATE,
|
170
|
</if>
|
193
|
</if>
|
171
|
- <if test="flightDate != null" >
|
194
|
+ <if test="flightDate != null">
|
172
|
FLIGHT_DATE,
|
195
|
FLIGHT_DATE,
|
173
|
</if>
|
196
|
</if>
|
174
|
- <if test="status != null" >
|
197
|
+ <if test="status != null">
|
175
|
STATUS,
|
198
|
STATUS,
|
176
|
</if>
|
199
|
</if>
|
177
|
- <if test="isbatch != null" >
|
200
|
+ <if test="isbatch != null">
|
178
|
ISBATCH,
|
201
|
ISBATCH,
|
179
|
</if>
|
202
|
</if>
|
180
|
- <if test="originatingstationBill != null" >
|
203
|
+ <if test="originatingstationBill != null">
|
181
|
ORIGINATINGSTATION_BILL,
|
204
|
ORIGINATINGSTATION_BILL,
|
182
|
</if>
|
205
|
</if>
|
183
|
- <if test="destinationstationBill != null" >
|
206
|
+ <if test="destinationstationBill != null">
|
184
|
DESTINATIONSTATION_BILL,
|
207
|
DESTINATIONSTATION_BILL,
|
185
|
</if>
|
208
|
</if>
|
186
|
- <if test="reportorder != null" >
|
209
|
+ <if test="reportorder != null">
|
187
|
REPORTORDER,
|
210
|
REPORTORDER,
|
188
|
</if>
|
211
|
</if>
|
189
|
- <if test="islast != null" >
|
212
|
+ <if test="islast != null">
|
190
|
ISLAST,
|
213
|
ISLAST,
|
191
|
</if>
|
214
|
</if>
|
192
|
- <if test="shipperCode != null" >
|
215
|
+ <if test="shipperCode != null">
|
193
|
SHIPPER_CODE,
|
216
|
SHIPPER_CODE,
|
194
|
</if>
|
217
|
</if>
|
195
|
- <if test="shipperCountrycode != null" >
|
218
|
+ <if test="shipperCountrycode != null">
|
196
|
SHIPPER_COUNTRYCODE,
|
219
|
SHIPPER_COUNTRYCODE,
|
197
|
</if>
|
220
|
</if>
|
198
|
- <if test="shipperPhone != null" >
|
221
|
+ <if test="shipperPhone != null">
|
199
|
SHIPPER_PHONE,
|
222
|
SHIPPER_PHONE,
|
200
|
</if>
|
223
|
</if>
|
201
|
- <if test="shipperFax != null" >
|
224
|
+ <if test="shipperFax != null">
|
202
|
SHIPPER_FAX,
|
225
|
SHIPPER_FAX,
|
203
|
</if>
|
226
|
</if>
|
204
|
- <if test="consigneeCode != null" >
|
227
|
+ <if test="consigneeCode != null">
|
205
|
CONSIGNEE_CODE,
|
228
|
CONSIGNEE_CODE,
|
206
|
</if>
|
229
|
</if>
|
207
|
- <if test="consigneeCountrycode != null" >
|
230
|
+ <if test="consigneeCountrycode != null">
|
208
|
CONSIGNEE_COUNTRYCODE,
|
231
|
CONSIGNEE_COUNTRYCODE,
|
209
|
</if>
|
232
|
</if>
|
210
|
- <if test="consigneeFax != null" >
|
233
|
+ <if test="consigneeFax != null">
|
211
|
CONSIGNEE_FAX,
|
234
|
CONSIGNEE_FAX,
|
212
|
</if>
|
235
|
</if>
|
213
|
- <if test="specificConsigneename != null" >
|
236
|
+ <if test="specificConsigneename != null">
|
214
|
SPECIFIC_CONSIGNEENAME,
|
237
|
SPECIFIC_CONSIGNEENAME,
|
215
|
</if>
|
238
|
</if>
|
216
|
- <if test="specificConsigneePhone != null" >
|
239
|
+ <if test="specificConsigneePhone != null">
|
217
|
SPECIFIC_CONSIGNEE_PHONE,
|
240
|
SPECIFIC_CONSIGNEE_PHONE,
|
218
|
</if>
|
241
|
</if>
|
219
|
- <if test="consigneePhone != null" >
|
242
|
+ <if test="consigneePhone != null">
|
220
|
CONSIGNEE_PHONE,
|
243
|
CONSIGNEE_PHONE,
|
221
|
</if>
|
244
|
</if>
|
222
|
</trim>
|
245
|
</trim>
|
223
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
224
|
- <if test="autoid != null" >
|
246
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
247
|
+ <if test="autoid != null">
|
225
|
#{autoid,jdbcType=VARCHAR},
|
248
|
#{autoid,jdbcType=VARCHAR},
|
226
|
</if>
|
249
|
</if>
|
227
|
- <if test="waybillnomaster != null" >
|
250
|
+ <if test="waybillnomaster != null">
|
228
|
#{waybillnomaster,jdbcType=VARCHAR},
|
251
|
#{waybillnomaster,jdbcType=VARCHAR},
|
229
|
</if>
|
252
|
</if>
|
230
|
- <if test="segment != null" >
|
253
|
+ <if test="segment != null">
|
231
|
#{segment,jdbcType=VARCHAR},
|
254
|
#{segment,jdbcType=VARCHAR},
|
232
|
</if>
|
255
|
</if>
|
233
|
- <if test="originatingstation != null" >
|
256
|
+ <if test="originatingstation != null">
|
234
|
#{originatingstation,jdbcType=VARCHAR},
|
257
|
#{originatingstation,jdbcType=VARCHAR},
|
235
|
</if>
|
258
|
</if>
|
236
|
- <if test="destinationstation != null" >
|
259
|
+ <if test="destinationstation != null">
|
237
|
#{destinationstation,jdbcType=VARCHAR},
|
260
|
#{destinationstation,jdbcType=VARCHAR},
|
238
|
</if>
|
261
|
</if>
|
239
|
- <if test="totalweight != null" >
|
262
|
+ <if test="totalweight != null">
|
240
|
#{totalweight,jdbcType=VARCHAR},
|
263
|
#{totalweight,jdbcType=VARCHAR},
|
241
|
</if>
|
264
|
</if>
|
242
|
- <if test="totalpiece != null" >
|
265
|
+ <if test="totalpiece != null">
|
243
|
#{totalpiece,jdbcType=VARCHAR},
|
266
|
#{totalpiece,jdbcType=VARCHAR},
|
244
|
</if>
|
267
|
</if>
|
245
|
- <if test="manifesttotalpiece != null" >
|
268
|
+ <if test="manifesttotalpiece != null">
|
246
|
#{manifesttotalpiece,jdbcType=VARCHAR},
|
269
|
#{manifesttotalpiece,jdbcType=VARCHAR},
|
247
|
</if>
|
270
|
</if>
|
248
|
- <if test="manifesttotalweight != null" >
|
271
|
+ <if test="manifesttotalweight != null">
|
249
|
#{manifesttotalweight,jdbcType=VARCHAR},
|
272
|
#{manifesttotalweight,jdbcType=VARCHAR},
|
250
|
</if>
|
273
|
</if>
|
251
|
- <if test="flightno != null" >
|
274
|
+ <if test="flightno != null">
|
252
|
#{flightno,jdbcType=VARCHAR},
|
275
|
#{flightno,jdbcType=VARCHAR},
|
253
|
</if>
|
276
|
</if>
|
254
|
- <if test="productname != null" >
|
277
|
+ <if test="productname != null">
|
255
|
#{productname,jdbcType=VARCHAR},
|
278
|
#{productname,jdbcType=VARCHAR},
|
256
|
</if>
|
279
|
</if>
|
257
|
- <if test="customsstatus != null" >
|
280
|
+ <if test="customsstatus != null">
|
258
|
#{customsstatus,jdbcType=VARCHAR},
|
281
|
#{customsstatus,jdbcType=VARCHAR},
|
259
|
</if>
|
282
|
</if>
|
260
|
- <if test="carrier1 != null" >
|
283
|
+ <if test="carrier1 != null">
|
261
|
#{carrier1,jdbcType=VARCHAR},
|
284
|
#{carrier1,jdbcType=VARCHAR},
|
262
|
</if>
|
285
|
</if>
|
263
|
- <if test="arrivalstation1 != null" >
|
286
|
+ <if test="arrivalstation1 != null">
|
264
|
#{arrivalstation1,jdbcType=VARCHAR},
|
287
|
#{arrivalstation1,jdbcType=VARCHAR},
|
265
|
</if>
|
288
|
</if>
|
266
|
- <if test="carrier2 != null" >
|
289
|
+ <if test="carrier2 != null">
|
267
|
#{carrier2,jdbcType=VARCHAR},
|
290
|
#{carrier2,jdbcType=VARCHAR},
|
268
|
</if>
|
291
|
</if>
|
269
|
- <if test="arrivalstation2 != null" >
|
292
|
+ <if test="arrivalstation2 != null">
|
270
|
#{arrivalstation2,jdbcType=VARCHAR},
|
293
|
#{arrivalstation2,jdbcType=VARCHAR},
|
271
|
</if>
|
294
|
</if>
|
272
|
- <if test="carrier3 != null" >
|
295
|
+ <if test="carrier3 != null">
|
273
|
#{carrier3,jdbcType=VARCHAR},
|
296
|
#{carrier3,jdbcType=VARCHAR},
|
274
|
</if>
|
297
|
</if>
|
275
|
- <if test="arrivalstation3 != null" >
|
298
|
+ <if test="arrivalstation3 != null">
|
276
|
#{arrivalstation3,jdbcType=VARCHAR},
|
299
|
#{arrivalstation3,jdbcType=VARCHAR},
|
277
|
</if>
|
300
|
</if>
|
278
|
- <if test="paymode != null" >
|
301
|
+ <if test="paymode != null">
|
279
|
#{paymode,jdbcType=VARCHAR},
|
302
|
#{paymode,jdbcType=VARCHAR},
|
280
|
</if>
|
303
|
</if>
|
281
|
- <if test="specialgoodscode != null" >
|
304
|
+ <if test="specialgoodscode != null">
|
282
|
#{specialgoodscode,jdbcType=VARCHAR},
|
305
|
#{specialgoodscode,jdbcType=VARCHAR},
|
283
|
</if>
|
306
|
</if>
|
284
|
- <if test="customscode != null" >
|
307
|
+ <if test="customscode != null">
|
285
|
#{customscode,jdbcType=VARCHAR},
|
308
|
#{customscode,jdbcType=VARCHAR},
|
286
|
</if>
|
309
|
</if>
|
287
|
- <if test="shippername != null" >
|
310
|
+ <if test="shippername != null">
|
288
|
#{shippername,jdbcType=VARCHAR},
|
311
|
#{shippername,jdbcType=VARCHAR},
|
289
|
</if>
|
312
|
</if>
|
290
|
- <if test="shipperaddress != null" >
|
313
|
+ <if test="shipperaddress != null">
|
291
|
#{shipperaddress,jdbcType=VARCHAR},
|
314
|
#{shipperaddress,jdbcType=VARCHAR},
|
292
|
</if>
|
315
|
</if>
|
293
|
- <if test="consigneename != null" >
|
316
|
+ <if test="consigneename != null">
|
294
|
#{consigneename,jdbcType=VARCHAR},
|
317
|
#{consigneename,jdbcType=VARCHAR},
|
295
|
</if>
|
318
|
</if>
|
296
|
- <if test="consigneeaddress != null" >
|
319
|
+ <if test="consigneeaddress != null">
|
297
|
#{consigneeaddress,jdbcType=VARCHAR},
|
320
|
#{consigneeaddress,jdbcType=VARCHAR},
|
298
|
</if>
|
321
|
</if>
|
299
|
- <if test="receiptinformation != null" >
|
322
|
+ <if test="receiptinformation != null">
|
300
|
#{receiptinformation,jdbcType=VARCHAR},
|
323
|
#{receiptinformation,jdbcType=VARCHAR},
|
301
|
</if>
|
324
|
</if>
|
302
|
- <if test="createdate != null" >
|
325
|
+ <if test="createdate != null">
|
303
|
#{createdate,jdbcType=TIMESTAMP},
|
326
|
#{createdate,jdbcType=TIMESTAMP},
|
304
|
</if>
|
327
|
</if>
|
305
|
- <if test="flightDate != null" >
|
328
|
+ <if test="flightDate != null">
|
306
|
#{flightDate,jdbcType=TIMESTAMP},
|
329
|
#{flightDate,jdbcType=TIMESTAMP},
|
307
|
</if>
|
330
|
</if>
|
308
|
- <if test="status != null" >
|
331
|
+ <if test="status != null">
|
309
|
#{status,jdbcType=VARCHAR},
|
332
|
#{status,jdbcType=VARCHAR},
|
310
|
</if>
|
333
|
</if>
|
311
|
- <if test="isbatch != null" >
|
334
|
+ <if test="isbatch != null">
|
312
|
#{isbatch,jdbcType=VARCHAR},
|
335
|
#{isbatch,jdbcType=VARCHAR},
|
313
|
</if>
|
336
|
</if>
|
314
|
- <if test="originatingstationBill != null" >
|
337
|
+ <if test="originatingstationBill != null">
|
315
|
#{originatingstationBill,jdbcType=VARCHAR},
|
338
|
#{originatingstationBill,jdbcType=VARCHAR},
|
316
|
</if>
|
339
|
</if>
|
317
|
- <if test="destinationstationBill != null" >
|
340
|
+ <if test="destinationstationBill != null">
|
318
|
#{destinationstationBill,jdbcType=VARCHAR},
|
341
|
#{destinationstationBill,jdbcType=VARCHAR},
|
319
|
</if>
|
342
|
</if>
|
320
|
- <if test="reportorder != null" >
|
343
|
+ <if test="reportorder != null">
|
321
|
#{reportorder,jdbcType=VARCHAR},
|
344
|
#{reportorder,jdbcType=VARCHAR},
|
322
|
</if>
|
345
|
</if>
|
323
|
- <if test="islast != null" >
|
346
|
+ <if test="islast != null">
|
324
|
#{islast,jdbcType=VARCHAR},
|
347
|
#{islast,jdbcType=VARCHAR},
|
325
|
</if>
|
348
|
</if>
|
326
|
- <if test="shipperCode != null" >
|
349
|
+ <if test="shipperCode != null">
|
327
|
#{shipperCode,jdbcType=VARCHAR},
|
350
|
#{shipperCode,jdbcType=VARCHAR},
|
328
|
</if>
|
351
|
</if>
|
329
|
- <if test="shipperCountrycode != null" >
|
352
|
+ <if test="shipperCountrycode != null">
|
330
|
#{shipperCountrycode,jdbcType=VARCHAR},
|
353
|
#{shipperCountrycode,jdbcType=VARCHAR},
|
331
|
</if>
|
354
|
</if>
|
332
|
- <if test="shipperPhone != null" >
|
355
|
+ <if test="shipperPhone != null">
|
333
|
#{shipperPhone,jdbcType=VARCHAR},
|
356
|
#{shipperPhone,jdbcType=VARCHAR},
|
334
|
</if>
|
357
|
</if>
|
335
|
- <if test="shipperFax != null" >
|
358
|
+ <if test="shipperFax != null">
|
336
|
#{shipperFax,jdbcType=VARCHAR},
|
359
|
#{shipperFax,jdbcType=VARCHAR},
|
337
|
</if>
|
360
|
</if>
|
338
|
- <if test="consigneeCode != null" >
|
361
|
+ <if test="consigneeCode != null">
|
339
|
#{consigneeCode,jdbcType=VARCHAR},
|
362
|
#{consigneeCode,jdbcType=VARCHAR},
|
340
|
</if>
|
363
|
</if>
|
341
|
- <if test="consigneeCountrycode != null" >
|
364
|
+ <if test="consigneeCountrycode != null">
|
342
|
#{consigneeCountrycode,jdbcType=VARCHAR},
|
365
|
#{consigneeCountrycode,jdbcType=VARCHAR},
|
343
|
</if>
|
366
|
</if>
|
344
|
- <if test="consigneeFax != null" >
|
367
|
+ <if test="consigneeFax != null">
|
345
|
#{consigneeFax,jdbcType=VARCHAR},
|
368
|
#{consigneeFax,jdbcType=VARCHAR},
|
346
|
</if>
|
369
|
</if>
|
347
|
- <if test="specificConsigneename != null" >
|
370
|
+ <if test="specificConsigneename != null">
|
348
|
#{specificConsigneename,jdbcType=VARCHAR},
|
371
|
#{specificConsigneename,jdbcType=VARCHAR},
|
349
|
</if>
|
372
|
</if>
|
350
|
- <if test="specificConsigneePhone != null" >
|
373
|
+ <if test="specificConsigneePhone != null">
|
351
|
#{specificConsigneePhone,jdbcType=VARCHAR},
|
374
|
#{specificConsigneePhone,jdbcType=VARCHAR},
|
352
|
</if>
|
375
|
</if>
|
353
|
- <if test="consigneePhone != null" >
|
376
|
+ <if test="consigneePhone != null">
|
354
|
#{consigneePhone,jdbcType=VARCHAR},
|
377
|
#{consigneePhone,jdbcType=VARCHAR},
|
355
|
</if>
|
378
|
</if>
|
356
|
</trim>
|
379
|
</trim>
|
|
@@ -365,7 +388,7 @@ |
|
@@ -365,7 +388,7 @@ |
365
|
|
388
|
|
366
|
<select id="selectByAHBA" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" resultMap="BaseResultMap">
|
389
|
<select id="selectByAHBA" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" resultMap="BaseResultMap">
|
367
|
select
|
390
|
select
|
368
|
- <include refid="Base_Column_List" />
|
391
|
+ <include refid="Base_Column_List"/>
|
369
|
from
|
392
|
from
|
370
|
ORIGINMANIFESTMASTER
|
393
|
ORIGINMANIFESTMASTER
|
371
|
where
|
394
|
where
|
|
@@ -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> |