commit | author | age
|
a18bfa
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
Z |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
3 |
<!-- Table:epc_nationwide_site --> |
|
4 |
<mapper namespace="com.changhong.epc.admin.mapper.centen.site.NationwideSiteMapper"> |
|
5 |
<resultMap id="nationwideSiteMapperResultMap" type="com.changhong.epc.bean.admin.site.NationwideSite"> |
|
6 |
<result property="codeTrafficInformation" column="code_Traffic_information"/><!-- code_交通工具信息数据库 --> |
|
7 |
<result property="codeTrafficType" column="code_Traffic_Type"/><!-- code_交通类型 --> |
|
8 |
<result property="trafficType" column="traffic_Type"/><!-- 交通类型 --> |
|
9 |
<result property="trainFlight" column="train_Flight"/><!-- 车次/航班号 --> |
|
10 |
<result property="codeTrafficSeat" column="code_Traffic_seat"/><!-- code_交通席别 --> |
|
11 |
<result property="trafficSeat" column="traffic_Seat"/><!-- 交通席别/仓位 --> |
|
12 |
<result property="codeDepartureCity" column="code_Departure_City"/><!-- code_出发城市 --> |
|
13 |
<result property="departureCity" column="departure_City"/><!-- 出发城市 --> |
|
14 |
<result property="codeDepartureStation" column="code_Departure_Station"/><!-- code_出发站/机场 --> |
|
15 |
<result property="subordinateSite" column="subordinate_Site"/><!-- 所属站点 --> |
|
16 |
<result property="codeArrivalCity" column="code_Arrival_City"/><!-- code_到到城市 --> |
|
17 |
<result property="arrivalCity" column="arrival_City"/><!-- 到达城市 --> |
|
18 |
<result property="codeArrivalStation" column="code_Arrival_Station"/><!-- code_到达站/机场 --> |
|
19 |
<result property="arrivalStation" column="Arrival_Station"/><!-- 到达站点 --> |
|
20 |
<result property="referenceDistance" column="reference_Distance"/><!-- 参考行程距离(单位:公里) --> |
|
21 |
<result property="departureTime" column="departure_time"/><!-- 出发时点 --> |
|
22 |
<result property="arrivalTime" column="arrival_time"/><!-- 到达时点 --> |
|
23 |
<result property="referenceTime" column="reference_Time"/><!-- 参考行程时长 --> |
|
24 |
<result property="referencePrice" column="reference_Price"/><!-- 参考全价票价 --> |
|
25 |
<result property="codeCompany" column="code_Company"/><!-- 公司代码 --> |
|
26 |
<result property="companyName" column="company_Name"/><!-- 公司名称 --> |
|
27 |
</resultMap> |
|
28 |
<sql id="nationwideSiteSql"> |
|
29 |
id,code_Traffic_information, code_Traffic_Type, traffic_Type, train_Flight, code_Traffic_seat |
|
30 |
, traffic_Seat, code_Departure_City, departure_City, code_Departure_Station, subordinate_Site |
|
31 |
, code_Arrival_City, arrival_City, code_Arrival_Station, Arrival_Station, reference_Distance |
|
32 |
, departure_time, arrival_time, reference_Time, reference_Price, code_Company |
|
33 |
, company_Name |
|
34 |
</sql> |
|
35 |
|
|
36 |
<select id="selectNation" resultMap="nationwideSiteMapperResultMap" |
|
37 |
parameterType="com.changhong.epc.bean.admin.site.NationwideSite"> |
|
38 |
select |
|
39 |
<include refid="nationwideSiteSql"/> |
|
40 |
from |
|
41 |
epc_nationwide_site |
|
42 |
<trim prefix="where" prefixOverrides="AND | OR"> |
|
43 |
<if test="nat.trainFlight != null"> |
|
44 |
and train_Flight = #{nat.trainFlight} |
|
45 |
</if> |
|
46 |
<if test="nat.departureTime != null"> |
|
47 |
and departure_time = #{nat.departureTime} |
|
48 |
</if> |
|
49 |
<if test="nat.subordinateSite != null"> |
|
50 |
and subordinate_Site = #{nat.subordinateSite} |
|
51 |
</if> |
|
52 |
<if test="nat.arrivalStation != null"> |
|
53 |
and Arrival_Station = #{nat.arrivalStation} |
|
54 |
</if> |
|
55 |
</trim> |
|
56 |
|
|
57 |
LIMIT 1 |
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
</select> |
|
63 |
|
|
64 |
</mapper> |