rabin 3 years ago
parent
commit
82991d111e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      service/agent/lib/Tool.php

+ 3 - 3
service/agent/lib/Tool.php

@@ -1016,13 +1016,13 @@ class Tool
     {
         Dever::config('base')->hook = true;
 
-        $where['state'] = 1;
+        //$where['state'] = 1;
         $where['stype'] = 5;
         $id = Dever::input('id');
         if ($id) {
             $where['id'] = $id;
         }
-        $data = Dever::db('bill/sell')->select($where);
+        $data = Dever::db('bill/sell')->all($where);
         $test = Dever::input('test');
         if ($test == 1) {
             print_r($data);die;
@@ -1032,7 +1032,7 @@ class Tool
             foreach ($data as $k => $v) {
                 $update = array();
                 $update['where_id'] = $v['mid'];
-                $num = -1*$v['num'];
+                $num = $v['num'];
                 if ($v['type'] == 1) {
                     $update['group_sell'] = $num;
                 } else {