* Fix bug.

This commit is contained in:
leiyong
2020-08-27 14:41:27 +08:00
parent 5c6c487580
commit 2d3947e441
5 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ class programModel extends model
if(empty($programs)) return array();
$programIdList = array_keys($programs);
$hours = $this->dao->select('program, sum(consumed) as consumed, sum(estimate) as estimate')->from(TABLE_TASK)
$hours = $this->dao->select('program, cast(sum(consumed) as decimal(10,2)) as consumed, cast(sum(estimate) as decimal(10,2)) as estimate')->from(TABLE_TASK)
->where('program')->in($programIdList)
->andWhere('deleted')->eq(0)
->andWhere('parent')->lt(1)