* Finish task #7758.

This commit is contained in:
holan20180123
2020-08-31 14:57:44 +08:00
parent 19e7fb8801
commit 7a661001da
41 changed files with 196 additions and 174 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class workestimationModel extends model
*/
public function getProgramScale($program)
{
$products = $this->loadModel('product')->getPairs($program);
$products = $this->loadModel('product')->getPairs('', $program);
$productIdList = array_keys($products);
return $this->dao->select('cast(sum(estimate) as decimal(10,2)) as scale')->from(TABLE_STORY)->where('product')->in($productIdList)->andWhere('type')->eq('requirement')->fetch('scale');
}