Commit 8785c2a776370bcffe898436fc47f66a6c67efaa

Authored by youxiw2000
1 parent 81efced5

1

bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
@@ -1136,7 +1136,102 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -1136,7 +1136,102 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
1136 and update_status = "1" 1136 and update_status = "1"
1137 </where> 1137 </where>
1138 </select> 1138 </select>
1139 - 1139 +
  1140 + <select id="selectBsthTLineHistoryListGroupByLineName" parameterType="BsthTLine" resultMap="BsthTLineResult">
  1141 + <include refid="selectBsthTLineHistoryVo" />
  1142 + <where>
  1143 + <if test="eventId != null "> and event_id = #{eventId}</if>
  1144 + <if test="lineId != null "> and line_id = #{lineId}</if>
  1145 + <if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
  1146 + <if test="company != null and company != ''"> and company = #{company}</if>
  1147 + <if test="fCompany != null and fCompany != ''"> and f_company = #{fCompany}</if>
  1148 + <if test="pLineId != null "> and p_line_id = #{pLineId}</if>
  1149 + <if test="serviceType != null and serviceType != ''"> and service_type = #{serviceType}</if>
  1150 + <if test="lineLevel != null and lineLevel != ''"> and line_level = #{lineLevel}</if>
  1151 + <if test="lineType != null and lineType != ''"> and line_type = #{lineType}</if>
  1152 + <if test="district != null and district != ''"> and district = #{district}</if>
  1153 + <if test="inoutDistrict != null and inoutDistrict != ''"> and inout_district = #{inoutDistrict}</if>
  1154 + <if test="serviceState != null and serviceState != ''"> and service_state = #{serviceState}</if>
  1155 + <if test="busType != null and busType != ''"> and bus_type = #{busType}</if>
  1156 + <if
  1157 + test="airConditionerType != null and airConditionerType != ''"> and air_conditioner_type = #{airConditionerType}</if>
  1158 + <if test="sellTicketType != null and sellTicketType != ''"> and sell_ticket_type = #{sellTicketType}</if>
  1159 + <if test="serviceTime != null and serviceTime != ''"> and service_time = #{serviceTime}</if>
  1160 + <if test="lineDistance != null "> and line_distance = #{lineDistance}</if>
  1161 + <if test="lineCode != null and lineCode != ''"> and line_code = #{lineCode}</if>
  1162 + <if test="warrantYear != null "> and warrant_year = #{warrantYear}</if>
  1163 + <if test="warrantStartTime != null "> and warrant_start_time = #{warrantStartTime}</if>
  1164 + <if test="warrantEndTime != null "> and warrant_end_time = #{warrantEndTime}</if>
  1165 + <if test="planCancelTime != null "> and plan_cancel_time = #{planCancelTime}</if>
  1166 + <if test="cancelTime != null "> and cancel_time = #{cancelTime}</if>
  1167 + <if test="cancelReason != null and cancelReason != ''"> and cancel_reason = #{cancelReason}</if>
  1168 + <if test="isLogicDelete != null and isLogicDelete != ''"> and is_logic_delete = #{isLogicDelete}</if>
  1169 + <if test="timeSchedule != null "> and time_schedule = #{timeSchedule}</if>
  1170 + <if test="park != null and park != ''"> and park = #{park}</if>
  1171 + <if test="isWarrant != null and isWarrant != ''"> and is_warrant = #{isWarrant}</if>
  1172 + <if test="roadType != null and roadType != ''"> and road_type = #{roadType}</if>
  1173 + <if test="ticketPrice != null and ticketPrice != ''"> and ticket_price = #{ticketPrice}</if>
  1174 + <if test="firstStation != null and firstStation != ''"> and first_station = #{firstStation}</if>
  1175 + <if test="startEnd != null and startEnd != ''"> and start_end = #{startEnd}</if>
  1176 + <if test="firstTime != null and firstTime != ''"> and first_time = #{firstTime}</if>
  1177 + <if test="lastStation != null and lastStation != ''"> and last_station = #{lastStation}</if>
  1178 + <if test="lastTime != null and lastTime != ''"> and last_time = #{lastTime}</if>
  1179 + <if test="mileageUp != null and mileageUp != ''"> and mileage_up = #{mileageUp}</if>
  1180 + <if test="mileageDown != null and mileageDown != ''"> and mileage_down = #{mileageDown}</if>
  1181 + <if test="averageMileage != null and averageMileage != ''"> and average_mileage = #{averageMileage}</if>
  1182 + <if test="stationUp != null and stationUp != ''"> and station_up = #{stationUp}</if>
  1183 + <if test="stationDown != null and stationDown != ''"> and station_down = #{stationDown}</if>
  1184 + <if test="travelTimeUp != null and travelTimeUp != ''"> and travel_time_up = #{travelTimeUp}</if>
  1185 + <if test="travelTimeDown != null and travelTimeDown != ''"> and travel_time_down = #{travelTimeDown}</if>
  1186 + <if test="travelIntervalUp != null and travelIntervalUp != ''"> and travel_interval_up = #{travelIntervalUp}</if>
  1187 + <if
  1188 + test="travelIntervalDown != null and travelIntervalDown != ''"> and travel_interval_down = #{travelIntervalDown}</if>
  1189 + <if test="warrantVehiclesLarge != null "> and warrant_vehicles_large = #{warrantVehiclesLarge}
  1190 + </if>
  1191 + <if test="warrantVehiclesMiddle != null "> and warrant_vehicles_middle = #{warrantVehiclesMiddle}
  1192 + </if>
  1193 + <if test="vehiclesNumber != null "> and vehicles_number = #{vehiclesNumber}</if>
  1194 + <if test="numberVehiclesLarge != null "> and number_vehicles_large = #{numberVehiclesLarge}</if>
  1195 + <if test="numberVehiclesMiddle != null "> and number_vehicles_middle = #{numberVehiclesMiddle}
  1196 + </if>
  1197 + <if test="carPlate != null and carPlate != ''"> and car_plate = #{carPlate}</if>
  1198 + <if test="numberPerson != null "> and number_person = #{numberPerson}</if>
  1199 + <if test="numberPersonDriver != null "> and number_person_driver = #{numberPersonDriver}</if>
  1200 + <if test="numberPersonSales != null "> and number_person_sales = #{numberPersonSales}</if>
  1201 + <if test="busEvNumber != null "> and bus_ev_number = #{busEvNumber}</if>
  1202 + <if test="directions != null and directions != ''"> and directions = #{directions}</if>
  1203 + <if test="numberOfManage != null and numberOfManage != ''"> and number_of_manage = #{numberOfManage}</if>
  1204 + <if test="halfwayStation != null and halfwayStation != ''"> and halfway_station = #{halfwayStation}</if>
  1205 + <if test="fullCustomerPercent != null "> and full_customer_percent = #{fullCustomerPercent}</if>
  1206 + <if test="lowCustomerPercent != null "> and low_customer_percent = #{lowCustomerPercent}</if>
  1207 + <if test="divideLevel != null and divideLevel != ''"> and divide_level = #{divideLevel}</if>
  1208 + <if test="hasTimelists != null and hasTimelists != ''"> and has_timelists = #{hasTimelists}</if>
  1209 + <if test="isMetro != null and isMetro != ''"> and is_metro = #{isMetro}</if>
  1210 + <if test="metroTime != null and metroTime != ''"> and metro_time = #{metroTime}</if>
  1211 + <if test="coldBonusType != null and coldBonusType != ''"> and cold_bonus_type = #{coldBonusType}</if>
  1212 + <if test="revenuesMonth != null "> and revenues_month = #{revenuesMonth}</if>
  1213 + <if test="personMonth != null "> and person_month = #{personMonth}</if>
  1214 + <if test="mileageMonth != null "> and mileage_month = #{mileageMonth}</if>
  1215 + <if test="personMonthAvg != null "> and person_month_avg = #{personMonthAvg}</if>
  1216 + <if test="revenues != null "> and revenues = #{revenues}</if>
  1217 + <if test="persons != null "> and persons = #{persons}</if>
  1218 + <if test="mileages != null "> and mileages = #{mileages}</if>
  1219 + <if test="personAvg != null "> and person_avg = #{personAvg}</if>
  1220 + <if test="startDate != null "> and start_date > #{startDate}</if>
  1221 + <if test="startReason != null "> and start_reason = #{startReason}</if>
  1222 + <if test="nightParking != null and nightParking != ''"> and night_parking = #{nightParking}</if>
  1223 + </where>
  1224 +
  1225 + group by line_name
  1226 + </select>
  1227 +
  1228 + <select id="getListByName" parameterType="java.lang.String" resultMap="BsthTLineResult">
  1229 + <include refid="selectBsthTLineHistoryVo" />
  1230 + <where>
  1231 + and line_name = #{name}
  1232 + </where>
  1233 + ORDER BY start_date DESC
  1234 + </select>
1140 1235
1141 <select id="selectBsthTLineHistoryById" parameterType="Long" 1236 <select id="selectBsthTLineHistoryById" parameterType="Long"
1142 resultMap="BsthTLineResult"> 1237 resultMap="BsthTLineResult">