信呼OA版本v2.3.8

This commit is contained in:
雨中磐石
2022-08-14 16:47:40 +08:00
parent 4640677d27
commit e3fcd913e3
1405 changed files with 133635 additions and 73 deletions

View File

@@ -0,0 +1,11 @@
<?php
//部门的
class flow_deptClassModel extends flowModel
{
//删除之前判断
protected function flowdeletebillbefore()
{
if(m('admin')->rows($this->rock->dbinstr('deptpath',$this->id,'[',']'))>0)return '部门下有用户不允许删除';
if($this->rows('pid='.$this->id.'')>0)return '有下级部门不允许删除';
}
}