...
|
...
|
@@ -140,6 +140,7 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
Db::startTrans();
|
|
|
try{
|
|
|
Db::name('equipment')->where('id',$id)->update(['use'=>0]);
|
|
|
echo \db('equipment')->getLastSql();
|
|
|
\db('order')->where($map)->update($data);
|
|
|
} catch (\Exception $e){
|
|
|
Db::rollback();
|
...
|
...
|
|