소스 검색

优化委托编号时间跨度

huangsanjia 2 년 전
부모
커밋
b0f144de12
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/admin/controller/Entrust.php

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

@@ -755,7 +755,7 @@ class Entrust extends Backend
             $this->error('参数错误');
         }
         $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();
 //        if ($company == '亚欣'){//亚欣送样从100开始
 //            $num = $num+100;