|
@@ -68,7 +68,7 @@ class Company extends Base_Controller {
|
|
|
$id = intval($this->input->post('id',true));
|
|
|
if (empty($id)) exit(json_result('0007',$this->response['0007']));
|
|
|
|
|
|
- $res = $this->Project_model->get_one(['companyId'=>$id],'id');
|
|
|
+ $res = $this->Project_model->get_one(['company'=>$id],'id');
|
|
|
|
|
|
if (!empty($res) && !empty($res['id'])) exit(json_result('',$this->response['']));
|
|
|
|