From 50d4af4106fbdc25d0b0fdc8d1f98a9debf4546b Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 9 Dec 2014 12:40:31 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=9F=90=E4=BA=9B=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=AD=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/module/Westdc/Visual/Record.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/application/module/Westdc/Visual/Record.php b/application/module/Westdc/Visual/Record.php index 9358f829..b18d9294 100644 --- a/application/module/Westdc/Visual/Record.php +++ b/application/module/Westdc/Visual/Record.php @@ -77,6 +77,19 @@ class Record extends Database $this->timeFiled = $var_data['visual_timefield_model']; }//custom + //时间字段为空的bug + if(empty($var_data['visual_timefield_model'])){ + $this->timeFiled = "utctime"; + }else{ + if($var_data['visual_timefield_model'] == 'single' && empty($var_data['visual_timefield'])){ + $this->timeFiled = "utctime"; + }elseif($var_data['visual_timefield_model'] == 'multiple' && empty($var_data['visual_timefield_year'])){ + $this->timeFiled = "utctime"; + }elseif($var_data['visual_timefield_model'] == 'custom' && empty($var_data['visual_timefield_custom'])) { + $this->timeFiled = "utctime"; + } + } + if(isset($var_data['data']) && !empty($var_data['data'])) $this->sql = $this->makeSql($var_data['data'],$this->subdataset); else