|
@@ -226,11 +226,11 @@ class TongCe:
|
|
|
b.sub_option_content AS sex
|
|
|
FROM
|
|
|
f_t_daren_score_2 a
|
|
|
- LEFT JOIN d_shangju_tiku_02 b ON a.score = b.sub_option_id
|
|
|
+ LEFT JOIN d_shangju_tiku_02 b ON a.sub_question_id = b.sub_question_id
|
|
|
WHERE
|
|
|
a.testcase_id IN (84, 85, 86, 87)
|
|
|
AND b.father_id = 47
|
|
|
- AND a.sub_question_id = b.sub_question_id
|
|
|
+ AND (a.score = b.sub_option_id or a.score = b.score)
|
|
|
AND a.testcase_id = b.testcase_id
|
|
|
GROUP BY
|
|
|
a.testcase_id,
|