搜索跟进记录
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
* @Author: kangkang
|
* @Author: kangkang
|
||||||
* @Date: 2020-10-13 19:52:37
|
* @Date: 2020-10-13 19:52:37
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @LastEditTime: 2022-01-14 16:24:59
|
* @LastEditTime: 2022-01-15 09:54:06
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace app\manager\controller;
|
namespace app\manager\controller;
|
||||||
@@ -284,8 +284,21 @@ class UserFollow extends Controller
|
|||||||
if (!empty($get['s_time'])) {
|
if (!empty($get['s_time'])) {
|
||||||
$date1 = date('Y-m-d', strtotime($get['s_time']));
|
$date1 = date('Y-m-d', strtotime($get['s_time']));
|
||||||
$date2 = date('Y-m-d H:i:s', strtotime($get['e_time']));
|
$date2 = date('Y-m-d H:i:s', strtotime($get['e_time']));
|
||||||
|
if (!empty($where)) {
|
||||||
|
$where .= " AND ";
|
||||||
|
}
|
||||||
$where .= " create_time>='" . $date1 . "' and create_time<='" . $date2 . "' ";
|
$where .= " create_time>='" . $date1 . "' and create_time<='" . $date2 . "' ";
|
||||||
}
|
}
|
||||||
|
//根据会员信息查询
|
||||||
|
if (!empty($get['search_info'])) {
|
||||||
|
$user_model = new User;
|
||||||
|
$user_where = "LoginCode = '".$get['search_info']."' OR Wx = '".$get['search_info']."' OR QQ = '".$get['search_info']."'";
|
||||||
|
$user_id = $user_model->getOneByStr($user_where, 'Id');
|
||||||
|
if (!empty($where)) {
|
||||||
|
$where .= " AND ";
|
||||||
|
}
|
||||||
|
$where .= " user_id=".$user_id['Id'].' ';
|
||||||
|
}
|
||||||
$list = $follow_rcord->getNewRecord($where,"$page,50");
|
$list = $follow_rcord->getNewRecord($where,"$page,50");
|
||||||
|
|
||||||
foreach ($list as &$info) {
|
foreach ($list as &$info) {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2020-09-30 17:32:46
|
* @Date: 2020-09-30 17:32:46
|
||||||
* @LastEditTime: 2020-11-17 15:17:09
|
* @LastEditTime: 2022-01-15 09:41:34
|
||||||
* @LastEditors: kangkang
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: In User Settings Edit
|
* @Description: In User Settings Edit
|
||||||
* @FilePath: /phptest/fastphp/base/Model.php
|
* @FilePath: /phptest/fastphp/base/Model.php
|
||||||
*/
|
*/
|
||||||
@@ -72,6 +72,16 @@ class Model extends Sql
|
|||||||
return $this->field($fields)->where($where)->fetch();
|
return $this->field($fields)->where($where)->fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: 获取一条数据
|
||||||
|
* @param {type}
|
||||||
|
* @return {type}
|
||||||
|
*/
|
||||||
|
public function getOneByStr($where = "", $fields = '*')
|
||||||
|
{
|
||||||
|
return $this->field($fields)->where($where)->fetch();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 获取最新一条数据
|
* @description: 获取最新一条数据
|
||||||
* @param {*}
|
* @param {*}
|
||||||
|
|||||||
Reference in New Issue
Block a user