* [task#127480,done,0.5h] Adjust sql and filters.
This commit is contained in:
@@ -1604,8 +1604,8 @@ where t1.deleted='0'
|
||||
and t2.deleted='0'
|
||||
and (case when \$projectStatus='' then 1=1 else t3.status=\$projectStatus end)
|
||||
and (case when \$executionStatus='' then 1=1 else t1.status=\$executionStatus end)
|
||||
and (case when \$project='' then 1 else t3.id=\$project end)
|
||||
and (case when \$execution='' then 1 else t1.id=\$execution end)
|
||||
and (case when \$project='' then 1=1 else t3.id=\$project end)
|
||||
and (case when \$execution='' then 1=1 else t1.id=\$execution end)
|
||||
and not (\$projectStatus='' and \$executionStatus='' and \$project='' and \$execution='')
|
||||
EOT,
|
||||
'settings' => array
|
||||
@@ -1698,8 +1698,11 @@ where t1.deleted='0'
|
||||
and t2.deleted='0'
|
||||
and t2.status!='active'
|
||||
and t2.resolvedBy!=''
|
||||
and (case when \$project='' then 1 else t3.id=\$project end)
|
||||
and (case when \$execution='' then 1 else t1.id=\$execution end)
|
||||
and (case when \$projectStatus='' then 1=1 else t3.status=\$projectStatus end)
|
||||
and (case when \$executionStatus='' then 1=1 else t1.status=\$executionStatus end)
|
||||
and (case when \$project='' then 1=1 else t3.id=\$project end)
|
||||
and (case when \$execution='' then 1=1 else t1.id=\$execution end)
|
||||
and not (\$projectStatus='' and \$executionStatus='' and \$project='' and \$execution='')
|
||||
EOT,
|
||||
'settings' => array
|
||||
(
|
||||
@@ -1714,6 +1717,8 @@ EOT,
|
||||
),
|
||||
'filters' => array
|
||||
(
|
||||
array('from' => 'query', 'field' => 'projectStatus', 'name' => '项目状态', 'type' => 'select', 'typeOption' => 'project.status', 'default' => 'doing'),
|
||||
array('from' => 'query', 'field' => 'executionStatus', 'name' => '执行状态', 'type' => 'select', 'typeOption' => 'execution.status', 'default' => 'doing'),
|
||||
array('from' => 'query', 'field' => 'project', 'name' => '项目列表', 'type' => 'select', 'typeOption' => 'project', 'default' => ''),
|
||||
array('from' => 'query', 'field' => 'execution', 'name' => '执行列表', 'type' => 'select', 'typeOption' => 'execution', 'default' => '')
|
||||
),
|
||||
@@ -1739,11 +1744,11 @@ EOT,
|
||||
),
|
||||
'vars' => array
|
||||
(
|
||||
'varName' => array('project', 'execution'),
|
||||
'showName' => array('项目列表', '执行列表'),
|
||||
'requestType' => array('select', 'select'),
|
||||
'selectList' => array('project', 'execution'),
|
||||
'default' => array('', '')
|
||||
'varName' => array('projectStatus', 'executionStatus', 'project', 'execution'),
|
||||
'showName' => array('项目状态', '执行状态', '项目列表', '执行列表'),
|
||||
'requestType' => array('select', 'select', 'select', 'select'),
|
||||
'selectList' => array('projectStatus', 'executionStatus', 'project', 'execution'),
|
||||
'default' => array('doing', 'doing', '', '')
|
||||
),
|
||||
'drills' => array
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user