Esempio n. 1
0
 /**
  * 根据条件获取经纪人删除图片数量
  * @param unknown_type $p_intBrokerID
  * @param unknown_type $p_intCityID
  * @param unknown_type $BeginTime
  * @param unknown_type $EndTime
  * @param unknown_type $Start
  * @param unknown_type $Num
  * @param unknown_type $p_bolStrictFreshCache
  */
 public static function getUnPassedPicNum($TableName, $p_intBrokerID, $p_intCityID, $Datei, $p_bolStrictFreshCache = true)
 {
     $objORM = new ORM_ActionORM($TableName);
     $strWhere = 'BrokerId = ? and CityId = ? and DealType != 15 and operateType =2  AND Datei >= ?';
     $arrParams = array($p_intBrokerID, $p_intCityID, $Datei);
     return $objORM->getCnt($strWhere, $arrParams, $p_bolStrictFreshCache);
 }
Esempio n. 2
0
 /**
  * 依据分类ID计算经纪人是否参加过该帮助模块的学习
  * @param $p_intBrokerID
  * @param $p_intItemID
  * @param bool $p_bolRefresh
  * @return int
  */
 public function getCntByItemID($p_intBrokerID, $p_intItemID, $p_bolRefresh = false)
 {
     $objORM = new ORM_ActionORM('log_broker_study');
     $intRtn = $objORM->getCnt('BROKERID = ? and ITEMID = ?', array($p_intBrokerID, $p_intItemID), $p_bolRefresh);
     return !$intRtn ? 0 : $intRtn;
 }