|
@@ -250,12 +250,12 @@
|
|
|
user.userName,
|
|
|
user.departmentId,
|
|
|
user.departmentName,
|
|
|
- COALESCE ( SUM( checkPer.normal_mistake ), 0 ) * 3 AS checkNormalMistakeScore,
|
|
|
- COALESCE ( SUM( checkPer.hard_mistake ), 0 ) * 8 AS checkHardMistakeScore,
|
|
|
- COALESCE ( SUM( checkPer.fatal_mistake ), 0 ) * 41 AS checkFatalMistakeScore,
|
|
|
- COALESCE ( SUM( reCheckPer.normal_mistake ), 0 ) * 3 AS reCheckNormalMistakeScore,
|
|
|
- COALESCE ( SUM( reCheckPer.hard_mistake ), 0 ) * 8 AS reCheckHardMistakeScore,
|
|
|
- COALESCE ( SUM( reCheckPer.fatal_mistake ), 0 ) * 41 AS reCheckFatalMistakeScore,
|
|
|
+ COALESCE ( SUM( checkPer.normal_mistake ), 0 ) AS checkNormalMistakeScore,
|
|
|
+ COALESCE ( SUM( checkPer.hard_mistake ), 0 ) AS checkHardMistakeScore,
|
|
|
+ COALESCE ( SUM( checkPer.fatal_mistake ), 0 ) AS checkFatalMistakeScore,
|
|
|
+ COALESCE ( SUM( reCheckPer.normal_mistake ), 0 ) AS reCheckNormalMistakeScore,
|
|
|
+ COALESCE ( SUM( reCheckPer.hard_mistake ), 0 ) AS reCheckHardMistakeScore,
|
|
|
+ COALESCE ( SUM( reCheckPer.fatal_mistake ), 0 ) AS reCheckFatalMistakeScore,
|
|
|
COALESCE ( (COALESCE ( SUM( checkPer.normal_mistake ), 0 ) * 3) + (COALESCE ( SUM( checkPer.hard_mistake ), 0 ) * 8) + (COALESCE ( SUM( checkPer.fatal_mistake ), 0 ) * 41) + (COALESCE ( SUM( reCheckPer.normal_mistake ), 0 ) *3 ) + (COALESCE ( SUM( reCheckPer.hard_mistake ), 0 ) * 8) + (COALESCE ( SUM( reCheckPer.fatal_mistake ), 0 ) * 41) , 0) AS allMistakeScore
|
|
|
FROM (SELECT user.id AS id,
|
|
|
user.`name` AS userName,
|