dcs 11 months ago
parent
commit
c5f490ed5d
1 changed files with 4 additions and 0 deletions
  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 id="getList" resultMap="result">
         select * from identity_resource
         select * from identity_resource
+        <where>
+            <if test="identityId!=0">and identityId=#{identityId}</if>
+            <if test="type!=null">and type=#{type}</if>
+        </where>
     </select>
     </select>
 
 
     <insert id="insert" parameterType="com.bosshand.virgo.core.model.IdentityResource" useGeneratedKeys="true" keyProperty="id">
     <insert id="insert" parameterType="com.bosshand.virgo.core.model.IdentityResource" useGeneratedKeys="true" keyProperty="id">