Browse Source

优化委托编号时间跨度

huangsanjia 2 năm trước cách đây
mục cha
commit
b0f144de12

+ 1 - 1
application/admin/controller/Entrust.php

@@ -755,7 +755,7 @@ class Entrust extends Backend
             $this->error('参数错误');
             $this->error('参数错误');
         }
         }
         $beginTime = date('Y-m-d 00:00:00');
         $beginTime = date('Y-m-d 00:00:00');
-        $endTime = date('Y-m-d 24:00:00');
+        $endTime = date('Y-m-d 23:59:59');
         $num = Db::name('entrust')->where('sample_no','like','%'.$params.'%')->where('create','between',[$beginTime,$endTime])->count();
         $num = Db::name('entrust')->where('sample_no','like','%'.$params.'%')->where('create','between',[$beginTime,$endTime])->count();
 //        if ($company == '亚欣'){//亚欣送样从100开始
 //        if ($company == '亚欣'){//亚欣送样从100开始
 //            $num = $num+100;
 //            $num = $num+100;