Commit 23801a80 authored by hujun's avatar hujun

name

parent 0ca19c32
...@@ -195,19 +195,20 @@ class UPhoneFollowUpTemporary extends BaseModel ...@@ -195,19 +195,20 @@ class UPhoneFollowUpTemporary extends BaseModel
* @param int $pageNo * @param int $pageNo
* @param int $pageSize * @param int $pageSize
* @param $where * @param $where
* @param string $filed * @param string $field
* @return false|null|\PDOStatement|string|\think\Collection * @return false|null|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function getFollowListV3($site_id, $pageNo, $pageSize, $where, $filed = '`id`, `user_id`, `create_time`, `content`, `user_status`, `labels_id`, `agent_id`') { public function getFollowListV3($site_id, $pageNo, $pageSize, $where, $field = '`id`, `user_id`, `create_time`, `content`, `user_status`, `labels_id`, `agent_id`') {
if(!$this->createTable()){ if(!$this->createTable()){
return null; return null;
} }
$sql = Db::table('u_phone_follow_up_'.$site_id)->field($filed)->order('id desc')->where($where)->buildSql(); $sql = Db::table('u_phone_follow_up_'.$site_id)->field($field)->order('id desc')->where($where)->buildSql();
$sql_string = $this->table($this->table_name_string)->field($filed)->where($where)->union([$sql], true)->buildSql(); $sql_string = $this->table($this->table_name_string)->field($field)->where($where)->union([$sql], true)->buildSql();
$data = Db::table($sql_string. ' a') $data = Db::table($sql_string. ' a')
->field($field)
->order('id desc') ->order('id desc')
->limit($pageSize) ->limit($pageSize)
->page($pageNo) ->page($pageNo)
......
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