|
|
|
@ -27,6 +27,10 @@ class SquirrelModel extends Orm_Base{ |
|
|
|
|
'test_time' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
'kill_time' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
'del_time' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
'jianwei_show' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
'test_show' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
'kill_show' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
'del_show' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'), |
|
|
|
|
); |
|
|
|
|
public $pk = 'id'; |
|
|
|
|
public function getModelList($params){ |
|
|
|
@ -87,5 +91,14 @@ class SquirrelModel extends Orm_Base{ |
|
|
|
|
} |
|
|
|
|
return $data; |
|
|
|
|
} |
|
|
|
|
public function operate($params){ |
|
|
|
|
foreach($params as $key => $val){ |
|
|
|
|
if(empty($val)){ |
|
|
|
|
unset($params[$key]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(!$this->update($params)) return false; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|