| 12345678910111213141516171819 |
- <?php
- namespace app\common\model;
- /**
- * 渠道秘钥表
- * @author Administrator
- */
- class Department extends \think\Model
- {
- protected $pk = 'id';
- protected $table = 'cy_department';
- protected $dateFormat = false; //时间戳格式不自动转换
- public function getCondition($map){
- $res = $this->where($map)->field('id,name,pid,status')->find();
- return $res;
- }
- }
|