12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Cas\Dao;
- use KIF\Dao\SqlHelper;
- use KIF\Dao\DBAgileDev;
- use KIF\Core\Request;
- use KIF\Cache\Memcached;
- /**
- *
- * 活动[领码]数据
- *
- * @author lihuanchun@qq.com
- *
- */
- class LotteryEventsCodeData extends DBAgileDev {
- protected $tableName = 'lottery_events_code_data';
-
-
- /**
- * 数据库里的真实字段
- * @var array
- */
- protected $other_field = array(
- 'events_id',
- 'uid',
- 'data',
- );
-
-
- /**
- * 获取当前活动 “码” 数据 总条数
- * @param int $events_id
- */
- public function getEventsCodeDataNum($events_id){
- $condtion = array('events_id' => $events_id);
- return $this->totals($condtion);
- }
-
-
- /**
- * 获取当前活动 “码” 数据 已发中数
- * @param int $events_id
- */
- public function getEventsUseCodeDataNum($events_id){
- $condtion = array('events_id' => $events_id ,'uid' => SqlHelper::addCompareOperator('!=', 0));
- return $this->totals($condtion);
- }
-
-
-
-
- }
|