edit-admin-business'

This commit is contained in:
lccsw
2022-03-26 01:06:39 +08:00
parent cc27ea79fe
commit a26d801b49
+4 -4
View File
@@ -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'],