|
|
@ -10,7 +10,7 @@ |
|
|
|
t1.class_id, |
|
|
|
IF(find_in_set(parent_class_id, @pids) > 0, @pids := concat(@pids, ',', class_id), 0) AS ischild |
|
|
|
FROM ( |
|
|
|
SELECT class_id, parent_class_id FROM md_base_classstandard t WHERE t.is_delete = '0' ORDER BY class_code |
|
|
|
SELECT class_id, parent_class_id FROM md_pd_classstandard t WHERE t.is_delete = '0' ORDER BY class_code |
|
|
|
) t1, |
|
|
|
(SELECT @pids := #{classId}) t2 |
|
|
|
) t3 |
|
|
|