|
@@ -295,12 +295,12 @@ class Customar extends BaseController
|
|
|
|
|
|
public function info()
|
|
|
{
|
|
|
- $id = isset($this->post['id']) && $this->post['id'] !== "" ? intval($this->post['id']) : "";
|
|
|
- if ($id == "") {
|
|
|
- return error_show(1002, "参数id不能为空");
|
|
|
+ $companyNo = isset($this->post['companyNo']) && $this->post['companyNo'] !== "" ? trim($this->post['companyNo']) : "";
|
|
|
+ if ($companyNo == "") {
|
|
|
+ return error_show(1002, "参数companyNo不能为空");
|
|
|
}
|
|
|
//>field("companyNo,companyName,itemid as parent,id")-
|
|
|
- $idinfo = Db::name('customer_info')->where(['id' => $id, 'is_del' => 0])->find();
|
|
|
+ $idinfo = Db::name('customer_info')->where(['companyNo' => $companyNo, 'is_del' => 0])->find();
|
|
|
if ($idinfo == "") {
|
|
|
return error_show(1002, "未找到数据");
|
|
|
}
|