Example #1
0
 /**
  * 获取经纪人当日发送给指定客户的微聊总数
  *
  * @param $brokerId
  * @param $userDeviceId
  *
  * @return Model_Mobile_CustomerChatCount|null
  */
 public static function getTodayChatCount($brokerId, $userDeviceId)
 {
     return Model_Mobile_CustomerChat::data_access()->filter('brokerId', $brokerId)->filter('userDeviceId', $userDeviceId)->filter_by_op('createTime', '>=', date('Y-m-d 00:00:00'))->count();
 }