| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | 
							- <?php
 
- namespace Cas\Dao;
 
- use KIF\Dao\DBAgileDev;
 
- use KIF\Core\Request;
 
- /**
 
-  * 
 
-  * 平台   => 相关
 
-  * 所选css
 
-  * 名称
 
-  *   
 
-  * @author lihuanchun@qq.com
 
-  *
 
-  */
 
- class Platform extends DBAgileDev {
 
- 	protected $tableName = 'platform';
 
- 	
 
- 	/**
 
- 	 * 数据库里的真实字段
 
- 	 * @var array
 
- 	 */
 
- 	protected $other_field = array(
 
- 		'name',
 
- 		'css'
 
- 	);
 
- 	
 
- 	/**
 
- 	 * 添加操作
 
- 	 */
 
- 	public function thisAdd($info){
 
- 		$ids = $this->findIdsBy(null,'1','id desc ');
 
- 		if(!empty($ids)){
 
- 				$lastId = array_pop($ids);
 
- 				$id =  $lastId+$lastId;
 
- 		}else{
 
- 			$id = 2;
 
- 		}
 
- 		$info['id'] =  $id;
 
- 		return $this->add($info);
 
- 	}
 
- 	
 
- 	
 
- }
 
 
  |