Selaa lähdekoodia

tongce: 清洗逻辑调整

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 vuotta sitten
vanhempi
commit
37fe18389e
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      tongce.py

+ 2 - 2
tongce.py

@@ -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,