Department.php 425 B

12345678910111213141516171819
  1. <?php
  2. namespace app\common\model;
  3. /**
  4. * 渠道秘钥表
  5. * @author Administrator
  6. */
  7. class Department extends \think\Model
  8. {
  9. protected $pk = 'id';
  10. protected $table = 'cy_department';
  11. protected $dateFormat = false; //时间戳格式不自动转换
  12. public function getCondition($map){
  13. $res = $this->where($map)->field('id,name,pid,status')->find();
  14. return $res;
  15. }
  16. }