Просмотр исходного кода

合并与变量名错误修复

Zhouzhendong 4 лет назад
Родитель
Сommit
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{