dcs 11 mēneši atpakaļ
vecāks
revīzija
c5f490ed5d

+ 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">