12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Cas\Dao;
- use KIF\Dao\SqlHelper;
- use KIF\Dao\DBAgileDev;
- use KIF\Core\Request;
- use KIF\Cache\Memcached;
- class LotteryEventsCodeData extends DBAgileDev {
- protected $tableName = 'lottery_events_code_data';
-
-
-
- protected $other_field = array(
- 'events_id',
- 'uid',
- 'data',
- );
-
-
-
- public function getEventsCodeDataNum($events_id){
- $condtion = array('events_id' => $events_id);
- return $this->totals($condtion);
- }
-
-
-
- public function getEventsUseCodeDataNum($events_id){
- $condtion = array('events_id' => $events_id ,'uid' => SqlHelper::addCompareOperator('!=', 0));
- return $this->totals($condtion);
- }
-
-
-
-
- }
|