We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ade972a commit 0c2f2daCopy full SHA for 0c2f2da
base/src/main/resources/mappers/AppMapper.xml
@@ -511,10 +511,7 @@
511
<include refid="Common_Column_List"/>
512
<include refid="Common_Join"/>
513
<where>
514
- <if test="tenantId != null">
515
- AND A.tenant_id = #{tenantId}
516
- </if>
517
- A.id = #{id}
+ A.id = #{id} AND A.tenant_id = #{tenantId}
518
</where>
519
</select>
520
@@ -524,10 +521,8 @@
524
521
525
522
526
523
527
528
529
530
- A.id = #{id} AND A.is_template = true
+ A.tenant_id = #{tenantId} AND
+ A.id = #{id} AND A.is_template = true
531
532
533
0 commit comments