mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
鲜花2.0-接口测试bug修复
This commit is contained in:
parent
ea56daa372
commit
e0fce64e18
@ -69,10 +69,15 @@ class PurchaseRecordController extends Controller
|
||||
if (!empty($goodsSku)) {
|
||||
$expireDay = DeveloperConfigService::getDefaultExpireDay();
|
||||
$today = DateTimeUtils::getToday();
|
||||
$buyerUserId = User::query()->where("name", $allParams['buyer_name'] ?? '')
|
||||
->pluck("id")->first();
|
||||
$supplierId = Suppliers::query()->where("name", $allParams['supplier_name'] ?? '')
|
||||
->pluck("id")->first();
|
||||
if (empty($allParams['buyer_user_id'])) {
|
||||
$buyerUserId = User::query()->where("name", $allParams['buyer_name'] ?? '')
|
||||
->pluck("id")->first();
|
||||
}
|
||||
if (empty($allParams['supplier_id'])) {
|
||||
$supplierId = Suppliers::query()->where("supplier_name", $allParams['supplier_name'] ?? '')
|
||||
->pluck("id")->first();
|
||||
}
|
||||
|
||||
//保存記錄
|
||||
$purchaseRecords = new PurchaseRecords();
|
||||
$purchaseRecords->external_sku_id = $allParams['external_sku_id'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user