|
@@ -1048,8 +1048,6 @@ class Resign extends Base
|
|
|
], JSON_UNESCAPED_UNICODE);
|
|
|
// Cache::store("redis")->handler()->lPush(Config::get('app.abutment_queue'), $push_data);
|
|
|
|
|
|
- Db::commit();
|
|
|
- return app_show(0, "采购单新建成功", ["cgdNo" => $cgdCode]);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1067,6 +1065,8 @@ class Resign extends Base
|
|
|
return $temp;
|
|
|
},$taxInfo));
|
|
|
}
|
|
|
+ Db::commit();
|
|
|
+ return app_show(0, '采购单新建成功', ['cgdNo' => $cgdCode]);
|
|
|
}
|
|
|
Db::rollback();
|
|
|
return error_show(1004,"采购单新建失败");
|