* Adjusting the code of the personnel module.

This commit is contained in:
leiyong
2020-10-19 13:30:44 +08:00
parent 8484f0437c
commit 62c8bb5b03
10 changed files with 254 additions and 153 deletions

View File

@@ -71,7 +71,7 @@ class programplanModel extends model
$plans = $this->dao->select('*')->from(TABLE_PROJECT)
->where('type')->eq('stage')
->beginIF($browseType == 'all')->andWhere('path')->like(",$programID,%")->fi()
->beginIF($browseType == 'all')->andWhere('project')->eq($programID)->fi()
->beginIF($browseType == 'parent')->andWhere('parent')->eq($programID)->fi()
->beginIF($browseType == 'children')->andWhere('parent')->eq($planID)->fi()
->beginIF($productID)->andWhere('id')->in($projects)->fi()