dcs 11 月之前
父節點
當前提交
c5f490ed5d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      virgo.core/src/main/resources/mapper/IdentityResourceMapper.xml

+ 4 - 0
virgo.core/src/main/resources/mapper/IdentityResourceMapper.xml

@@ -13,6 +13,10 @@
 
     <select id="getList" resultMap="result">
         select * from identity_resource
+        <where>
+            <if test="identityId!=0">and identityId=#{identityId}</if>
+            <if test="type!=null">and type=#{type}</if>
+        </where>
     </select>
 
     <insert id="insert" parameterType="com.bosshand.virgo.core.model.IdentityResource" useGeneratedKeys="true" keyProperty="id">