Selaa lähdekoodia

[Fix-#6854][dao] fix "ResourceMapper.xml -> queryResourcePaging" sql bug (#6907)

* fix complement data retry bug; issues: [Bug] [Master] A bug on task retry mechanism #6613

* [DS-#5293][chore]upgrade cron-utils version 5.0.5 -> 9.1.3

* [DS-#5293]update the licensing information of that dependency

* [DS-#5293]update the licensing information of that dependency

* update the licensing information of that dependency

* [DS-#5293]update the licensing information of that dependency

* [DS-#6854][fix] fix "ResourceMapper.xml -> queryResourcePaging" sql bug

* [DS-#6854][fix] fix "ResourceMapper.xml -> queryResourcePaging" sql bug

Co-authored-by: yangqiyu <yangqiyu@deepexi.com>
KyoYang 3 vuotta sitten
vanhempi
commit
676a952bcb

+ 8 - 7
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.xml

@@ -62,13 +62,14 @@
         where d.type=#{type} and d.pid=#{id}
         <if test="userId != 0">
             and (
-            <if test="resIds != null and resIds.size() > 0">
-                d.id in
-                <foreach collection="resIds" item="i" open="(" close=") or" separator=",">
-                    #{i}
-                </foreach>
-            </if>
-            d.user_id=#{userId} )
+                    d.user_id=#{userId}
+                    <if test="resIds != null and resIds.size() > 0">
+                        or d.id in
+                        <foreach collection="resIds" item="i" open="(" close=")" separator=",">
+                            #{i}
+                        </foreach>
+                    </if>
+                )
         </if>
         <if test="searchVal != null and searchVal != ''">
             and d.alias like concat('%', #{searchVal}, '%')