添加操作记录

dev
曾超新 5 years ago
parent 4a9145cc7c
commit 6b77142530
  1. 5
      frontend/controllers/DatabaseController.php

@ -303,6 +303,7 @@ class DatabaseController extends BaseController
if(!$b_info->save(false)) { if(!$b_info->save(false)) {
throw new Exception(print_r($b_info->getFirstErrors(),true)); throw new Exception(print_r($b_info->getFirstErrors(),true));
} }
$this->addLog($car_info->id,'从B库回收成未分配状态',1);
} }
$this->addLog($car_info->id,'从A库分配到B库',1); $this->addLog($car_info->id,'从A库分配到B库',1);
} }
@ -356,6 +357,7 @@ class DatabaseController extends BaseController
if(!$b_info->save(false)) { if(!$b_info->save(false)) {
throw new Exception(print_r($b_info->getFirstErrors(),true)); throw new Exception(print_r($b_info->getFirstErrors(),true));
} }
$this->addLog($car_info->id,'从B库回收成未分配状态',1);
} }
$this->addLog($car_info->id,'从A库分配到B库',1); $this->addLog($car_info->id,'从A库分配到B库',1);
} }
@ -411,6 +413,7 @@ class DatabaseController extends BaseController
if(!$c_info->save(false)) { if(!$c_info->save(false)) {
throw new Exception(print_r($c_info->getFirstErrors(),true)); throw new Exception(print_r($c_info->getFirstErrors(),true));
} }
$this->addLog($car_info->id,'从C库回收成未分配状态',1);
} }
$this->addLog($car_info->id,'从A库分配到C库',1); $this->addLog($car_info->id,'从A库分配到C库',1);
} }
@ -1578,6 +1581,7 @@ class DatabaseController extends BaseController
if(!$d_info->save(false)) { if(!$d_info->save(false)) {
throw new Exception(print_r($d_info->getFirstErrors(),true)); throw new Exception(print_r($d_info->getFirstErrors(),true));
} }
$this->addLog($car_info->id,'从D库回收成未分配状态',1);
} }
$this->addLog($car_info->id,'从C库分配到D库',1); $this->addLog($car_info->id,'从C库分配到D库',1);
} }
@ -1629,6 +1633,7 @@ class DatabaseController extends BaseController
if(!$d_info->save(false)) { if(!$d_info->save(false)) {
throw new Exception(print_r($d_info->getFirstErrors(),true)); throw new Exception(print_r($d_info->getFirstErrors(),true));
} }
$this->addLog($car_info->id,'从D库回收成未分配状态',1);
} }
$this->addLog($car_info->id,'从C库分配到D库',1); $this->addLog($car_info->id,'从C库分配到D库',1);
} }

Loading…
Cancel
Save