* fix bug and adjust dao.

This commit is contained in:
wangyidong
2016-10-11 10:01:24 +08:00
parent 8e30e63a1d
commit 3dd56d8fce
2 changed files with 24 additions and 7 deletions
+3 -3
View File
@@ -342,8 +342,8 @@ class commonModel extends model
if($role == 'top')
{
$this->config->locate->module = 'project';
$this->config->locate->method = 'index';
$this->config->locate->params = 'locate=no&status=doing';
$this->config->locate->method = 'all';
$this->config->locate->params = 'status=isdoing';
}
unset($this->lang->menuOrder);
@@ -969,7 +969,7 @@ class commonModel extends model
}
else
{
$queryObjects = $this->dao->query($queryCondition . (empty($orderBy) ? " ORDER BY $orderBy" : ''));
$queryObjects = $this->dao->query($queryCondition . (empty($orderBy) ? '' : " ORDER BY $orderBy"));
}
$preObj = false;