* Insert pivot sql in pms.

This commit is contained in:
daitingting
2023-04-27 07:01:16 +00:00
parent db1b25aa67
commit 17804cf23d
4 changed files with 32 additions and 3 deletions
+27 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -272,7 +272,7 @@ class install extends control
if(strpos($this->app->getClientLang(), 'zh') === 0) $this->loadModel('api')->createDemoData($this->lang->api->zentaoAPI, "{$httpType}://{$_SERVER['HTTP_HOST']}" . $this->app->config->webRoot . 'api.php/v1', '16.0');
$this->loadModel('upgrade')->createDefaultDimension();
if($this->config->edition == 'biz' or $this->config->edition == 'max') $this->upgrade->updatePivotGroup();
$this->upgrade->updatePivotGroup();
return print(js::locate(inlink('step6'), 'parent'));
}
+2
View File
@@ -182,6 +182,8 @@ class pivotZen extends pivot
$sidebar = '';
foreach($groups as $group)
{
if($this->config->edition == 'open' && $group->grade == 1) continue;
$pivots = $this->dao->select('*')->from(TABLE_PIVOT)
->where("FIND_IN_SET($group->id, `group`)")
->andWhere('stage')->ne('draft')
+2 -1
View File
@@ -760,7 +760,6 @@ class upgradeModel extends model
$this->processChart();
$this->processReport();
$this->processDashboard();
$this->updatePivotGroup();
}
}
@@ -8227,6 +8226,8 @@ class upgradeModel extends model
$this->dao->update(TABLE_PIVOT)->set('`group`')->eq(implode(',', $insertGroup))->where('id')->eq($pivotID)->exec();
}
return !dao::isError();
}
/**