From ce92602ca08df43ab08e428ee606456f1fb65726 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 13 Jan 2020 13:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90=E4=B8=8A?= =?UTF-8?q?=E6=B8=B8=E8=AE=A2=E5=8D=95=E9=87=8D=E5=A4=8D=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/StatementController.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/StatementController.class.php b/Application/Admin/Controller/StatementController.class.php index 6a6b28989..66f698e1a 100644 --- a/Application/Admin/Controller/StatementController.class.php +++ b/Application/Admin/Controller/StatementController.class.php @@ -104,7 +104,7 @@ class StatementController extends ThinkController "statement_end_time"=>array("EGT",strtotime($_REQUEST['time_start'])), "company_id"=>$CompanyId ); - $bres = $Statement->field("statement_begin_time,statement_end_time")->where($checkmap)->find(); + $bres = $Statement->field("id,statement_begin_time,statement_end_time")->where($checkmap)->find(); if($bres){ $repart=true; $begin = $_REQUEST['time_start']; @@ -122,6 +122,9 @@ class StatementController extends ThinkController "statement_end_time"=>array("EGT",strtotime($_REQUEST['time_end'])), "company_id"=>$CompanyId ); + if($repart){ + $checkmap["id"]=array("NEQ",$bres["id"]); + } $bres = $Statement->field("statement_begin_time,statement_end_time")->where($checkmap)->find(); if($bres){ $repart=true;