edit-admin-business'
This commit is contained in:
@@ -221,10 +221,10 @@ class Business extends HD_Controller{
|
||||
'city_id' => $info['city_id'],
|
||||
'year' => $year,
|
||||
'month' => $month,
|
||||
'status>='=>0
|
||||
'status'=>1
|
||||
];
|
||||
if($this->auto_business_model->get($where)){
|
||||
return ['code'=>0,'msg'=>'数据已存在'];
|
||||
return $this->show_json(SYS_CODE_FAIL, '数据已存在');
|
||||
}
|
||||
$data = [
|
||||
'brand_id' => $info['brand_id'],
|
||||
@@ -273,11 +273,11 @@ class Business extends HD_Controller{
|
||||
'city_id' => $info['city_id'],
|
||||
'year' => $year,
|
||||
'month' => $month,
|
||||
'status>='=>0,
|
||||
'status'=>1,
|
||||
'id !=' => $info['id']
|
||||
];
|
||||
if($this->auto_business_model->get($where)){
|
||||
return ['code'=>0,'msg'=>'数据已存在'];
|
||||
return $this->show_json(SYS_CODE_FAIL, '数据已存在');
|
||||
}
|
||||
$data = [
|
||||
'city_id' => $info['city_id'],
|
||||
|
||||
Reference in New Issue
Block a user