deptModel.php 347 B

1234567891011
  1. <?php
  2. //部门的
  3. class flow_deptClassModel extends flowModel
  4. {
  5. //删除之前判断
  6. protected function flowdeletebillbefore()
  7. {
  8. if(m('admin')->rows($this->rock->dbinstr('deptpath',$this->id,'[',']'))>0)return '部门下有用户不允许删除';
  9. if($this->rows('pid='.$this->id.'')>0)return '有下级部门不允许删除';
  10. }
  11. }
粤ICP备19079148号