HTML上做表单页面上的开启和冻结切换以及功能实现
时间:2021-07-01 10:21:17
帮助过:26人阅读
新手献上的
-
- 证照信息
-
-
-
-
- /**
- * 联名卡管理
- * @author shendoudou
- *
- */
- import ( '@.Model.Platform.CommonModel' );
- class IcbccardModel extends CommonModel {
- public function findAllCard(){
- $result = $this->select();
- if ($result === false)
- throw new DBException ( $this->getModelName (), $this->getDbError (), $this->getLastSql () );
- return $result;
- }
-
- public function findOneCard($id){
- $map['id']=$id;
- $result = $this->where ($map)->find();
- if ($result === false)
- throw new DBException ( $this->getModelName (), $this->getDbError (), $this->getLastSql () );
- return $result;
- }
-
- public function updateCard($id,$data){
- $map['id']=$id;
- $result = $this->where($map)->save($data);
- if ($result === false)
- throw new DBException ( $this->getModelName (), $this->getDbError (), $this->getLastSql () );
- return $result;
- }
-
- public function deleteCard($id){
- $map['id']=$id;
- $result = $this->where($map)->delete();
- if ($result === false)
- throw new DBException ( $this->getModelName (), $this->getDbError (), $this->getLastSql () );
- return $result;
- }
-
- public function findStatusId($status){
- $map['status']=$status;
- $result = $this->where($map)->field('id')->select();
- if ($result === false)
- throw new DBException ( $this->getModelName (), $this->getDbError (), $this->getLastSql () );
- return $result;
-
- }
-
- public function changeCardStatus($id,$status){
- $map['id']=$id;
- $map['status']=$status;
- $result = $this->save($map);
- if ($result === false)
- throw new DBException ( $this->getModelName (), $this->getDbError (), $this->getLastSql () );
- return $result;
- }
-
-
- }
- ?>
|