|
@@ -241,6 +241,7 @@
|
|
|
FROM subject t
|
|
|
LEFT JOIN instrument i on t.id_ = i.subject_id_
|
|
|
<where>
|
|
|
+ AND t.cbs_subject_id_ is not null
|
|
|
<if test="parentSubjectId != null">
|
|
|
AND t.parent_subject_id_ = #{parentSubjectId}
|
|
|
</if>
|
|
@@ -295,6 +296,7 @@
|
|
|
FROM subject t
|
|
|
LEFT JOIN instrument i on t.id_ = i.subject_id_
|
|
|
<where>
|
|
|
+ AND t.cbs_subject_id_ is not null
|
|
|
<if test="parentSubjectId != null">
|
|
|
AND t.parent_subject_id_ = #{parentSubjectId}
|
|
|
</if>
|