<?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" >
|
<!-- Table:epc_nationwide_site -->
|
<mapper namespace="com.changhong.epc.admin.mapper.centen.site.NationwideSiteMapper">
|
<resultMap id="nationwideSiteMapperResultMap" type="com.changhong.epc.bean.admin.site.NationwideSite">
|
<result property="codeTrafficInformation" column="code_Traffic_information"/><!-- code_交通工具信息数据库 -->
|
<result property="codeTrafficType" column="code_Traffic_Type"/><!-- code_交通类型 -->
|
<result property="trafficType" column="traffic_Type"/><!-- 交通类型 -->
|
<result property="trainFlight" column="train_Flight"/><!-- 车次/航班号 -->
|
<result property="codeTrafficSeat" column="code_Traffic_seat"/><!-- code_交通席别 -->
|
<result property="trafficSeat" column="traffic_Seat"/><!-- 交通席别/仓位 -->
|
<result property="codeDepartureCity" column="code_Departure_City"/><!-- code_出发城市 -->
|
<result property="departureCity" column="departure_City"/><!-- 出发城市 -->
|
<result property="codeDepartureStation" column="code_Departure_Station"/><!-- code_出发站/机场 -->
|
<result property="subordinateSite" column="subordinate_Site"/><!-- 所属站点 -->
|
<result property="codeArrivalCity" column="code_Arrival_City"/><!-- code_到到城市 -->
|
<result property="arrivalCity" column="arrival_City"/><!-- 到达城市 -->
|
<result property="codeArrivalStation" column="code_Arrival_Station"/><!-- code_到达站/机场 -->
|
<result property="arrivalStation" column="Arrival_Station"/><!-- 到达站点 -->
|
<result property="referenceDistance" column="reference_Distance"/><!-- 参考行程距离(单位:公里) -->
|
<result property="departureTime" column="departure_time"/><!-- 出发时点 -->
|
<result property="arrivalTime" column="arrival_time"/><!-- 到达时点 -->
|
<result property="referenceTime" column="reference_Time"/><!-- 参考行程时长 -->
|
<result property="referencePrice" column="reference_Price"/><!-- 参考全价票价 -->
|
<result property="codeCompany" column="code_Company"/><!-- 公司代码 -->
|
<result property="companyName" column="company_Name"/><!-- 公司名称 -->
|
</resultMap>
|
<sql id="nationwideSiteSql">
|
id,code_Traffic_information, code_Traffic_Type, traffic_Type, train_Flight, code_Traffic_seat
|
, traffic_Seat, code_Departure_City, departure_City, code_Departure_Station, subordinate_Site
|
, code_Arrival_City, arrival_City, code_Arrival_Station, Arrival_Station, reference_Distance
|
, departure_time, arrival_time, reference_Time, reference_Price, code_Company
|
, company_Name
|
</sql>
|
|
<select id="selectNation" resultMap="nationwideSiteMapperResultMap"
|
parameterType="com.changhong.epc.bean.admin.site.NationwideSite">
|
select
|
<include refid="nationwideSiteSql"/>
|
from
|
epc_nationwide_site
|
<trim prefix="where" prefixOverrides="AND | OR">
|
<if test="nat.trainFlight != null">
|
and train_Flight = #{nat.trainFlight}
|
</if>
|
<if test="nat.departureTime != null">
|
and departure_time = #{nat.departureTime}
|
</if>
|
<if test="nat.subordinateSite != null">
|
and subordinate_Site = #{nat.subordinateSite}
|
</if>
|
<if test="nat.arrivalStation != null">
|
and Arrival_Station = #{nat.arrivalStation}
|
</if>
|
</trim>
|
|
LIMIT 1
|
|
|
|
|
</select>
|
|
</mapper>
|