自动出票排序先按日期,再按预售时间。这样可以优先预售期内的先出。

master
赵鹏 1 year ago
parent ecdbe13813
commit 1768776156

@ -354,7 +354,7 @@ class BIZ_train_model extends CI_Model {
AND COLD_SN NOT IN ( select FOI_COLD_SN from BIZ_FlightsOrderInfo where FOI_COLD_SN=COLD_SN and FOI_TrainNetOrderNo>'')
and (COLD_StartDate between GETDATE() and CONVERT(varchar(100),GETDATE()+14,23)+' 23:59')
and isnull((select top 1 ts_autotimes from InfoManager.dbo.trainsystem where ts_cold_sn= bcld.cold_sn order by ts_id desc),0)<4
order by ISNULL(CAST((select TST_saletime from TrainSaleTime where TST_station_cn = (
order by CONVERT(date,cold_startdate),ISNULL(CAST((select TST_saletime from TrainSaleTime where TST_station_cn = (
SELECT TOP 1 TRS_StationCN
FROM TrainStation
WHERE TRS_Code = (select top 1 DepartAirport from BIZ_FlightsOrderInfo where FOI_COLD_SN = cold_sn)

Loading…
Cancel
Save