Commit 570ca5e5 authored by zfc's avatar zfc

跟进列表2

parent 16e3d1a9
......@@ -72,8 +72,8 @@ class Remark extends Basic
}
$field = "r.id,r.apply_id,r.shopuser_id,r.content,r.house_id,r.created,
a.customer,a.phpone,
$field = "r.id,r.apply_id,r.shopuser_id,r.content,r.house_id,r.created,r.admin,
a.customer,a.phpone,a.sex,
a2.realname";
$order = 'r.id asc';
$join = [
......@@ -88,5 +88,23 @@ class Remark extends Basic
}
public function contentList(){
$table= new Remarks;
$data['status'] = 200;
$data['msg'] = '';
$params = $this->request->param();
$applyid=$params['apply_id'];
if($applyid){
//条件
$field='id,apply_id,shopuser_id,content,house_id,created,admin,';
$where="isinstatus=1 and content like '%【跟进】%' and apply_id='{$applyid}'";
$data['list'] = $table->field($field)->where($where)->select();
}else{
return $this->response(200,'失败,没有apply_id',$data);
}
}
}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
......@@ -74,6 +74,7 @@ class Remarks extends Model
}
/**
* @param $join
* @param $params
* @return int|string
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment