|
@@ -30,6 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="arrivalCode" column="arrival_code" />
|
|
<result property="arrivalCode" column="arrival_code" />
|
|
|
<result property="systemCode" column="system_code" />
|
|
<result property="systemCode" column="system_code" />
|
|
|
<result property="lineName" column="line_name" />
|
|
<result property="lineName" column="line_name" />
|
|
|
|
|
+ <result property="charterFee" column="charter_fee" />
|
|
|
|
|
+ <result property="vehicleRouter" column="vehicle_router" />
|
|
|
<result property="changeFlag" column="change_flag" />
|
|
<result property="changeFlag" column="change_flag" />
|
|
|
<result property="newData" column="new_data" />
|
|
<result property="newData" column="new_data" />
|
|
|
<result property="actionId" column="action_id" />
|
|
<result property="actionId" column="action_id" />
|
|
@@ -71,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
tb.month_year,
|
|
tb.month_year,
|
|
|
tb.area,
|
|
tb.area,
|
|
|
tb.section_type,
|
|
tb.section_type,
|
|
|
- tb.order_status,
|
|
|
|
|
|
|
+ tb.result_status,
|
|
|
tb.del_flg,
|
|
tb.del_flg,
|
|
|
tb.create_by,
|
|
tb.create_by,
|
|
|
tb.create_time,
|
|
tb.create_time,
|
|
@@ -83,15 +85,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
tmp.run_day,
|
|
tmp.run_day,
|
|
|
tmp.run_week_day,
|
|
tmp.run_week_day,
|
|
|
tmp.original_data,
|
|
tmp.original_data,
|
|
|
- tmp.new_data,
|
|
|
|
|
- mlc.departure_code,
|
|
|
|
|
- mlc.arrival_code,
|
|
|
|
|
- mlc.system_code,
|
|
|
|
|
- mlc.line_name
|
|
|
|
|
|
|
+ tmp.charter_fee,
|
|
|
|
|
+ tmp.new_data
|
|
|
from t_vehicle_results tb
|
|
from t_vehicle_results tb
|
|
|
- left join t_vehicle_results_router tbi on tb.result_id = tbi.result_id
|
|
|
|
|
- left join t_month_plan tmp on tbi.month_plan_id = tmp.month_plan_id
|
|
|
|
|
- left join m_line_code mlc on tbi.line_id = mlc.line_id
|
|
|
|
|
|
|
+ left join t_vehicle_results_router tbi
|
|
|
|
|
+ on tb.result_id = tbi.result_id
|
|
|
|
|
+ left join t_daily_charter_fee tmp
|
|
|
|
|
+ on tbi.result_id = tmp.result_id
|
|
|
|
|
+ and tbi.vehicle_router = tmp.vehicle_router
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectTActionHistoryList" parameterType="TVehicleResults" resultMap="TVehicleResult">
|
|
<select id="selectTActionHistoryList" parameterType="TVehicleResults" resultMap="TVehicleResult">
|
|
@@ -132,25 +133,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by tb.area asc
|
|
order by tb.area asc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <select id="selectTBaseOrderCompilationList" parameterType="TVehicleResults" resultMap="TVehicleResult">
|
|
|
|
|
|
|
+ <select id="selectTVehicleResultsCompilationList" parameterType="TVehicleResults" resultMap="TVehicleResult">
|
|
|
<include refid="selectTVehicleResultsCompilationParamVo"/>
|
|
<include refid="selectTVehicleResultsCompilationParamVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="lineId != null"> and tbi.line_id = #{lineId}</if>
|
|
|
|
|
- <if test="wareHouseLocation != null and wareHouseLocation != ''"> and tbi.ware_house_location = #{wareHouseLocation}</if>
|
|
|
|
|
- <if test="wareHouseTime != null"> and tbi.ware_house_time = #{wareHouseTime}</if>
|
|
|
|
|
- <if test="vehicleTon != null"> and tbi.vehicle_ton = #{vehicleTon}</if>
|
|
|
|
|
- <if test="monthPlanId != null"> and tbi.month_plan_id = #{monthPlanId}</if>
|
|
|
|
|
|
|
+ <if test="vehicleRouter != null and vehicleRouter != ''"> and tbi.vehicle_router = #{vehicleRouter}</if>
|
|
|
|
|
+ <if test="lineName != null"> and tbi.line_name = #{lineName}</if>
|
|
|
<if test="runDay != null"> and tmp.run_day = #{runDay}</if>
|
|
<if test="runDay != null"> and tmp.run_day = #{runDay}</if>
|
|
|
<if test="runWeekDay != null"> and tmp.run_week_day = #{runWeekDay}</if>
|
|
<if test="runWeekDay != null"> and tmp.run_week_day = #{runWeekDay}</if>
|
|
|
<if test="originalData != null and originalData != ''"> and tmp.original_data = #{originalData}</if>
|
|
<if test="originalData != null and originalData != ''"> and tmp.original_data = #{originalData}</if>
|
|
|
<if test="newData != null and newData != ''"> and tmp.new_data = #{newData}</if>
|
|
<if test="newData != null and newData != ''"> and tmp.new_data = #{newData}</if>
|
|
|
- <if test="departureCode != null and departureCode != ''"> and mlc.departure_code = #{departureCode}</if>
|
|
|
|
|
- <if test="arrivalCode != null and arrivalCode != ''"> and mlc.arrival_code = #{arrivalCode}</if>
|
|
|
|
|
- <if test="systemCode != null and systemCode != ''"> and mlc.system_code = #{systemCode}</if>
|
|
|
|
|
- <if test="lineName != null and lineName != ''"> and mlc.line_name = #{lineName}</if>
|
|
|
|
|
- <if test="orderId != null"> and tb.order_id = #{orderId}</if>
|
|
|
|
|
|
|
+ <if test="charterFee != null and charterFee != ''"> and tmp.charter_fee = #{charterFee}</if>
|
|
|
|
|
+ <if test="resultId != null"> and tmp.result_id = #{resultId}</if>
|
|
|
</where>
|
|
</where>
|
|
|
- order by tmp.run_day asc
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectTBaseOrderByOrderId" parameterType="TVehicleResults" resultMap="TVehicleResult">
|
|
<select id="selectTBaseOrderByOrderId" parameterType="TVehicleResults" resultMap="TVehicleResult">
|