wupengfei пре 2 година
родитељ
комит
72a0ea0742

+ 4 - 4
application/user/controller/Invite.php

@@ -64,8 +64,8 @@ class Invite extends Controller
         $create_at = $this->request->get('create_at');
         if(isset($create_at) && $create_at) {
            $time = explode(' - ',$_GET['create_at']);
-           $start_date_time = $time[0].' 00:00:00';
-           $end_date_time =  $time[1].' 23:59:59';
+           $start_date_time = $time[0];
+           $end_date_time =  $time[1];
            $this->_query($this->table)
                ->field('pid,count(*) count')
                ->where('pid','>',0)
@@ -128,8 +128,8 @@ class Invite extends Controller
         $create_at = $this->request->get('create_at');
         if(isset($create_at) && $create_at) {
             $time = explode(' - ',$_GET['create_at']);
-            $start_date_time = $time[0].' 00:00:00';
-            $end_date_time =  $time[1].' 23:59:59';
+            $start_date_time = $time[0];
+            $end_date_time =  $time[1];
             $list =  Db::name('store_member')
                 ->field('pid,count(*) count')
                 ->where('pid','>',0)

+ 1 - 1
application/user/view/invite/index_search.html

@@ -33,7 +33,7 @@
     </form>
     <script>
         form.render();
-        laydate.render({range: true, elem: '[name="create_at"]'})
+        laydate.render({range: true, elem: '[name="create_at"]',type: 'datetime'})
         $('#exportButton').click(function () {
             $("#exportForm").attr('action', '/user/invite/get_excl?' + $('#form').serialize())
         })