...
|
...
|
@@ -183,7 +183,7 @@ class Study extends Backend |
|
|
$unique = time();
|
|
|
$brpath = Resource::StudyBar($unique);
|
|
|
$time = date('YmdHi',time());
|
|
|
$this->model->save(['barcode'=>$brpath],['sno'=>$time],['id'=>$id]);
|
|
|
$this->model->save(['barcode'=>$brpath,'sno'=>$time,'unique'=>$time],['id'=>$id]);
|
|
|
Db::commit();
|
|
|
} catch (ValidateException|PDOException|Exception $e) {
|
|
|
Db::rollback();
|
...
|
...
|
|