mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
!253 编辑问题修复
Merge pull request !253 from 杨建炊/fix-release-1.0.0/yjc-migrate
This commit is contained in:
commit
4ecc66eb32
@ -159,7 +159,7 @@ class GoodsCombinationController extends Controller
|
||||
$externalSkuId = $request->input('external_sku_id') ??
|
||||
GeneratorUtils::generateCombinationGoodNumber($request->combination_goods);
|
||||
$hasCodeSku = GoodsSku::query()->where("external_sku_id", $externalSkuId)->first();
|
||||
if (!empty($hasCodeSku)) {
|
||||
if (!empty($hasCodeSku) && $hasCodeSku->id != $request->input('id',0)) {
|
||||
throw new \Exception("该组合商品编码已存在");
|
||||
}
|
||||
DB::beginTransaction();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user