Skip to content

Commit 0c2f2da

Browse files
committed
fix: modify app API
1 parent ade972a commit 0c2f2da

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

base/src/main/resources/mappers/AppMapper.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,7 @@
511511
<include refid="Common_Column_List"/>
512512
<include refid="Common_Join"/>
513513
<where>
514-
<if test="tenantId != null">
515-
AND A.tenant_id = #{tenantId}
516-
</if>
517-
A.id = #{id}
514+
A.id = #{id} AND A.tenant_id = #{tenantId}
518515
</where>
519516
</select>
520517

@@ -524,10 +521,8 @@
524521
<include refid="Common_Column_List"/>
525522
<include refid="Common_Join"/>
526523
<where>
527-
<if test="tenantId != null">
528-
AND A.tenant_id = #{tenantId}
529-
</if>
530-
A.id = #{id} AND A.is_template = true
524+
A.tenant_id = #{tenantId} AND
525+
A.id = #{id} AND A.is_template = true
531526
</where>
532527
</select>
533528

0 commit comments

Comments
 (0)