Ejemplo n.º 1
0
 public static function findMultiByBrokerIds(array $brokerIds)
 {
     if (empty($brokerIds)) {
         return array();
     }
     // 查询
     $rows = Model_Chat_TalentStat::data_access()->filter('brokerId', $brokerIds)->find_all();
     // 索引
     $stats = array();
     foreach ($rows as $row) {
         $stats[$row['brokerId']] = $row;
     }
     return $stats;
 }
Ejemplo n.º 2
0
 public static function getBrokerAnalysis($broker_id)
 {
     $return = Model_Chat_TalentStat::data_access()->filter('brokerId', $broker_id)->sort('calDt', 'desc')->find_only();
     return $return;
 }