瀏覽代碼

合并与变量名错误修复

Zhouzhendong 4 年之前
父節點
當前提交
5d4f273f47
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/ControlPanelController.php

+ 1 - 1
app/Http/Controllers/ControlPanelController.php

@@ -235,7 +235,7 @@ sql;
             if (empty($info)) return  $res;
             foreach ($info as $v){
                 $res[] = [$v->measuring_machine_id,(int)$v->count];
-                $no_weight += (int)($v->total_count - $v->un_weigh_count);
+                $no_weight += (int)($v->total - $v->count);
             }
             array_push($res, ['未称重',$no_weight]);
         }else{