|
@@ -147,7 +147,7 @@
|
|
|
<select id="queryPageByIdOrNameCount" resultType="integer">
|
|
|
SELECT count(1) FROM `subject`
|
|
|
<where>
|
|
|
- del_flag_ = 0
|
|
|
+ del_flag_ = 0 AND parent_subject_id_ != 0
|
|
|
<if test="parentSubjectId != null and parentSubjectId != ''">
|
|
|
AND parent_subject_id_ = #{parentSubjectId}
|
|
|
</if>
|
|
@@ -159,7 +159,7 @@
|
|
|
<select id="queryPageByIdOrName" resultMap="Subject">
|
|
|
SELECT * FROM `subject`
|
|
|
<where>
|
|
|
- del_flag_ = 0
|
|
|
+ del_flag_ = 0 AND parent_subject_id_ != 0
|
|
|
<if test="parentSubjectId != null and parentSubjectId != ''">
|
|
|
AND parent_subject_id_ = #{parentSubjectId}
|
|
|
</if>
|