guomengjiao преди 4 месеца
родител
ревизия
84ceab8925
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      modules/report/src/main/resources/mappings/modules/report/ResearchBriefReportLabelDao.xml

+ 1 - 1
modules/report/src/main/resources/mappings/modules/report/ResearchBriefReportLabelDao.xml

@@ -55,7 +55,7 @@
             SELECT 1
             FROM research_brief_report_label_relevancy lr
             inner join research_brief_report rbr on rbr.id = lr.research_brief_report_id
-            WHERE lr.parent_lable_id = a.id or lr.lable_id = a.id
+            WHERE rbr.status = '0' and (lr.parent_lable_id = a.id or lr.lable_id = a.id)
             <if test="info.marketType != null and info.marketType != ''">
                 and rbr.market_type = #{info.marketType}
             </if>