dever 3 years ago
parent
commit
34a4dfeb93
1 changed files with 17 additions and 0 deletions
  1. 17 0
      service/agent/src/My.php

+ 17 - 0
service/agent/src/My.php

@@ -412,4 +412,21 @@ class My extends Core
 
         return $this->data;
     }
+
+    # 获取我的业绩统计
+    public function getSell()
+    {
+        $this->data['user'] = $this->user;
+
+        $where['mid'] = $this->uid;
+        $this->data['list'] = Dever::db('bill/sell_stat')->getData($where);
+
+        if ($this->data['list']) {
+            foreach ($this->data['list'] as $k => $v) {
+                $this->data['list'][$k]['month_string'] = date('Y年月', $v['month']);
+            }
+        }
+
+        return $this->data;
+    }
 }