將learned_total改為即使未標記為離開,也算進去
This commit is contained in:
parent
7993614724
commit
2e7ea6d6ab
@ -172,8 +172,7 @@ class DBStudyActivity extends Database {
|
|||||||
|
|
||||||
"(SELECT count(DISTINCT `TID`)
|
"(SELECT count(DISTINCT `TID`)
|
||||||
FROM `".$this->table('Study')."` AS `study`
|
FROM `".$this->table('Study')."` AS `study`
|
||||||
WHERE `Out_TargetTime` IS NOT NULL
|
WHERE `study`.`SaID` = `sa`.`SaID`) AS `LearnedTotal`".
|
||||||
AND `study`.`SaID` = `sa`.`SaID`) AS `LearnedTotal`".
|
|
||||||
|
|
||||||
"FROM `".$this->table('StudyActivity')."` AS sa ".
|
"FROM `".$this->table('StudyActivity')."` AS sa ".
|
||||||
"WHERE ".$where;
|
"WHERE ".$where;
|
||||||
@ -754,7 +753,7 @@ SELECT 'study' AS `Type`,
|
|||||||
`LMode`, `LModeForce`, `MMode`, `EnableVirtual`, '1' AS `Lock`,
|
`LMode`, `LModeForce`, `MMode`, `EnableVirtual`, '1' AS `Lock`,
|
||||||
|
|
||||||
(SELECT count(`TID`) FROM `".$this->table('TBelong')."` AS `belong` WHERE `belong`.`ThID` = `sa`.`ThID`) AS ` TargetTotal`,
|
(SELECT count(`TID`) FROM `".$this->table('TBelong')."` AS `belong` WHERE `belong`.`ThID` = `sa`.`ThID`) AS ` TargetTotal`,
|
||||||
(SELECT count(DISTINCT `TID`) FROM `".$this->table('Study')."` AS `study` WHERE `Out_TargetTime` IS NOT NULL AND `study`.`SaID` = `sa`.`SaID`) AS `LearnedTotal`
|
(SELECT count(DISTINCT `TID`) FROM `".$this->table('Study')."` AS `study` WHERE `study`.`SaID` = `sa`.`SaID`) AS `LearnedTotal`
|
||||||
|
|
||||||
FROM `".$this->table('StudyActivity')."` AS `sa`
|
FROM `".$this->table('StudyActivity')."` AS `sa`
|
||||||
LEFT JOIN `".$this->table('Theme')."` AS `th`
|
LEFT JOIN `".$this->table('Theme')."` AS `th`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user