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