From 318d4bd5a88e81018e9619d714e13b2669163172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Fri, 26 Apr 2024 10:25:14 +0800 Subject: [PATCH] fix --- application/third_party/trainsystem/controllers/addorders.php | 3 ++- application/third_party/trainsystem/models/BIZ_train_model.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 78869822..dc42f2f7 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -288,8 +288,9 @@ class addorders extends CI_Controller{ if($depart_diff==14){ }else{ - log_message('error','自动出票错误信息:'.''.$string.'
'); + } + log_message('error','自动出票错误信息:'.''.$string.'
'); }else{ //单个订单提交 diff --git a/application/third_party/trainsystem/models/BIZ_train_model.php b/application/third_party/trainsystem/models/BIZ_train_model.php index 304b3c57..00970446 100644 --- a/application/third_party/trainsystem/models/BIZ_train_model.php +++ b/application/third_party/trainsystem/models/BIZ_train_model.php @@ -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) )) 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 COLD_StartDate "; $query = $this->HT->query($sql);