Commit c1af500c authored by zfc's avatar zfc

pc后台添加跟进

parent 4629bb0e
......@@ -3,8 +3,9 @@
namespace app\index\controller;
use app\index\extend\Basic;
use app\model\Users;
use app\model\UPhoneFollowPp;
use think\Request;
use think\session;
/**
* Description of Member
......@@ -129,6 +130,30 @@ class Member extends Basic{
return $this->response($status, $msg, $data);
}
/**
* 添加跟进
* @return \think\Response
*/
public function pcAddFollow(){
$status = 200;
$msg = '成功!';
$table= new UPhoneFollowPp;
$params = $this->request->param();
$time=date("Y-m-d H:i:s",time());//当前时间
if(!empty($params['content'])&&!empty($params['user_id'])){
$params['id']='';
$params['labels_id']=0;
$params['agent_id'] = Session::get("userinfo.id");
$params['type']=2;
$params['create_time'] =$time;
$params['update_time'] =$time;
$table->save($params);
return $this->response($status, $msg, $params);
}else{
return $this->response(101, $msg='缺少参数', $params);
}
}
/**
* 删除用户
* @return \think\Response
......
......@@ -15,6 +15,12 @@ class UPhoneFollowPp extends BaseModel
$this->UPhoneFollowPp = Db($this->table);
}
/**
* @return array|false|\PDOStatement|string|\think\Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getall()
{
return $this->UPhoneFollowPp->find();
......@@ -25,8 +31,10 @@ class UPhoneFollowPp extends BaseModel
* @param int $pageSize
* @param string $order_
* @param $field
* @param $join
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @param $group
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
......@@ -64,7 +72,11 @@ class UPhoneFollowPp extends BaseModel
return $result;
}
/**
* @param $user_id
* @param $searchdate
* @return mixed
*/
public function select_useraction_search($user_id,$searchdate)
{
if($searchdate){
......
......@@ -47,6 +47,7 @@ Route::group('index', [
'users_list' => ['index/member/index'],
'user_add' => ['index/member/user_add',['method'=>'post']],
'del_user' => ['index/member/delUser',['method'=>'post']],
'pcAddFollow' => ['index/member/pcAddFollow',['method'=>'post']],
//transfer转铺列表
'transfer_list' => ['index/transfer/index', ['method' => 'get']],
......
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