|
|
@ -353,6 +353,7 @@ class BIZ_train_model extends CI_Model {
|
|
|
|
where (ts_status='4' or ts_status='3' or ts_status='10') and ts_cold_sn = COLD_SN) ))
|
|
|
|
where (ts_status='4' or ts_status='3' or ts_status='10') and ts_cold_sn = COLD_SN) ))
|
|
|
|
AND COLD_SN NOT IN ( select FOI_COLD_SN from BIZ_FlightsOrderInfo where FOI_COLD_SN=COLD_SN and FOI_TrainNetOrderNo>'')
|
|
|
|
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 (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 COLD_StartDate
|
|
|
|
order by COLD_StartDate
|
|
|
|
";
|
|
|
|
";
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|