Commit eb1555cd by hcy001

1

parent 7deca896
Showing with 6 additions and 0 deletions
......@@ -363,6 +363,12 @@ class InquiryItemsModel extends Model
"create_time"=>time() ,
"update_time"=>time() ,
];
#判断是否已经存在此品牌+型号
$check = $this->where(["inquiry_id"=>$inquiry_id,"goods_name"=>$b["goods_name"],"brand_name"=>$b["brand_name"]])->count();
if ($check >0){
throw new Exception("型号:".$b["goods_name"]." 品牌:".$b["brand_name"]."不得重复上传");
}
#插入明细
$inquiryItemsId = $this->insertGetId($insertArr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment