DengTao 8 жил өмнө
parent
commit
277d0dba70

+ 2 - 13
www/protected/components/O2oApp.php

@@ -247,23 +247,12 @@ class O2oApp {
         } else {
             $criteria = new EMongoCriteria();
         }
-        //$criteria->technician('==', intval($this->user));
+        $criteria->technician('==', intval($this->user));
         $criteria->time('>=', intval($start));
         $criteria->time('<', intval($end));
         $cursor = Comment::model()->findAll($criteria);
         $rows = CommonFn::getRowsFromCursor($cursor);
-        var_dump($rows);
-        /*$rows_new = array();
-        foreach($rows as $key => $value){
-            //判断是否为当前保洁师订单
-            foreach($value['technicians'] as $v) {
-                if($v['technician_id'] == intval($this->user)){
-                    $rows_new[] = $rows[$key];
-                }
-            }
-        }
-        $rows = $rows_new;
-        $count = count($rows);*/
+        
         $count = $cursor->count();
         $parsedRows = Comment::model()->parse($rows);