Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into zentaopms_304

This commit is contained in:
liumengyi
2023-04-17 11:07:37 +08:00
4 changed files with 7 additions and 3 deletions
+2
View File
@@ -564,6 +564,8 @@ CHANGE `activatedDate` `activatedDate` datetime NULL;
ALTER TABLE `zt_kanbancard`
CHANGE `begin` `begin` date NULL,
CHANGE `end` `end` date NULL,
CHANGE `fromID` `fromID` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `fromType` `fromType` varchar(30) NOT NULL DEFAULT '',
CHANGE `whitelist` `whitelist` text NULL,
CHANGE `lastEditedBy` `lastEditedBy` char(30) NOT NULL DEFAULT '',
CHANGE `lastEditedDate` `lastEditedDate` datetime NULL,
+2 -2
View File
@@ -1017,8 +1017,8 @@ CREATE TABLE IF NOT EXISTS `zt_kanbancard` (
`kanban` mediumint(8) unsigned NOT NULL,
`region` mediumint(8) unsigned NOT NULL,
`group` mediumint(8) unsigned NOT NULL,
`fromID` mediumint(8) unsigned NOT NULL,
`fromType` varchar(30) NOT NULL,
`fromID` mediumint(8) unsigned NOT NULL DEFAULT '0',
`fromType` varchar(30) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL,
`status` varchar(30) NOT NULL DEFAULT 'doing',
`pri` mediumint(8) unsigned NOT NULL,
+2
View File
@@ -70,8 +70,10 @@ class dm extends dao
*/
public function descTable($tableName)
{
$this->dbh->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
$sql = "select * from all_tab_columns where table_name = '$tableName'";
$rawFields = $this->dbh->rawQuery($sql)->fetchAll();
$this->dbh->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
$fields = array();
foreach($rawFields as $rawField)
+1 -1
View File
@@ -2783,7 +2783,7 @@ class executionModel extends model
*/
public function getToImport($executionIds, $type, $model = '')
{
return $this->dao->select('t1.id,concat_ws(" / ", t2.name, t1.name) as name')->from(TABLE_EXECUTION)->alias('t1')
return $this->dao->select("t1.id,concat_ws(' / ', t2.name, t1.name) as name")->from(TABLE_EXECUTION)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t2.id=t1.project')
->where('t1.id')->in($executionIds)
->beginIF(!$this->app->user->admin)->andWhere('t1.id')->in($this->app->user->view->sprints)->fi()