|
@@ -14,11 +14,11 @@ |
|
@@ -14,11 +14,11 @@ |
14
|
<result column="ORIGIN_MASTERWAYBILL" property="originMasterwaybill" jdbcType="VARCHAR" />
|
14
|
<result column="ORIGIN_MASTERWAYBILL" property="originMasterwaybill" jdbcType="VARCHAR" />
|
15
|
<result column="ORIGIN_HOUSEWAYBILL" property="originHousewaybill" jdbcType="VARCHAR" />
|
15
|
<result column="ORIGIN_HOUSEWAYBILL" property="originHousewaybill" jdbcType="VARCHAR" />
|
16
|
<result column="ORIGIN_FLIGHTNO" property="originFlightno" jdbcType="VARCHAR" />
|
16
|
<result column="ORIGIN_FLIGHTNO" property="originFlightno" jdbcType="VARCHAR" />
|
17
|
- <result column="ORIGIN_FLIGHTDATE" property="originFlightdate" jdbcType="TIMESTAMP" />
|
17
|
+ <result column="ORIGIN_FLIGHTDATE" property="originFlightdate" jdbcType="DATE" />
|
18
|
<result column="TRANS_MASTERWAYBILL" property="transMasterwaybill" jdbcType="VARCHAR" />
|
18
|
<result column="TRANS_MASTERWAYBILL" property="transMasterwaybill" jdbcType="VARCHAR" />
|
19
|
<result column="TRANS_HOUSEWAYBILL" property="transHousewaybill" jdbcType="VARCHAR" />
|
19
|
<result column="TRANS_HOUSEWAYBILL" property="transHousewaybill" jdbcType="VARCHAR" />
|
20
|
<result column="TRANS_FLIGHTNO" property="transFlightno" jdbcType="VARCHAR" />
|
20
|
<result column="TRANS_FLIGHTNO" property="transFlightno" jdbcType="VARCHAR" />
|
21
|
- <result column="TRANS_FLIGHTDATE" property="transFlightdate" jdbcType="TIMESTAMP" />
|
21
|
+ <result column="TRANS_FLIGHTDATE" property="transFlightdate" jdbcType="DATE" />
|
22
|
<result column="CREATE_DATE" property="createDate" jdbcType="TIMESTAMP" />
|
22
|
<result column="CREATE_DATE" property="createDate" jdbcType="TIMESTAMP" />
|
23
|
<result column="MODIFY_TIME" property="modifyTime" jdbcType="TIMESTAMP" />
|
23
|
<result column="MODIFY_TIME" property="modifyTime" jdbcType="TIMESTAMP" />
|
24
|
<result column="MODIFY_NAME" property="modifyName" jdbcType="VARCHAR" />
|
24
|
<result column="MODIFY_NAME" property="modifyName" jdbcType="VARCHAR" />
|
|
@@ -45,6 +45,22 @@ |
|
@@ -45,6 +45,22 @@ |
45
|
from DOMTRANSIT
|
45
|
from DOMTRANSIT
|
46
|
where ID = #{id,jdbcType=VARCHAR}
|
46
|
where ID = #{id,jdbcType=VARCHAR}
|
47
|
</select>
|
47
|
</select>
|
|
|
48
|
+ <select id="analysisTodayWeight" resultType="java.util.LinkedHashMap">
|
|
|
49
|
+ SELECT
|
|
|
50
|
+ ORIGIN_FLIGHTNO,
|
|
|
51
|
+ SUM(WEIGHT) as weightcount,
|
|
|
52
|
+ SUM(PIECE) as piececount,
|
|
|
53
|
+ ORIGIN_FLIGHTDATE
|
|
|
54
|
+FROM
|
|
|
55
|
+ DOMTRANSIT
|
|
|
56
|
+WHERE
|
|
|
57
|
+ TRANSIT_TYPE = 'dom'
|
|
|
58
|
+ AND CREATE_DATE
|
|
|
59
|
+ BETWEEN TO_DATE( #{startDate,jdbcType=VARCHAR}, 'yyyy-MM-dd' )
|
|
|
60
|
+ AND TO_DATE(#{endDate,jdbcType=VARCHAR},'yyyy-MM-dd')
|
|
|
61
|
+ GROUP BY ORIGIN_FLIGHTNO,ORIGIN_FLIGHTDATE
|
|
|
62
|
+
|
|
|
63
|
+ </select>
|
48
|
<select id="selectList" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
|
64
|
<select id="selectList" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
|
49
|
select
|
65
|
select
|
50
|
<include refid="Base_Column_List" />
|
66
|
<include refid="Base_Column_List" />
|
|
@@ -62,8 +78,8 @@ |
|
@@ -62,8 +78,8 @@ |
62
|
<if test="originFlightno !=null and originFlightno !=''">
|
78
|
<if test="originFlightno !=null and originFlightno !=''">
|
63
|
AND ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR}
|
79
|
AND ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR}
|
64
|
</if>
|
80
|
</if>
|
65
|
- <if test="originFlightdate != null and originFlightdate !=''">
|
|
|
66
|
- AND ORIGIN_FLIGHTDATE = to_date(#{originFlightdate}, 'YYYY-MM-DD')
|
81
|
+ <if test="originFlightdate != null and originFlightdateEnd != null">
|
|
|
82
|
+ AND ORIGIN_FLIGHTDATE between #{originFlightdate,jdbcType=DATE} and #{originFlightdateEnd,jdbcType=DATE}
|
67
|
</if>
|
83
|
</if>
|
68
|
<if test="transMasterwaybill != null and transMasterwaybill !='' ">
|
84
|
<if test="transMasterwaybill != null and transMasterwaybill !='' ">
|
69
|
AND TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR}
|
85
|
AND TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR}
|
|
@@ -74,8 +90,8 @@ |
|
@@ -74,8 +90,8 @@ |
74
|
<if test="transFlightno !=null and originFltransFlightnoightno !=''">
|
90
|
<if test="transFlightno !=null and originFltransFlightnoightno !=''">
|
75
|
AND ORIGIN_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR}
|
91
|
AND ORIGIN_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR}
|
76
|
</if>
|
92
|
</if>
|
77
|
- <if test="transFlightdate !=null and transFlightdate !=''">
|
|
|
78
|
- AND TRANS_FLIGHTDATE = to_date(#{transFlightdate}, 'YYYY-MM-DD')
|
93
|
+ <if test="transFlightdate !=null">
|
|
|
94
|
+ AND TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=DATE}
|
79
|
</if>
|
95
|
</if>
|
80
|
<if test="userName !=null and userName !=''">
|
96
|
<if test="userName !=null and userName !=''">
|
81
|
AND USER_NAME = #{userName,jdbcType=VARCHAR}
|
97
|
AND USER_NAME = #{userName,jdbcType=VARCHAR}
|
|
@@ -84,7 +100,7 @@ |
|
@@ -84,7 +100,7 @@ |
84
|
AND AGENT_CODE = #{agentCode,jdbcType=VARCHAR}
|
100
|
AND AGENT_CODE = #{agentCode,jdbcType=VARCHAR}
|
85
|
</if>
|
101
|
</if>
|
86
|
<if test="agentName !=null and agentName !=''">
|
102
|
<if test="agentName !=null and agentName !=''">
|
87
|
- AND AGENT_NAME like CONCAT('%',#{agentName,jdbcType=VARCHAR},'%')
|
103
|
+ AND AGENT_NAME = #{agentName,jdbcType=VARCHAR}
|
88
|
</if>
|
104
|
</if>
|
89
|
</where>
|
105
|
</where>
|
90
|
order by CREATE_DATE desc
|
106
|
order by CREATE_DATE desc
|
|
@@ -109,8 +125,8 @@ |
|
@@ -109,8 +125,8 @@ |
109
|
#{weight,jdbcType=DECIMAL}, #{originStation,jdbcType=VARCHAR}, #{destinationStation,jdbcType=VARCHAR},
|
125
|
#{weight,jdbcType=DECIMAL}, #{originStation,jdbcType=VARCHAR}, #{destinationStation,jdbcType=VARCHAR},
|
110
|
#{goodsdesen,jdbcType=VARCHAR}, #{goodsdescn,jdbcType=VARCHAR}, #{pack,jdbcType=VARCHAR},
|
126
|
#{goodsdesen,jdbcType=VARCHAR}, #{goodsdescn,jdbcType=VARCHAR}, #{pack,jdbcType=VARCHAR},
|
111
|
#{originMasterwaybill,jdbcType=VARCHAR}, #{originHousewaybill,jdbcType=VARCHAR},
|
127
|
#{originMasterwaybill,jdbcType=VARCHAR}, #{originHousewaybill,jdbcType=VARCHAR},
|
112
|
- #{originFlightno,jdbcType=VARCHAR}, #{originFlightdate,jdbcType=TIMESTAMP}, #{transMasterwaybill,jdbcType=VARCHAR},
|
|
|
113
|
- #{transHousewaybill,jdbcType=VARCHAR}, #{transFlightno,jdbcType=VARCHAR}, #{transFlightdate,jdbcType=TIMESTAMP},
|
128
|
+ #{originFlightno,jdbcType=VARCHAR}, #{originFlightdate,jdbcType=DATE}, #{transMasterwaybill,jdbcType=VARCHAR},
|
|
|
129
|
+ #{transHousewaybill,jdbcType=VARCHAR}, #{transFlightno,jdbcType=VARCHAR}, #{transFlightdate,jdbcType=DATE},
|
114
|
#{createDate,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyName,jdbcType=VARCHAR},
|
130
|
#{createDate,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyName,jdbcType=VARCHAR},
|
115
|
#{agentName,jdbcType=VARCHAR}, #{agentCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
|
131
|
#{agentName,jdbcType=VARCHAR}, #{agentCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
|
116
|
#{userRealName,jdbcType=VARCHAR}, #{userTel,jdbcType=VARCHAR}, #{status,jdbcType=DECIMAL},
|
132
|
#{userRealName,jdbcType=VARCHAR}, #{userTel,jdbcType=VARCHAR}, #{status,jdbcType=DECIMAL},
|
|
@@ -246,7 +262,7 @@ |
|
@@ -246,7 +262,7 @@ |
246
|
#{originFlightno,jdbcType=VARCHAR},
|
262
|
#{originFlightno,jdbcType=VARCHAR},
|
247
|
</if>
|
263
|
</if>
|
248
|
<if test="originFlightdate != null" >
|
264
|
<if test="originFlightdate != null" >
|
249
|
- #{originFlightdate,jdbcType=TIMESTAMP},
|
265
|
+ #{originFlightdate,jdbcType=DATE},
|
250
|
</if>
|
266
|
</if>
|
251
|
<if test="transMasterwaybill != null" >
|
267
|
<if test="transMasterwaybill != null" >
|
252
|
#{transMasterwaybill,jdbcType=VARCHAR},
|
268
|
#{transMasterwaybill,jdbcType=VARCHAR},
|
|
@@ -258,7 +274,7 @@ |
|
@@ -258,7 +274,7 @@ |
258
|
#{transFlightno,jdbcType=VARCHAR},
|
274
|
#{transFlightno,jdbcType=VARCHAR},
|
259
|
</if>
|
275
|
</if>
|
260
|
<if test="transFlightdate != null" >
|
276
|
<if test="transFlightdate != null" >
|
261
|
- #{transFlightdate,jdbcType=TIMESTAMP},
|
277
|
+ #{transFlightdate,jdbcType=DATE},
|
262
|
</if>
|
278
|
</if>
|
263
|
<if test="createDate != null" >
|
279
|
<if test="createDate != null" >
|
264
|
#{createDate,jdbcType=TIMESTAMP},
|
280
|
#{createDate,jdbcType=TIMESTAMP},
|
|
@@ -335,7 +351,7 @@ |
|
@@ -335,7 +351,7 @@ |
335
|
ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR},
|
351
|
ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR},
|
336
|
</if>
|
352
|
</if>
|
337
|
<if test="originFlightdate != null" >
|
353
|
<if test="originFlightdate != null" >
|
338
|
- ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=TIMESTAMP},
|
354
|
+ ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=DATE},
|
339
|
</if>
|
355
|
</if>
|
340
|
<if test="transMasterwaybill != null" >
|
356
|
<if test="transMasterwaybill != null" >
|
341
|
TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR},
|
357
|
TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR},
|
|
@@ -347,7 +363,7 @@ |
|
@@ -347,7 +363,7 @@ |
347
|
TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR},
|
363
|
TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR},
|
348
|
</if>
|
364
|
</if>
|
349
|
<if test="transFlightdate != null" >
|
365
|
<if test="transFlightdate != null" >
|
350
|
- TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=TIMESTAMP},
|
366
|
+ TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=DATE},
|
351
|
</if>
|
367
|
</if>
|
352
|
<if test="createDate != null" >
|
368
|
<if test="createDate != null" >
|
353
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
369
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
@@ -410,11 +426,11 @@ |
|
@@ -410,11 +426,11 @@ |
410
|
ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR},
|
426
|
ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR},
|
411
|
ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR},
|
427
|
ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR},
|
412
|
ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR},
|
428
|
ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR},
|
413
|
- ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=TIMESTAMP},
|
429
|
+ ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=DATE},
|
414
|
TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR},
|
430
|
TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR},
|
415
|
TRANS_HOUSEWAYBILL = #{transHousewaybill,jdbcType=VARCHAR},
|
431
|
TRANS_HOUSEWAYBILL = #{transHousewaybill,jdbcType=VARCHAR},
|
416
|
TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR},
|
432
|
TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR},
|
417
|
- TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=TIMESTAMP},
|
433
|
+ TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=DATE},
|
418
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
434
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
419
|
MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
|
435
|
MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
|
420
|
MODIFY_NAME = #{modifyName,jdbcType=VARCHAR},
|
436
|
MODIFY_NAME = #{modifyName,jdbcType=VARCHAR},
|