|
|
@@ -110,7 +110,7 @@ class ViolationProduct extends Controller
|
|
|
$store_scope = request('store_scope', '');
|
|
|
$all_data['store_scope'] = $store_scope;
|
|
|
//查询是否存在
|
|
|
- $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs']];
|
|
|
+ $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'],'platform'=> $all_data['platform']];
|
|
|
$data = $ViolationProductModel->where($map)->first();
|
|
|
if ($data) return json_send(['code' => 'error', 'msg' => '记录已存在']);
|
|
|
// 写入数据表
|
|
|
@@ -138,7 +138,7 @@ class ViolationProduct extends Controller
|
|
|
$store_scope = request('store_scope','');
|
|
|
$all_data['store_scope'] = $store_scope;
|
|
|
//查询是否存在
|
|
|
- $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs']];
|
|
|
+ $map = ['product_name' => $all_data['product_name'], 'product_specs' => $all_data['product_specs'],'platform'=> $all_data['platform']];
|
|
|
$data = $ViolationProductModel->where($map)->where('id', '!=', $id)->first();
|
|
|
if ($data) return json_send(['code' => 'error', 'msg' => '记录已存在']);
|
|
|
// 更新数据表
|