...
|
...
|
@@ -141,12 +141,12 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
Db::startTrans();
|
|
|
try{
|
|
|
Db::name('equipment')->where('id',$id)->update(['use'=>0]);
|
|
|
echo \db('equipment')->getLastSql();
|
|
|
// echo \db('equipment')->getLastSql();
|
|
|
\db('order')->where($map)->update($data);
|
|
|
$user_updata['is_use']=0;
|
|
|
\db('users')->where('id',$order['users_id'])->update($user_updata);
|
|
|
echo \db('order')->getLastSql();
|
|
|
echo '<br />';
|
|
|
//echo \db('order')->getLastSql();
|
|
|
//echo '<br />';
|
|
|
} catch (\Exception $e){
|
|
|
Db::rollback();
|
|
|
$this->error('操作失败!');
|
...
|
...
|
|