更新若干功能
This commit is contained in:
@@ -26,7 +26,7 @@ class PriceSheetService extends BaseService
|
||||
$this->selectField = array_merge(
|
||||
['id', 'catalogue_id', 'specification', 'dimension'],
|
||||
PriceSheetModel::MATERIAL_FIELDS,
|
||||
['status', 'created_at', 'updated_at']
|
||||
['stock', 'status', 'created_at', 'updated_at']
|
||||
);
|
||||
$this->queryField = ['catalogue_id' => '=', 'specification' => 'like', 'status' => '='];
|
||||
$this->orderBy = ['name' => 'id', 'sort' => 'asc'];
|
||||
@@ -195,6 +195,9 @@ class PriceSheetService extends BaseService
|
||||
$payload[$field] = is_scalar($row[$field]) ? (string) $row[$field] : '';
|
||||
}
|
||||
}
|
||||
if (array_key_exists('stock', $row)) {
|
||||
$payload['stock'] = (int) $row['stock'];
|
||||
}
|
||||
return $payload;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user