1
0
mirror of https://gitee.com/zhc02/timely_service.git synced 2025-06-25 04:07:07 +08:00
kefu_service/extend/Logic/VisitorService.php
2019-10-30 23:45:10 +08:00

38 lines
902 B
PHP

<?php
/**
* Created by PhpStorm.
* User: zhc
* Date: 2019/10/22
* Time: 11:07
*/
namespace Logic;
use think\Db;
class VisitorService
{
/**
* 访客留言立碑
* @param $seller_id
* @param $where
* @return array
*/
public static function getCustomerServiceList($seller_id,$where=[],$page=1,$limit=10){
$list = Db::name('visitor_service_log')->where('seller_id',$seller_id)
->where($where)->order('service_log_id', 'desc')->page($page,$limit)->select();
return $list;
}
public static function getCustomerServiceCount($seller_id,$where=[]){
return Db::name('visitor_service_log')->where('seller_id',$seller_id)->where($where)->count();
}
public static function addServiceLog($data){
return Db::name('visitor_service_log')->insertGetId($data);
}
}